J'ai un message d'erreur
Pour info j'utilise le MFA, j'ai bien installé jq et fait le chmod +x Quelqu'un aurai une idée?
Code : Tout sélectionner
/home/pi/domoticz/scripts/alexa_remote_control.sh -a
/home/pi/domoticz/scripts/alexa_remote_control.sh: ligne 120:
# something like:
# 1234 5678 9ABC DEFG HIJK LMNO PQRS TUVW XYZ0 1234 5678 9ABC DEFG
# this can be obtained by doing the device registration login flow
# e.g. from here: https://github.com/Apollon77/alexa-cookie/
#SET_REFRESH_TOKEN=
SET_LANGUAGE=fr-FR
#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
# cURL options
# -k : if your cURL cannot verify CA certificates, youll: Aucun fichier ou dossier de ce type
cookie does not exist. logging in ...
/home/pi/domoticz/scripts/alexa_remote_control.sh: ligne 526: -k : commande introuvable
grep: /tmp/.alexa.header: Aucun fichier ou dossier de ce type
/home/pi/domoticz/scripts/alexa_remote_control.sh: ligne 532: -k : commande introuvable
awk: cannot open /tmp/.alexa.cookie (No such file or directory)
/home/pi/domoticz/scripts/alexa_remote_control.sh: ligne 547: -k : commande introuvable
grep: /tmp/.alexa.header2: Aucun fichier ou dossier de ce type
ERROR: Amazon Login was unsuccessful. Possibly you get a captcha login screen.
Try logging in to https://alexa. with your browser. In your browser
make sure to have all Amazon related cookies deleted and Javascript disabled!
(For more information have a look at /tmp/.alexa.login)
To avoid issues with captcha, try using Multi-Factor Authentication.
To do so, first set up Two-Step Verification on your Amazon account, then
configure this script (or the environment) with your MFA secret.
Support for Multi-Factor Authentication requires 'oathtool' to be installed.
Code : Tout sélectionner
SET_EMAIL='email de ton compte Amazon'
SET_PASSWORD='Very_Secret_Amazon_Account_Password'
SET_MFA_SECRET='voir la procédure pour avoir la clé MFA sur github'
# something like:
# 1234 5678 9ABC DEFG HIJK LMNO PQRS TUVW XYZ0 1234 5678 9ABC DEFG
# this can be obtained by doing the device registration login flow
# e.g. from here: https://github.com/Apollon77/alexa-cookie/
SET_REFRESH_TOKEN=''
SET_LANGUAGE='fr-FR'
#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'
Code : Tout sélectionner
apt-get install jq
apt-get install oathtool