es tut mir leid, aber ich bin mit dem Thema gedanklich noch nicht durch.
Mir ist schleierhaft warum das nicht funktioniert.
Wenn ich mich parallel im Browser auf meinem PC bei Alexa.amazon.de anmelde passiert auf der CCU folgendes:
Ich habe extra immer einen Zeitstempel daneben gemacht.... Am Browser am PC verändere ich nix.
Javascript ist aktiv, der Coockie wird gespeichert
Ich bräuchte bitte eine Idee.....
wenn die Anmeldung funktioniert passiert unter der CCU3 im /tmp Order folgendes:
Code: Alles auswählen
ls -lisa /tmp/.alexa.cookie
840038 4 -rw-r--r-- 1 root root 1512 Oct 7 20:38 /tmp/.alexa.cookie
Gibt es irgendwo ein Aufräumscript für /tmp?
Inhalt vom Coockie:
Code: Alles auswählen
# cat /tmp/.alexa.cookie2 .
.ash_history .bash_logout .bash_profile .ssh/
# cat /tmp/.alexa.cookie2 .
.ash_history .bash_logout .bash_profile .ssh/
# cat /tmp/.alexa.cookie*
# Netscape HTTP Cookie File
# https://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
.amazon.de TRUE / TRUE 1633631916 ubid-acbde 262-3147167-1520748
.amazon.de TRUE / TRUE 1633631916 session-id 260-5590358-5882314
.amazon.de TRUE / TRUE 1633631916 session-id-time 2232815916l
.amazon.de TRUE / TRUE 1633631917 session-token "Y/JU70lH7u3uBPXGrq0P77lwZL0hJMqb/WNx4RTvXVD9r6M5lQNV95lOHnXFZM3jgvfkjIG1MLuM7yCYg6QdA0+IJjuLm6/SB3KDMSoDhlI+wsixem7QJxR9L16JjNb7YmTD8zIzp4s5VnKDtU+C62APTu9vl3/HXwLVFfFK8Y/RVhUMaBTUU2K/9EuXI+K3JPcKp8uijxXdBFUv4j8s2xy5HwTXPz0jNUdImNITM="
.amazon.de TRUE / TRUE 1633631917 x-acbde "wHFumgwABf51TSH2rE5@GsGNPfLZiw8o"
#HttpOnly_.amazon.de TRUE / TRUE 1633631916 at-acbde Atza|IwEBIHZ_bLzWS42bEAqR6bTUPxVIgGed8lU6PQ6v8PhqUg2Zyni1MR9aiC7fAyFD0qy1IS6aYmfwMUB4vMhH_gYRqomRRJlNsYdHrg vizu7mWVB32Ldn_QBbkNxAiuNn6ORI8URA-JgYLAkekeQQbeS6t7As4PwxIc6c_k2wDi6_2b0au0wpLU963WGMBET37k2a0NxEb-iVQ64AQvdJLwZP1d6X5w1EkhcztD4VCG0Afmo_7g
#HttpOnly_.amazon.de TRUE / TRUE 1633631917 sess-at-acbde "x6e8pVBHFUYJP2k0LuJ3jXN4nFnC/WYuD9uZ/vSF9TE="
#HttpOnly_.amazon.de TRUE / TRUE 1633631916 sst-acbde Sst1|PQE5SFWtyFUVe0Xx6Q1IQX0LCf4xpvpTcNniLmmEQW3xzlIyxCvSMn7z789dBXCHxEDpROySPY26Tu8EWnYWTucCzhovv7gNE9j60fQJtr0jzczuo7uKFVdKOusoDXv7Bb923LGHLplm7G2RzUi_hKqrSf540C-5YW1URU-sx7IeL4f6zS96QyPTd2leyDCsfNUZ4B80g6iev9rrwSf1qhd8DIoPGZbjXZNO-yURLJSCAZgCqEmowdq0wZz3ynjEcekJYRh5XNwe7oIk52PqCqJaV_gaWsIU8iLwYxovXm0
.amazon.de TRUE / FALSE 1917628717 csrf -274284431
Warum bleiben diese Dateien nicht bestehen?
Code: Alles auswählen
# crontab -l
0 * * * * /bin/setHWClock.sh >/dev/null 2>/dev/null
1 */6 * * * /bin/SetInterfaceClock
0 4 * * * /usr/sbin/logrotate -f /etc/logrotate.conf || logger -p error -t "logrotate" "logrotate aborted with error $?"
*/5 * * * * /usr/local/addons/mediola/bin/watchdog
33 * * * * /usr/local/addons/alexa/check_cookie.sh > /dev/null
Auf der CCU3 passiert folgendes: Bitte beachtet die Zeiten, so schnell kann doch kein Coockie expiren...
Code: Alles auswählen
# date
Wed Oct 7 20:24:43 CEST 2020
# /usr/local/addons/alexa/alexa.sh -a
cookie does not exist. logging in ...
device list does not exist. downloading ...
the following devices exist in your account:
This Device
Kueche
Wintergarten
Überall
Wohnzimmer
Großes Bad
Kleines Bad
Elternschlafzimmer
# date
Wed Oct 7 20:25:03 CEST 2020
# /usr/local/addons/alexa/alexa.sh -a
the following devices exist in your account:
This Device
Kueche
Wintergarten
Überall
Wohnzimmer
Großes Bad
Kleines Bad
Elternschlafzimmer
# date
Wed Oct 7 20:25:09 CEST 2020
# /usr/local/addons/alexa/alexa.sh -a
cookie expired, logging in again ...
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.
#