salut après quelque galères pour installer le script (en double autentification) voici mon mémo:
Sur mon PC:
-Sur
https://www.amazon.fr/
-Je me log
-Connexion et paramètres de sécurité/paramètres de vérification en deux étapes(2sv)/marche a suivre
-Puis "application d'authentification" puis sous le QR Code je clic sur "impossible de scanner le code-barre"
-J'obtient "aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa"
Je repasse sur mon raspberry:
je lance sudo apt-get install oathtool
oathtool -b --totp "aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa"
et j'obtient le code 123456
Sur mon PC:
-je rentre mon code 123456 puis clic sur verifier le code OTP avant de continuer
-je valide
-Via filezilla je dépose le script "alexa_remote_control.sh " dans /home/pi/domoticz/scripts/alexa_remote_control.sh
-Via filezilla je fait editer le fichier
Code : Tout sélectionner
SET_EMAIL='mail de connexion@chezamazon.fr'
SET_PASSWORD='mdp de connexion@chezamazon.fr'
SET_MFA_SECRET='aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa'
# something like:
# 1234 5678 9ABC DEFG HIJK LMNO PQRS TUVW XYZ0 1234 5678 9ABC DEFG
#123456
SET_LANGUAGE='fr-FR;q=0.7,en;q=0.3'
#SET_LANGUAGE='en-US'
SET_TTS_LOCALE='fr-FR'
SET_AMAZON='amazon.fr'
#SET_AMAZON='amazon.com'
SET_ALEXA='alexa.amazon.fr'
#SET_ALEXA='pitangui.amazon.com'
# cURL binary
SET_CURL='/usr/bin/curl'
-j'enregistre et je valide la modification puis envoie sur le pi
-je fait un : sudo chmod +x /home/pi/domoticz/scripts/alexa_remote_control.sh
-Je reboot le pi
-et lance un : sudo /home/pi/domoticz/scripts/alexa_remote_control.sh -e speak:"bonjour"
j'obtient:
cookie does not exist. logging in ...
device list does not exist. downloading ...
setting default device to:
/home/pi/domoticz/scripts/alexa_remote_control.sh: 599: /home/pi/domoticz/scripts/alexa_remote_control.sh: jq: not found
/home/pi/domoticz/scripts/alexa_remote_control.sh: 603: /home/pi/domoticz/scripts/alexa_remote_control.sh: jq: not found
/home/pi/domoticz/scripts/alexa_remote_control.sh: 604: /home/pi/domoticz/scripts/alexa_remote_control.sh: jq: not found
/home/pi/domoticz/scripts/alexa_remote_control.sh: 605: /home/pi/domoticz/scripts/alexa_remote_control.sh: jq: not found
ERROR: unkown device dev:
Donc sur le pi je lance:
sudo apt-get install jq
et relance un : sudo /home/pi/domoticz/scripts/alexa_remote_control.sh -e speak:"bonjour"
et bingo
Raspi B+ avec Domoticz ,6 Chacon 2300W , 6 Sondes Oregon, 1 Sonde DIY Oregon ds18b20, Téléinfo sur photovoltaique, script backup ftp & anti offline.