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.

    Alexa Voice Service for Pi

    Scheduled Pinned Locked Moved Troubleshooting
    17 Posts 4 Posters 5.2k Views 4 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.
    • X Offline
      xxLulaBelle
      last edited by

      Hello,

      I am trying to get Alexa on my Pi for some time now with no luck, probably due to the face I have no idea what I am doing. I found a video on YouTube and have been following her steps which she is getting from here https://developer.amazon.com/en-US/docs/alexa/avs-device-sdk/raspberry-pi-script.html
      Scrolling to Run and Install Script, it says after installation it should say [100%] Built Target SampleApp but it does not. I get the following, any ideas?
      ################################################################################
      [ 0%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/Attachment/InProcessAttachment.cpp.o
      [ 0%] Building CXX object AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/AlexaClientSDKInit.cpp.o
      /home/pi/avs-device-sdk/AVSCommon/AVS/src/AlexaClientSDKInit.cpp:16:10: fatal error: curl/curl.h: No such file or directory
      #include <curl/curl.h>
      ^~~~~~~~~~~~~
      compilation terminated.
      make[3]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/build.make:141: AVSCommon/CMakeFiles/AVSCommon.dir/AVS/src/AlexaClientSDKInit.cpp.o] Error 1
      make[3]: *** Waiting for unfinished jobs…
      make[2]: *** [CMakeFiles/Makefile2:8039: AVSCommon/CMakeFiles/AVSCommon.dir/all] Error 2
      make[1]: *** [CMakeFiles/Makefile2:14137: SampleApp/src/CMakeFiles/SampleApp.dir/rule] Error 2
      make: *** [Makefile:3620: SampleApp] Error 2
      pi@raspberrypi:~ $

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @xxLulaBelle
        last edited by

        @xxlulabelle awesome-alexa is the only one I know that still works.they have a 14 step install process on their wiki

        I copied these to a script, and it will do all the install part. u still have to the setup on the avs console, and get the refresh token.

        https://www.dropbox.com/s/omrx3vztjp738hf/do-install.sh?dl=0

        now. u cant play music, u can’t interact with the mirror app. but u can ask questions, and interaction with smarthome drvices on your Amazon account

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        X 1 Reply Last reply Reply Quote 0
        • X Offline
          xxLulaBelle @sdetweil
          last edited by

          @sdetweil Thank you very much, I will give this a try tomorrow. Is it worth doing it do you think?

          S X 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @xxLulaBelle
            last edited by sdetweil

            @xxlulabelle depends on what you want/need

            there will be errors, ignore them. the last command being successful is all that matters

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • X Offline
              xxLulaBelle @xxLulaBelle
              last edited by

              @xxlulabelle Grand, thank you :)

              X 1 Reply Last reply Reply Quote 0
              • X Offline
                xxLulaBelle @xxLulaBelle
                last edited by

                @xxlulabelle When I go through the MMM-awesome-alexa module, I can get to the part where I put in the Amazon Voice Service ID and secret but when it asks me for the Allowed Return URL I input http://192.168.0.108:5050/code, I can’t remember where I got this from, think it was a YT video months ago, when I go to open up the link they give to get the authentication code I get an error page. Any ideas?

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @xxLulaBelle
                  last edited by

                  @xxlulabelle should have used localhost:5050

                  the system needs to get to a machine…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  X 1 Reply Last reply Reply Quote 0
                  • X Offline
                    xxLulaBelle @sdetweil
                    last edited by

                    @sdetweil I put this in http://localhost:5050/code and it says Invalid, please enter your redirect URI?

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @xxLulaBelle
                      last edited by

                      @xxlulabelle weird, i use this

                      http://localhost:5500/alexa_auth

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      X 1 Reply Last reply Reply Quote 0
                      • bugsounetB Offline
                        bugsounet Banned
                        last edited by

                        wow a lot of effort … good luck! (soOooOO many for me !)

                        I prefer … simple thing sorry :D

                        1 Reply Last reply Reply Quote 0
                        • X Offline
                          xxLulaBelle @sdetweil
                          last edited by

                          @sdetweil said in Alexa Voice Service for Pi:

                          http://localhost:5500/alexa_auth

                          I just tried this and get the same error, could it be something else I am doing wrong?
                          :see-no-evil_monkey:

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @xxLulaBelle
                            last edited by sdetweil

                            @xxlulabelle I put http://localhost in the allowed origins field
                            Screenshot at 2021-05-10 14-59-13.png

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            X 3 Replies Last reply Reply Quote 0
                            • X Offline
                              xxLulaBelle @sdetweil
                              last edited by

                              @sdetweil said in Alexa Voice Service for Pi:

                              http://localhost

                              I have these four in the Allowed Origins Fields:
                              https://192.168.0.108:5050
                              https://192.168.0.108:5050
                              https://localhost:5050
                              https://localhost:5050

                              In the Allowed Return URLs I have the same four but with /code at the end of each.
                              Again, I can’t remember exactly where I got this info, was a video on YT from memory.

                              1 Reply Last reply Reply Quote 0
                              • X Offline
                                xxLulaBelle @sdetweil
                                last edited by

                                @sdetweil Changed to this and input same, I still get that error code. I give up :see-no-evil_monkey:

                                S 1 Reply Last reply Reply Quote 0
                                • X Offline
                                  xxLulaBelle @sdetweil
                                  last edited by

                                  @sdetweil Thanks so much for all your help and your patience with my lack of knowledge. Much appreciated. :)

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @xxLulaBelle
                                    last edited by sdetweil

                                    @xxlulabelle sorry, don’t think we are talking the same…

                                    so you run the auth program, and it pops up a blah blah wants to access your devicename
                                    and u say Allow, then an error appears, can’t reach xyz…

                                    and in the URL string is the code=djf;asjfgjae;gk;FGJADJFG’AJFDGL’K AFDJG LAFDJG L’ADFKJ

                                    the thing after the code= IS the code u are supposed to copy

                                    ‘djf;asjfgjae;gk;FGJADJFG’AJFDGL’K AFDJG LAFDJG L’ADFKJ’

                                    using my made up junk above

                                    i have a different app on a different platform that implements a server at the return url and captures the code= value for you… so none of this trouble

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • O Offline
                                      Ogden62
                                      last edited by

                                      This post is deleted!
                                      1 Reply 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 / 1
                                      • 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