Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. [Aufruf] Neuer Adaper Google-Sharedlocations

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Aufruf] Neuer Adaper Google-Sharedlocations

    This topic has been deleted. Only users with topic management privileges can see it.
    • Garfonso
      Garfonso Developer @mrhary last edited by

      @mrhary
      und davor gab es vom adapter keine Warnungen?

      Ohne Informationen, welche Bestandteile des Cookies abgelehnt werden... und von wem... wird das schwierig zu beheben sein. Eigentlich gibt es in 2.1.6 einen Filter, der möglicherweise unerlaubte Bestandteile (das ist auch nicht ganz klar, was erlaubt ist und was nicht) rausfiltert und entsprechend warnt (ggf. aber nur beim Adapterstart einmal).
      Irgendwie sieht der Fehler auch so aus, als ob er lokal kommt, also von axios oder der node.js Version lokal abhängt...

      Wie sich das selber reparieren kann... hm... ok, der Adapter 2.1.6 speichert sich den Cookie, den der Server zurückschickt und aktualisiert damit den Cookie, den er sendet. Das könnte natürlich teile dann plötzlich gültig machen, wenn die Anfragen durchkommen kopfkratz (was dann aber gegen einen lokalen Fehler spricht?). Komisch... oder ist der Fehler doch an anderer Stelle...

      Stirbt der Adapter?
      Gibt es, wenn der Fehler im log kommt, trotzdem Updates? ggf. auch nur von einem Teil der Daten?

      J 1 Reply Last reply Reply Quote 0
      • J
        Jan1 @Garfonso last edited by

        @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.
        
        Garfonso 1 Reply Last reply Reply Quote 0
        • Garfonso
          Garfonso Developer @Jan1 last edited by

          @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).

          J 1 Reply Last reply Reply Quote 0
          • J
            Jan1 @Garfonso last edited by

            @garfonso
            Es ist egal, wie ich kopiere, der Cookie ist immer identisch und "..." steht auch so im Cookie unter Netzwerkanalyse mit drin.

            Garfonso 1 Reply Last reply Reply Quote 0
            • Garfonso
              Garfonso Developer @Jan1 last edited by

              @jan1 welcher browser?

              Hab es gerade mit Firefox ausprobiert. Es ist richtig, in der Anzeige steht der Cookie mit ... (eben, weil zu lang):
              google-Cookie-mitPunkten.png

              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):
              google-Cookie-Ergebnise.png

              J 1 Reply Last reply Reply Quote 0
              • J
                Jan1 @Garfonso last edited by

                @garfonso
                Im Firefox, weil im Edge ich das nicht gebacken bekomme.
                Wie soll ich denn nun kopieren?

                David G. Garfonso 2 Replies Last reply Reply Quote 0
                • David G.
                  David G. @Jan1 last edited by David G.

                  @jan1

                  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.

                  1 Reply Last reply Reply Quote 0
                  • Garfonso
                    Garfonso Developer @Jan1 last edited by Garfonso

                    @jan1
                    Also mein vorgehen ist:
                    Das Feld mit dem Cookie: 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.

                    David G. J 2 Replies Last reply Reply Quote 0
                    • David G.
                      David G. @Garfonso last edited by

                      @garfonso

                      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.

                      1 Reply Last reply Reply Quote 0
                      • J
                        Jan1 @Garfonso last edited by Jan1

                        @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

                        XBiT 1 Reply Last reply Reply Quote 0
                        • XBiT
                          XBiT @Jan1 last edited by

                          @jan1

                          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:

                          CONSENT=PENDING+684; NID=511=ioXATcM7sHOgEMLerwYIOvA6PYskEF-wxRbkWpHX3zp6IPZLwx6SSfYFmm4eevuRtk9qFgR4GyinLUs257jmIDilFPW5ICEEdrXy7i5BT3sVOKiChdze76DVDVUT08Co5hHyp0w74DZ6W-RA1WkgcPB7e-4pH4OZG8K0BSZO4WhwiDJAuNU0KnZPc6-4RoE_Au11RniQKYll6NPxChVR; SID=FAgGuPLHegKAhOTeselyrEBcWNOm7t-LMGdp1efeCyAJnBYxXYynZPAkqWjcHIrKlwoWag.; __Secure-1PSID=CAgGuHLHegLAhOTeselyrENcWNOm7t-LMGdp1efeCyAJnBYxoJFzO3XbvzBNsDxp89XiUA.; __Secure-3PSID=CAgGuHLHegLAhOTeselyrENcWNOm7t-LMGdp1efeCyAJnBYxhXrFIpM6-o9CIIAQiiK3hQ.; HSID=A3KPYO0F6WphlZrTX; SSID=Au09niZwvKAqWugqH; APISID=xfSJnRt9Y9AKrZ7R/Au0-exs9a0ZG7jv9k; SAPISID=eF_8dwG5GgBbznyz/AjblA5CLANKBRNv0H; __Secure-1PAPISID=eF_8dwJ5GgBuznyz/AjblA5CLANKLRGv0H; __Secure-3PAPISID=eF_8dwJ5GgBbznyz/AjblA5CLANKVRNv0H; SIDCC=AJi4UfGlIs_-no8vgqfCjYbcSRXPG_kq3-EY5lymulQ0lsdDQ8ZwjH4RzSHXWrwYgvrcy_8Ktg; __Secure-3PSIDCC=ALi4VfH-ri2ejdp8147ynD3-KAcNZTFmtUY6t2gfPZCIf3Sn1aAPtg_L30G19O6rcoE-qrlepg
                          

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            Jan1 @XBiT last edited by Jan1

                            @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.

                            XBiT 1 Reply Last reply Reply Quote 0
                            • XBiT
                              XBiT @Jan1 last edited by

                              @jan1

                              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 🙂

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                Jan1 @XBiT last edited by

                                @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 🙂

                                M 1 Reply Last reply Reply Quote 1
                                • M
                                  maxpd @Jan1 last edited by

                                  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.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Snigga last edited by

                                    Irgendwie bekomme ich die Cookie nicht richtig gespeichert. Gibt es aktuell einen BUG?

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      maxpd @Snigga last edited by

                                      @snigga Auch bei mir ist er auf rot gesprungen und neue Cookies werden nur mit connection failed quittiert.

                                      David G. B 2 Replies Last reply Reply Quote 0
                                      • David G.
                                        David G. @maxpd last edited by

                                        @maxpd

                                        Bei mir läuft der Adapter noch.

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          bommel_030 @maxpd last edited by

                                          @maxpd
                                          Gestern erst den Cookie erneuert. Lief problemlos. Hast du auch alles richtig kopiert? Also rechte Maustaste -> Wert kopieren? (zumindest bei Chrome).

                                          M 1 Reply Last reply Reply Quote 1
                                          • M
                                            maxpd @bommel_030 last edited by

                                            @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.

                                            B 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            788
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            google shared locations
                                            51
                                            496
                                            87528
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo