Page 12 sur 15
Re: Alexa alexa-remote-control script
Publié : 21 nov. 2021, 08:00
par Abbij
Je reviens vers vous car tout fonctionnait parfaitement mais depuis ce matin plus rien
J'ai un message d'erreur
Pour info j'utilise le MFA, j'ai bien installé jq et fait le chmod +x

- 2021-11-21 (1).png (47.41 Kio) Consulté 4006 fois
Quelqu'un aurai une idée?

Re: Alexa alexa-remote-control script
Publié : 24 nov. 2021, 08:00
par Abbij
Bonjour à tous
J'ai trouvé la solution, même si étant débutant je ne pense pas aider grand monde, on sait jamais
Les 2 scripts se perturbent entre les fichiers temporaires d'où les erreurs
J'ai recommencé avec alexa_remote_control.sh les lignes de commandes fonctionnent toutes en effet dans la version plain il faut noté les noms d'appareils avec des "_" que la version normal c'est des espaces
Re: Alexa alexa-remote-control script
Publié : 15 nov. 2022, 22:53
par jojomul1983
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.
Quelqu'un pourrait m'aider, j'ai vraiment du mal.
Re: Alexa alexa-remote-control script
Publié : 11 janv. 2023, 10:18
par Darkneo
Hello!
Je viens filer un petit coup de main, si je peux...
Dans le fichier alexa_remote_control.sh, il faut que tu settes toutes les valeurs, sinon cela ne fonctionnera pas...
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'
Et il faut que tu installes oathtool et jq:
Re: Alexa alexa-remote-control script
Publié : 11 janv. 2023, 17:53
par jojomul1983
Merci, mais .....
En fait, j'avais déjà repris toute l'installation, c'est ok depuis un bon moment.
Le seul truc que je voudrais ajouter, c'est le volume entre "jour" et "nuit".
Mais modifier le script pour ça, j'en suis incapable, auriez-vous une idée ?
Re: Alexa alexa-remote-control script
Publié : 27 janv. 2023, 07:32
par Abbij
Bonjour à tous
Depuis ce matin impossible de créer la liste des cookies
Le scripts ne fonctionne plus
Avez vous le même soucis?
Re: Alexa alexa-remote-control script
Publié : 27 janv. 2023, 18:19
par TroisSix
J'ai aussi le soucis des cookies malgré la méthode mfa/oathtool...
Edit: ça fonctionne en utilisant le cookie-cli, et plus besoin de login/pwd/mfa !
Re: Alexa alexa-remote-control script
Publié : 27 janv. 2023, 19:13
par Abbij
Merci pour le retour
En effet j'ai fait la deuxième méthode qui n'utilise plus oathool et cela fonctionne

Re: Alexa alexa-remote-control script
Publié : 09 févr. 2023, 09:11
par AchilleTalon
Bonjour,
Tout fonctionnait très bien chez moi, jusqu'à ce qu'on me demande de me ré-authentifier.
J'essaie moi-aussi d'utiliser la méthode "cookie-cli", mais sans succès jusqu'ici.
Pourriez-vous détailler la façon dont vous avez procédé ? J'ai l'impression d'avoir suivi les indications, mais je n'arrive pas à faire fonctionner.
Merci d'avance
EDIT : à la dernière tentative, ça a marché (refresh_token dela forme "Atnr|..."). Donc tout va bien !
Re: Alexa alexa-remote-control script
Publié : 02 mars 2023, 15:55
par PHP-IP
Bon ben moi ça ne fonctionne plus

J'ai essayé de refaire le MFA secret mais non ça ne veut pas...
