NEWS
[Aufruf] Neuer Adaper Google-Sharedlocations
-
@garfonso
hier mal das Log im Debug Modus beim Adapter Start:2022-05-11 16:59:32.540 - info: admin.0 (281919) ==> Connected system.user.admin from ::ffff:192.168.100.16 2022-05-11 16:59:39.185 - warn: admin.0 (281919) Read-only state "google-sharedlocations.0.info.augmented_cookie" has been written without ack-flag with value "" 2022-05-11 16:59:39.277 - info: host.Beelink stopInstance system.adapter.google-sharedlocations.0 (force=false, process=true) 2022-05-11 16:59:39.288 - info: google-sharedlocations.0 (366242) Got terminate signal TERMINATE_YOURSELF 2022-05-11 16:59:39.296 - info: host.Beelink stopInstance system.adapter.google-sharedlocations.0 send kill signal 2022-05-11 16:59:39.293 - info: google-sharedlocations.0 (366242) terminating 2022-05-11 16:59:39.295 - info: google-sharedlocations.0 (366242) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2022-05-11 16:59:39.560 - info: admin.0 (281919) <== Disconnect system.user.admin from ::ffff:192.168.100.16 2022-05-11 16:59:39.957 - info: host.Beelink instance system.adapter.google-sharedlocations.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2022-05-11 16:59:42.418 - info: host.Beelink instance system.adapter.google-sharedlocations.0 started with pid 367009 2022-05-11 16:59:43.548 - debug: google-sharedlocations.0 (367009) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-05-11 16:59:43.673 - debug: google-sharedlocations.0 (367009) Objects client ready ... initialize now 2022-05-11 16:59:43.677 - debug: google-sharedlocations.0 (367009) Objects create System PubSub Client 2022-05-11 16:59:43.678 - debug: google-sharedlocations.0 (367009) Objects create User PubSub Client 2022-05-11 16:59:43.742 - debug: google-sharedlocations.0 (367009) Objects client initialize lua scripts 2022-05-11 16:59:43.749 - debug: google-sharedlocations.0 (367009) Objects connected to redis: 127.0.0.1:9001 2022-05-11 16:59:43.782 - debug: google-sharedlocations.0 (367009) Redis States: Use Redis connection: 127.0.0.1:9000 2022-05-11 16:59:43.812 - debug: google-sharedlocations.0 (367009) States create System PubSub Client 2022-05-11 16:59:43.814 - debug: google-sharedlocations.0 (367009) States create User PubSub Client 2022-05-11 16:59:43.851 - debug: google-sharedlocations.0 (367009) States connected to redis: 127.0.0.1:9000 2022-05-11 16:59:44.300 - info: google-sharedlocations.0 (367009) starting. Version 2.1.6 (non-npm: Garfonso/ioBroker.google-sharedlocations#85d8b0a5e1c3eb10986169863c6fd9b3dd271c5d) in /opt/iobroker/node_modules/iobroker.google-sharedlocations, node: v14.19.2, js-controller: 4.0.23 2022-05-11 16:59:44.334 - info: google-sharedlocations.0 (367009) Starting google shared locations adapter 2022-05-11 16:59:44.387 - warn: google-sharedlocations.0 (367009) Invalid character in cookie header: … at undefined. Did you copy the full cookie correctly? 2022-05-11 16:59:44.389 - debug: google-sharedlocations.0 (367009) Polling location every 60s. 2022-05-11 16:59:44.391 - debug: google-sharedlocations.0 (367009) Need to augment cookie. 2022-05-11 16:59:44.437 - debug: google-sharedlocations.0 (367009) Polling locations. 2022-05-11 16:59:44.846 - debug: google-sharedlocations.0 (367009) Response: 200 2022-05-11 16:59:44.848 - debug: google-sharedlocations.0 (367009) New header received. 2022-05-11 16:59:44.851 - info: google-sharedlocations.0 (367009) Error in location data parsing: Error: No location data in response. Cookie expired or no users share their location with you. 2022-05-11 16:59:44.852 - error: google-sharedlocations.0 (367009) Could not parse location data. Probably authentication error. Please check cookie. 2022-05-11 16:59:45.238 - debug: google-sharedlocations.0 (367009) New header received. 2022-05-11 16:59:45.893 - debug: google-sharedlocations.0 (367009) New header received.
-
@jan1
hm... das "..." Zeichen ist aber schon verdächtig... ist der Cookie mit Rechtsklick -> Copy kopiert worden? Markieren und Strg+C geht nicht (weil zu lang und Teile werden raus genommen und durch ... ersetzt). -
@garfonso
Es ist egal, wie ich kopiere, der Cookie ist immer identisch und "..." steht auch so im Cookie unter Netzwerkanalyse mit drin. -
@jan1 welcher browser?
Hab es gerade mit Firefox ausprobiert. Es ist richtig, in der Anzeige steht der Cookie mit ... (eben, weil zu lang):
Wenn ich den "Cookie"-Eintrag einmal mit einem Klick auswähle und dann Rechtsklick -> Copy kopiere, sind die ... aber weg.
Wenn ich Text markiere (z.B. mit der maus klicken & ziehen), dann geht das kopieren schief, tatsächlich auch über das Rechtsklick Menü.
(oben mit Rechtsklick -> Copy, unten mit markieren und strg+c):
-
@garfonso
Im Firefox, weil im Edge ich das nicht gebacken bekomme.
Wie soll ich denn nun kopieren? -
Ich mache es immer am Smartphone.
Da habe ich die App "WebView Test" (Android).
(Bediene den iobroker fast komplett am Smartphone. Leider geht das seit dem Admin 5 nicht mehr so gut....).Dort gehe ich auf "Coockie bearbeiten".
Anstatt es zu bearbeiten kopiere ich es mir da komplett raus. Hat bisher immer geklappt. -
@jan1
Also mein vorgehen ist:
Das Feld mit demCookie:
einmal mit linksklick anklicken, dann ist es markiert. Dann Rechtklick -> Copy. Da kam bisher immer der ganze Text.Als Alternative habe ich gerade etwas eingebaut, es gibt Addons, die Cookies extrahieren können, z.B. für Firefox (habe ich getestet) oder Chrome(ium?) (hab ich nicht getestet, müsste aber auch gehen). Da kommt eine Textdatei raus. Deren Inhalt kannst du komplett in das Textfeld in den Einstellungen kopieren. (ab Version 2.2.0, auf meinem Github)
Dazu gerne feedback.
Grundsätzlich scheint bei mir der Cookie aber auch nur noch selten bis gar nicht abzulaufen.
-
Dubhadt vor bestimmt 2-3-4 Monaten mal geschrien, dass du was angepasst hast beim Coockie. Seit dem läuft es bei mir durch.
Was ich manchmal habe ist, dass ich den Adapter neustarten muss weil er den Standort nicht aktualisiert. Denke so alle 2 Wochen.
-
@garfonso
Ich habe das Addon für Firefox getestet und den kompletten Inhalt (sehr viel Zeug) im Adapter eingetragen. Geht nicht und das steht im Log:2022-05-13 15:09:00.878 - info: admin.0 (3161577) ==> Connected system.user.admin from ::ffff:192.168.100.16 2022-05-13 15:09:09.928 - warn: admin.0 (3161577) Read-only state "google-sharedlocations.0.info.augmented_cookie" has been written without ack-flag with value "" 2022-05-13 15:09:10.043 - info: host.Beelink stopInstance system.adapter.google-sharedlocations.0 (force=false, process=true) 2022-05-13 15:09:10.063 - info: host.Beelink stopInstance system.adapter.google-sharedlocations.0 send kill signal 2022-05-13 15:09:10.063 - info: google-sharedlocations.0 (1338539) Got terminate signal TERMINATE_YOURSELF 2022-05-13 15:09:10.065 - info: google-sharedlocations.0 (1338539) terminating 2022-05-13 15:09:10.066 - info: google-sharedlocations.0 (1338539) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2022-05-13 15:09:10.429 - info: admin.0 (3161577) <== Disconnect system.user.admin from ::ffff:192.168.100.16 2022-05-13 15:09:10.720 - info: host.Beelink instance system.adapter.google-sharedlocations.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2022-05-13 15:09:13.116 - info: host.Beelink instance system.adapter.google-sharedlocations.0 started with pid 1350990 2022-05-13 15:09:14.646 - info: google-sharedlocations.0 (1350990) starting. Version 2.2.1 (non-npm: Garfonso/ioBroker.google-sharedlocations#91ce6d3d470cba4011b7861103c4bfffa32dffbe) in /opt/iobroker/node_modules/iobroker.google-sharedlocations, node: v14.19.2, js-controller: 4.0.23 2022-05-13 15:09:14.686 - info: google-sharedlocations.0 (1350990) Starting google shared locations adapter 2022-05-13 15:09:15.191 - info: google-sharedlocations.0 (1350990) Error in location data parsing: SyntaxError: Unexpected token < in JSON at position 0 2022-05-13 15:09:15.192 - error: google-sharedlocations.0 (1350990) Could not parse location data. Probably authentication error. Please check cookie.
Adapter Version: 2.2.1
-
also hatte auch mal Probleme damit, aber aber irgend einer Version
kann man alles rein Kopieren der Adapter sucht sich die Werte (So habe ich es jedenfalls verstanden).
Vielleicht hilft dir ein Beispiel was bei mir drin steht womit es geht.
So sollte der Token aussehen: -
@xbit
Es ist ja nicht so, dass ich das nicht schon 100 mal erfolgreich gemacht habe. Jetzt gehts einfach nicht mehr, egal was ich wie rein kopiere, er meckert.Edit:
Es kann so einfach sein, wenn man einfach auf das ? vor dem Cookie klickt und dort "kopieren" wählt, dann nimmt er wirklich alles und schon läuft es. -
Okay Sorry, dachte nur wegen,
2022-05-13 15:09:15.191 - info: google-sharedlocations.0 (1350990) Error in location data parsing: SyntaxError: Unexpected token < in JSON at position 0
es könnte ein Zeichen im String dabei sein was zum SyntaxError führt.
Bin kein Experte darin wollte nur ein Beispiel für den Token liefern weil es bis jetzt keiner gemacht hat -
@xbit
Es läuft ja wieder. Problem ist wohl, dass der Cookie eben nicht mehr komplett kopiert wird, je nach dem wie man ihn versucht zu kopieren, da er zu lang ist. Übers ? geht es -
Mein Adapter ist vor ein paar Tagen ebenfalls von alleine auf rot gesprungen. Cookie abgelaufen?
Der Cookie sieht nun auch gänzlich anders aus:
cookie: AEC=xxx; CONSENT=PENDING+088; SID=xxx.; __Secure-1PSID=xxx.; __Secure-3PSID=xxx.; HSID=xxx; SSID=xxx; APISID=xxx; SAPISID=xxx; __Secure-1PAPISID=xxx; __Secure-3PAPISID=xxx; NID=511=xxx .......
Copy & Paste von allem funktioniert trotzdem.
-
Irgendwie bekomme ich die Cookie nicht richtig gespeichert. Gibt es aktuell einen BUG?
-
@snigga Auch bei mir ist er auf rot gesprungen und neue Cookies werden nur mit connection failed quittiert.
-
Bei mir läuft der Adapter noch.
-
@maxpd
Gestern erst den Cookie erneuert. Lief problemlos. Hast du auch alles richtig kopiert? Also rechte Maustaste -> Wert kopieren? (zumindest bei Chrome). -
@bommel_030 hat nu geklappt. hab immer tripleclick gemacht, bis alles markiert war.
aber warum ist er überhaupt abgelaufen? Der war exakt 1 monat alt.
-
@maxpd
Freut mich. Ich glaube das sitzt nen Werkstudent bei Google und würfelt wann welcher Cookie abläuft
Spaß beiseite, konnte bis jetzt noch keine Muster erkennen wann die Cookies bei ablaufen.