• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Help figuring out what portion of this code is erroring out?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
10 Posts 2 Posters 1.8k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    stalker401
    last edited by Aug 4, 2019, 1:14 AM

    I can’t figure out what portion of the MMM-awesome-alexa code is causing my MM error:

    		/*{
      			"module": "MMM-awesome-alexa",
      			"position": "bottom_bar",
      			"config": {
        				"wakeWord": "Alexa",
        				"clientId": amzn1.application-oa2-client.54a08c41875f4xxxxxxxxxxxxxxx,
        				"clientSecret": 8ce8425cb89e02a7302a60d27d10b51d2f137d8fxxxxxxxxxxxxxxxxxxxxxxxxxx,
        				"deviceId": MagicMirror_1
    			  }
    		},*/
    		]
    
    };
    

    I put it in as a comment for now, so the MM will work but I’d like to try the magic mirror with alexa…

    S 1 Reply Last reply Aug 4, 2019, 1:34 AM Reply Quote 0
    • S Away
      sdetweil @stalker401
      last edited by Aug 4, 2019, 1:34 AM

      @stalker401 for the future, all u need to do is add

      disabled: true,

      To the module definition

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Aug 4, 2019, 10:54 PM Reply Quote 2
      • S Offline
        stalker401 @sdetweil
        last edited by Aug 4, 2019, 10:54 PM

        @sdetweil

        Thanks. Any idea why it might be causing an error when i start mm though?

        S 1 Reply Last reply Aug 4, 2019, 11:17 PM Reply Quote 0
        • S Away
          sdetweil @stalker401
          last edited by sdetweil Aug 4, 2019, 11:18 PM Aug 4, 2019, 11:17 PM

          @stalker401 the text to the right of config words need to be quoted
          clientID, clientSecret and deviceId

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil
            last edited by sdetweil Aug 4, 2019, 11:20 PM Aug 4, 2019, 11:19 PM

            Only thing on the right side that doesn’t need to be quoted is true/false, or a number

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil
              last edited by sdetweil Aug 4, 2019, 11:42 PM Aug 4, 2019, 11:23 PM

              Also, typically the words used to the left don’t need to be quoted

              module: "somestring",
              config:{
                 Something: true,
                 something_Else: "some string"
              }
              

              All words on the left are case sensitive

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                stalker401
                last edited by Aug 5, 2019, 10:54 AM

                @stalker401 said in Help figuring out what portion of this code is erroring out?:

                MMM-awesome-alexa

                Thanks everyone ill try it after work today

                1 Reply Last reply Reply Quote 0
                • S Offline
                  stalker401
                  last edited by Aug 5, 2019, 3:07 PM

                  So I went in this morning and made the corrections, but instead of the typical error, when I started MagicMirror it was black screen that had my mouse cursor on it. The code i used is:

                  {
                    			"module": "MMM-awesome-alexa",
                    			"position": "bottom_bar",
                    			"config": {
                      				"wakeWord": "Alexa",
                      				"clientId": "amzn1.application-oa2-client.54a08c41875f4xxxxxxxxxxxxxxx",
                      				"clientSecret": "8ce8425cb89e02a7302a60d27d10b51d2f137d8fxxxxxxxxxxxxxxxxxxxxxxxxxx",
                      				"deviceId": "MagicMirror_1"
                  			  }
                  
                  S 1 Reply Last reply Aug 5, 2019, 3:27 PM Reply Quote 0
                  • S Away
                    sdetweil @stalker401
                    last edited by Aug 5, 2019, 3:27 PM

                    @stalker401 ok, open the developers window, ctrl-shift-i, select the console tab and scroll up to see any errors. Usually red text

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      stalker401
                      last edited by Aug 5, 2019, 4:41 PM

                      Thanks, I’ll look at it tonight.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      1 / 1
                      • First post
                        1/10
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy