question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Another config.js issue

See original GitHub issue

When I add the awesome-alexa to the config file, it breaks the already working items I have configured. Could someone look through and let me know where I’ve made a mistake?

As mentioned if I // the alexa parts (now marked with a --> the config file works and it displays my calendar etc. however once I enable the awesome-alexa script, it breaks everything. I’ve tried both with the “” around module etc like the how too files looks and without like the rest of the scripts are written but no luck. I know I’ve made a mistake somewhere … just not sure where yet.

Thanks in advance for the help 😃

* Magic Mirror Config Sample
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information how you can configurate this file
 * See https://github.com/MichMich/MagicMirror#configuration
 *
 */

var config = {
        address: "localhost", // Address to listen on, can be:
                              // - "localhost", "127.0.0.1", "::1" to listen on$
                              // - another specific IPv4/6 to listen on a speci$
                              // - "", "0.0.0.0", "::" to listen on any interfa$
                              // Default, when address config is left out, is "$
        port: 80,
        ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to all$
                                                               // or add a spec$
                                                               // ["127.0.0.1",$
                                                               // or IPv4 range$
                                                               // ["127.0.0.1",$

        language: "en",
        timeFormat: 12,
        units: "metric",

        modules: [
                {
                        module: "alert",
                },
//                {
//                        module: "mmm-systemtemperature",
//                        position: "top_center",
//                        classes: "small dimmed",
//              },
//              {
//                      module: "twitControl",
//                      possition: "top_center",
//                      config: {
//                              maxNumTweets: 5,
//                              streamType: "followings",
//                              api_keys: {
//                                      consumer_key: "KEY”
//                                      customer_secret: "SECRET”
//                                      access_token: "TOKEN”
//                                      access_token_secret: "SECRET”
//                                        }
//                              }
//              },
//                {
-->                      "module": "MMM-awesome-alexa",
-->                      "position": "middle_center",
-->                      "config": {
-->                      “wakeWord": "Alexa",
-->                      "clientID": "ID”
-->                      "clientSecret": "SECRET”
-->                      "deviceId": "NAME",
-->                      "refreshToken": "REFRESH_TOKEN”
-->                      "lite": "false"
-->                      "isSpeechVisualizationEnabled": "true",
-->                          }
/-->                      },
                {
                        module: "updatenotification",
                        position: "top_bar"
                },
                {
                        module: "clock",
                        position: "top_left"
                },
                {
                        module: "calendar",
                        header: "Family Calendar",
                        position: "top_left",
                        config: {
                                calendars: [
                                        {
                                                symbol: "calendar-check-o ",
                                                url: "URL”
                                        }
                                ]
                        }
                },
               {
                        module: "compliments",
                        position: "lower_third"
                },
                {
                        module: "currentweather",
                        position: "top_right",
                        config: {
                                location: "Kanata",
                                locationID: "",  //ID from http://www.openweath$
                                appid: "APP_ID"
                        }
                },
                {
                        module: "weatherforecast",
                        position: "top_right",
                        header: "Weather Forecast",
                        config: {
                                location: "Kanata, Ontario",
                                locationID: "6094817",  //ID from http://www.op$
                                appid: "APP_ID"
                        }
                },
                {
                        module: "newsfeed",
                        position: "bottom_bar",
                        config: {
                                feeds: [
                                        {
                                                title: "CNN",
                                               url: "http://rss.cnn.com/rss/cn$
                                        }
                                ],
                                showSourceTitle: true,
                                showPublishDate: true
                        }
                },
        ]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Poncherellycommented, Aug 24, 2018

I’ll have to look at that closer. It’s looking the exact same on my phone LOL. I know that my keyboard is a little off (probably a config on my Rpi but to get " I need to do a SHIFT 2 and to get an @ I need to do a shift @ I probably have the wrong country set up.

I’ll do a copy/paste from this thread to see if that works.

Thanks for looking it over, I’ll test and report back.

0reactions
dolanmiucommented, May 21, 2019

I have re-wrote the token helper tool to be much more user friendly:

https://awesome-alexa.js.org/#/installation?id=configuration

Read more comments on GitHub >

github_iconTop Results From Across the Web

Two variables refers to same config.js File using require ...
Two variables refers to same config.js File using require (Reference Problem) in Node.js · Subscribe to RSS.
Read more >
the creeping scourge of tooling config files in project root ...
We put config files in the project root because we put config files in the project root.
Read more >
Configuration - Tailwind CSS
The content section is where you configure the paths to all of your HTML templates, JS components, and any other files that contain...
Read more >
A Guide to Managing Webpack Dependencies - Toptal
A Guide to Managing Webpack Dependencies ... The Webpack module bundler processes JavaScript code and all static assets, such as stylesheets, images, and...
Read more >
config - npm
Start using config in your project by running `npm i config`. There are 4479 other projects in the npm registry using config.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found