Ok,
Got it working.
please note; the device is on the Amazon.de device. I'm in the Netherlands, my Dot speaks English. The cookie was received using the Rpi VNC terminal within Chromium, after logging in to the German site. This is in my .sh file:
Code: Select all
#LANGUAGE="de-DE"
LANGUAGE="en-US"
#AMAZON='amazon.de'
#AMAZON='amazon.com'
AMAZON='amazon.co.uk'
ALEXA='alexa.amazon.co.uk'
#ALEXA='layla.amazon.de'
#ALEXA='pitangui.amazon.com'
Complete procedure:
1) Install jq from
https://stedolan.github.io/jq/download/ by using command sudo apt-get install jq
2) Download script from
https://loetzimmer.de/patches/alexa_remote_control.sh (via blog
https://blog.loetzimmer.de/2017/10/amaz ... -echo.html) and placed it in /home/pi/domoticz/scripts/
3) Set permissions on the script to 777
4) (sudo chmod 777 /tmp/.alexa.login) ?neccessary? was not needed second time
5) (found the Dot on the german Amazon Site, my devices ) ? don't know if it matters, see note above
6) switch off 2-way authentication on Amazon
7) login to Rpi desktop, using VNC viewer. For me, I had to completely re-install, from RASPBIAN STRETCH LITE to RASPBIAN STRETCH WITH DESKTOP, because I could not get the desktop going from stretch lite
8)
add this extension to Chromium https://chrome.google.com/webstore/deta ... coicjekelh
Then goto https://alexa.amazon.com/, login to amazon, and run the extension.
Paste the text into /tmp/.alexa.cookie and you've bypassed captcha's and possibly 2fa.
more info:
https://github.com/thorsten-gehrig/alex ... /issues/10
9) test the script;
/home/pi/domoticz/scripts/alexa_remote_control.sh -e speak:'hello, this is perfect'