Ok dann gehts mal hier weiter,blackhole hat geschrieben: ↑02.03.2021, 15:23ChristianM hat geschrieben: ↑02.03.2021, 14:46Genau, Anleitung befolgt, langer Code ist immer noch integriert und es funktioniert trotzdem nicht und jetzt?
Nochmal lesen?
Gute Idee.
Den Abschnitt "Fehleranalyse" der Anleitung hast du dir noch nicht vorgenommen.
Javascript wurde deaktiviert und die Cookies wurden auch gelöscht.
login as: root
root@192.168.1.13's password:
# ls -la /tmp/.alexa*
-rw-r--r-- 1 root root 91261 Mar 1 09:13 /tmp/.alexa.login
# ls -la /usr/local/addons/alexa/
total 504
drwx------ 2 root root 920 Feb 28 22:07 .
drwxr-xr-x 7 root root 800 Feb 28 22:07 ..
-rwxr-xr-x 1 root root 693 Mar 1 09:12 alexa.sh
-rwxr-xr-x 1 root root 49940 Feb 28 22:48 alexa_remote_control.sh
-rwxr-xr-x 1 root root 1448 Jul 7 2020 check_cookie.sh
-rwxr-xr-x 1 root root 514 Jul 7 2020 get_cookie_date.sh
-rwxr-xr-x 1 root root 455 Aug 3 2020 get_lastalexa.sh
-rwxr-xr-x 1 root root 633 Aug 3 2020 get_lastalexacmd.sh
-rwxr-xr-x 1 root root 474 Aug 3 2020 get_lastcommand.sh
-rwxr-xr-x 1 root root 639 Jul 7 2020 get_new_cookie.sh
-rwxr-xr-x 1 root root 269108 Aug 15 2019 jq
-rwxr-xr-x 1 root root 161772 Jul 6 2020 oathtool
# /usr/local/addons/alexa/alexa.sh -a
cookie does not exist. logging in ...
/usr/local/addons/alexa/alexa.sh: /usr/local/addons/alexa/alexa_remote_control.sh: line 509: oathtool: not found
ERROR: Amazon Login was unsuccessful. Possibly you get a captcha login screen.
Try logging in to https://alexa.amazon.de 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.
# crontab -l
0 4 * * * /usr/sbin/logrotate -f /etc/logrotate.conf || logger -p error -t "logrotate" "logrotate aborted with error $?"
12 4 * * * /bin/setHWClock.sh
14 4 * * * /bin/SetInterfaceClock
# login as: root
Password: