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.

    Where to run a Script?

    Scheduled Pinned Locked Moved Troubleshooting
    11 Posts 2 Posters 4.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.
    • johnnyboyJ Offline
      johnnyboy
      last edited by johnnyboy

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • mochmanM Offline
        mochman Module Developer
        last edited by

        Are you physically connected or VNC’ed to the raspberryPi? If so, open up a terminal window and then type
        sudo python /path/to/your/alexapi/folder/auth_web.py
        then open up your browser (the one in the pi) and go to http://localhost:3000
        log in with your Amazon login/pass. The script should update your settings.py file for you.

        If you are using an ssh program to access the pi. Run the first command as normal, then open up a browser and go to http://your.pi.ip.addr:3000

        The rest should be the same.

        johnnyboyJ 2 Replies Last reply Reply Quote 2
        • johnnyboyJ Offline
          johnnyboy @mochman
          last edited by johnnyboy

          This post is deleted!
          johnnyboyJ 1 Reply Last reply Reply Quote 0
          • johnnyboyJ Offline
            johnnyboy @johnnyboy
            last edited by johnnyboy

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • mochmanM Offline
              mochman Module Developer
              last edited by

              Okay I thought you were using alexaPi, looks like alexa-client. In that case, have you run

              cd /home/pi/MagicMirror/alexa-client/
              pip install -r requirements.txt
              python setup.py install
              sudo pip install -r auth_web_requirements.txt
              

              already? If so, try

              cd /home/pi/MagicMirror/alexa-client/
              python auth_web.py
              

              In this application you will need to add the token you get from the website to your settings.py file. After you get the token, run nano settings.py and paste the token where it says

              REFRESH_TOKEN= ``
              

              so it will say something like

              REFRESH_TOKEN= `yourTokenGoesHere`
              
              johnnyboyJ 2 Replies Last reply Reply Quote 1
              • johnnyboyJ Offline
                johnnyboy @mochman
                last edited by johnnyboy

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • johnnyboyJ Offline
                  johnnyboy @mochman
                  last edited by johnnyboy

                  This post is deleted!
                  johnnyboyJ 1 Reply Last reply Reply Quote 0
                  • johnnyboyJ Offline
                    johnnyboy @johnnyboy
                    last edited by johnnyboy

                    This post is deleted!
                    johnnyboyJ 1 Reply Last reply Reply Quote 0
                    • johnnyboyJ Offline
                      johnnyboy @johnnyboy
                      last edited by johnnyboy

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

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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