MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Where to run a Script?

    Troubleshooting
    2
    11
    3479
    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.
    • johnnyboy
      johnnyboy last edited by johnnyboy

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

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

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

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • mochman
              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`
              
              johnnyboy 2 Replies Last reply Reply Quote 1
              • johnnyboy
                johnnyboy @mochman last edited by johnnyboy

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

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

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

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • johnnyboy
                        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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy