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.

    MMM-awesome-alexa

    Scheduled Pinned Locked Moved Utilities
    241 Posts 43 Posters 391.7k Views 47 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.
    • Cr4z33C Offline
      Cr4z33 @Canterrain
      last edited by

      @Canterrain no that is correct. ;)

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Canterrain @Cr4z33
        last edited by

        @Cr4z33
        Well dang. I’m doing something wrong here. Whether I use the helper config or the tool above, I get a broken error page.

        And I know an error page is expected, but it’s not a long url with a code in it.
        It’s like… amazon.com/wpa

        and that’s it.

        Was the right choice “device with alexa built in” and “no companion app” ? I figure I must have done something wrong on the Amazon developer page, since that’s the part with no guide and it’s working for other people.

        M J 2 Replies Last reply Reply Quote 0
        • S Offline
          stalker401
          last edited by stalker401

          So does anyone actually have a step by step directions on how to set this up? Sorry i’m a huge noob, and I’m lost (which is probably due to the noob part). I do understand this is a difficult set up, but i’m kind of hoping there might be a detailed guide on this or even a youtube video (including how Amazon Developer should be set up).

          EDIT:

          I’m able to get to the auth request as most people, and I get the error: We’re sorry!
          An error occurred when we tried to process your request. Rest assured, we’re already working on the problem and expect to resolve it shortly.

          I understand this could either by my settings, or something on the amazon side, but has anyone gotten past this recently? Or is there another module I should be using?

          1 Reply Last reply Reply Quote 0
          • B Offline
            berne
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • B Offline
              berne @dolanmiu
              last edited by

              @dolanmiu i am done install this, havet test it yet,
              but i got the code for config.js

              But i allso got this:

              Full response from Amazon

              {
                "_body": "{\"error_description\":\"Client authentication failed\",\"error\":\"invalid_client\"}",
                "status": 401,
                "ok": false,
                "statusText": "Unauthorized",
                "headers": {
                  "pragma": [
                    "no-cache"
                  ],
                  "date": [
                    "Mon",
                    " 12 Aug 2019 08:06:35 GMT"
                  ],
                  "x-amzn-errortype": [
                    "OA2InvalidClientException:http://internal.amazon.com/coral/com.amazon.panda/"
                  ],
                  "x-amzn-requestid": [
                    "sdsdfgergegegege0e"
                  ],
                  "content-type": [
                    "application/json;charset=UTF-8"
                  ],
                  "cache-control": [
                    "no-cache",
                    " no-store",
                    " must-revalidate"
                  ],
                  "content-length": [
                    "85"
                  ]
                },
                "type": 2,
                "url": "https://api.amazon.com/auth/o2/token"
              }````
              
              Do i need to do anything with this? or what does this go, and what does i do?
              
              Regards
              P 1 Reply Last reply Reply Quote 0
              • QuberchQ Offline
                Quberch
                last edited by

                First I’ve to say awesome work @dolanmiu ! I’ve installed as described in your documentation. For auto start I’m still using PM2 with the mm.sh script and can’t get the wake word to trigger. ALSA ist configured and recording. Any ideas what could be the problem? Do I have to get rid completely of PM2? Many thanks in advance for your help!

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Cordetx
                  last edited by

                  Can you please add the wake word “Mirror Mirror On The Wall”?

                  B 1 Reply Last reply Reply Quote 1
                  • B Offline
                    berne @Cordetx
                    last edited by

                    what mic are people using, i have this: USB MIC
                    but cant get it to work so looking for a new one

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      menanr @Canterrain
                      last edited by

                      @Canterrain said in MMM-awesome-alexa:

                      @Cr4z33
                      Well dang. I’m doing something wrong here. Whether I use the helper config or the tool above, I get a broken error page.

                      And I know an error page is expected, but it’s not a long url with a code in it.
                      It’s like… amazon.com/wpa

                      and that’s it.

                      Was the right choice “device with alexa built in” and “no companion app” ? I figure I must have done something wrong on the Amazon developer page, since that’s the part with no guide and it’s working for other people.

                      Hey
                      did you get it working. I am stuck at the same spot.

                      Thanks

                      P 1 Reply Last reply Reply Quote 0
                      • P Offline
                        prpun311 @berne
                        last edited by prpun311

                        @berne No, its just telling you what the amazon site is doing, you only need the top portion.

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          prpun311 @menanr
                          last edited by

                          @menanr try this out,
                          https://www.howtogeek.com/423233/how-to-add-alexa-to-your-smart-mirror/

                          1 Reply Last reply Reply Quote 0
                          • Blackhawk50000B Offline
                            Blackhawk50000
                            last edited by Blackhawk50000

                            I would LOVE to get this work… i have done everything that is written in the guide:

                            2nd hand guide

                            and of course in your normal regular guide…
                            i have testet my microphone and my speaker… everything is okay. but when i set up the config and a try tu say something… NOTHING works.
                            even with wireshark i dont see, that everything is trying to do something.

                            1 Reply Last reply Reply Quote 0
                            • Blackhawk50000B Offline
                              Blackhawk50000
                              last edited by

                              Okay, little Update, why i think the module dont work.

                              I saw that the part:

                              rm -rf node_modules
                              npm install nan --save 
                              npm install node-pre-gyp@0.12.0 --save 
                              npm install 
                              npm run prepublish 
                              

                              throws some erros:

                              
                              Found 2 errors.
                              
                              npm ERR! code ELIFECYCLE
                              npm ERR! errno 2
                              npm ERR! snowboy@1.3.1 prepublish: `tsc --listFiles`
                              npm ERR! Exit status 2
                              npm ERR!
                              npm ERR! Failed at the snowboy@1.3.1 prepublish script.
                              npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                              
                              npm ERR! A complete log of this run can be found in:
                              npm ERR!     /home/pi/.npm/_logs/2019-09-11T20_53_08_308Z-debug.log
                              
                              

                              after a bit googeling i found this: https://www.gitmemory.com/issue/eouia/MMM-Hotword/65/507582634

                              so i editet the package.json and set up the typescript version ti 3.5.2 and gor this errors by npm run prepublish:

                              
                              > snowboy@1.3.1 prepublish /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy
                              > tsc --listFiles
                              
                              node_modules/@types/node/index.d.ts:43:11 - error TS2300: Duplicate identifier 'IteratorResult'.
                              
                              43 interface IteratorResult<T> { }
                                           ~~~~~~~~~~~~~~
                              
                                node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6
                                  41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
                                          ~~~~~~~~~~~~~~
                                  'IteratorResult' was also declared here.
                              
                              node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6 - error TS2300: Duplicate identifier 'IteratorResult'.
                              
                              41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
                                      ~~~~~~~~~~~~~~
                              
                                node_modules/@types/node/index.d.ts:43:11
                                  43 interface IteratorResult<T> { }
                                               ~~~~~~~~~~~~~~
                                  'IteratorResult' was also declared here.
                              
                              

                              i think this is a current problem, that snowboy is not correct installed… can anyone confiorm this?

                              1 Reply Last reply Reply Quote 0
                              • H Offline
                                HabibA
                                last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • H Offline
                                  HabibA
                                  last edited by

                                  I solved my problems with that now.
                                  https://github.com/dolanmiu/MMM-awesome-alexa/issues/184#issuecomment-584215826

                                  1 Reply Last reply Reply Quote 0
                                  • V Offline
                                    vlatko_jordanov
                                    last edited by

                                    Hi @dolanmiu awesome job with the Alexa I must say!!

                                    I have set it up however I think it’s behaving weird or I am missing some bits and pieces to make it work! I’ve added MMM-NowPlayingOnSpotify and google calendar however when I try to ask Alexa to add event on the calendar or to play Spotify it has no idea, what am I missing here, please let me know what logs I can provide to troubleshoot!

                                    Cheers,
                                    Vlatko

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @vlatko_jordanov
                                      last edited by sdetweil

                                      @vlatko_jordanov said in MMM-awesome-alexa:

                                      MMM-NowPlayingOnSpotify

                                      this module shows what is playing somewhere else.

                                      I don’t think alexa can start playing anywhere, i stand corrected
                                      https://www.spotify.com/us/amazonalexa/

                                      now to make spotify play ON the PI
                                      https://www.raspberrypi.org/forums/viewtopic.php?t=215857

                                      how to integrate those, I don’t know.

                                      calendar

                                      can alexa add to your google calendar? it doesn’t know anything about what is on the mirror,
                                      and the cal on the mirror is a download from some other location(google, apple…) . (ie , its read only)

                                      https://www.techradar.com/how-to/how-to-connect-your-google-calendar-to-amazon-echo

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      V 1 Reply Last reply Reply Quote 0
                                      • V Offline
                                        vlatko_jordanov @sdetweil
                                        last edited by

                                        @sdetweil

                                        Hey Sam!

                                        Thanks for coming coming back on this! Well I must say I was thinking the same that it could be due to something like that and the name of the Spotify module says it all doesn’t it :)

                                        I was tricked by this video on youtube: https://www.youtube.com/watch?v=q7wqm8h3PnA
                                        He didn’t mentioned anywhere how he controls Spotify, so I assumed Alexa somehow knew how to reach spotify and the module just to display the now playing.

                                        So I need client is what you say right?
                                        And about the calendar I already gave alexa rights through the Alexa app on my android phone but the funny thing is that when I go to devices it says that it’s offline?

                                        Cheers,
                                        Vlatko

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil @vlatko_jordanov
                                          last edited by sdetweil

                                          @vlatko_jordanov said in MMM-awesome-alexa:

                                          I was tricked by this video on youtube: https://www.youtube.com/watch?v=q7wqm8h3PnA
                                          He didn’t mentioned anywhere how he controls Spotify, so I assumed Alexa somehow knew how to reach spotify and the module just to display the now playing.
                                          here is how to control potify with alexa, https://www.spotify.com/us/amazonalexa/, unrelated to mirror

                                          So I need client is what you say right? if u want to PLAY on mirror system yes,
                                          https://www.raspberrypi.org/forums/viewtopic.php?t=215857

                                          And about the calendar I already gave alexa rights through the Alexa app on my android phone but the funny thing is that when I go to devices it says that it’s offline?

                                          alexa rights through the Alexa app on my android phone
                                          rights to what? again, the local ‘calendar’ is a read only copy of a cal somewhere else…
                                          maybe on google?

                                          offline? that is between alexa account(cloud) and google (cloud)
                                          has nothing to do with mirror app

                                          I rechecked and resynched my google calendar with my alexa account…
                                          and then using my echo asked alexa to add an event to my calendar and it worked and shows on the mirror calendar display…

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @sdetweil
                                            last edited by sdetweil

                                            @vlatko_jordanov I am trying to set this up but my brain cannot figure out what I am supposed to put in as the return url in the AVS setup…

                                            my device is not known outside my home.
                                            i can use my public url redirect to make it known

                                            localhost doesn’t work

                                            my public return url DOES get a callback into my browser, but there is no ‘web page’ served at that url… so it ‘times out’…

                                            the setup app doesn’t use request to MAKE a web server there… (I have had to do this on other oauth apps…)

                                            edit: DOAH… read the instructions!!! lol… it is EPEXCTED to FAIL to connect… read the text from the failing url

                                            got that… BUT then next step fails for me…

                                             Enter your Authorization code (from previous step): ANMJShcLPpSKjJkKLbzj
                                              ◡ Getting response from Amazon...(node:2772) UnhandledPromiseRejectionWarning: StatusCodeError: 400 - {"error_description":"The request has an invalid grant parameter : code","error":"invalid_grant"}
                                            

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            V B 2 Replies Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 12
                                            • 13
                                            • 1 / 13
                                            • First post
                                              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