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 @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
                                    • B
                                      bommel_030 @maxpd last edited by

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

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

                                        Läuft der Adapter bei Euch noch einwandfrei? Meine Positionsdaten werden seit Sonntag nicht mehr aktualisiert.
                                        Cookie ist aktuell und Verbindungstest ist auch erfolgreich. Irgendwas scheint er auch abzuholen. Hab die Option "Places-Adapter" aktiviert. Dort werden auch weiterhin die Standorte aktualisiert. Debug-Logs der Adapter sind leider nicht sehr ausgabekräftig.

                                        
                                        google-sharedlocations.0
                                        2022-06-28 15:25:28.082	debug	Response: 200
                                        
                                        google-sharedlocations.0
                                        2022-06-28 15:25:28.074	debug	New header received.
                                        
                                        google-sharedlocations.0
                                        2022-06-28 15:25:27.566	debug	Polling locations.
                                        
                                        google-sharedlocations.0
                                        2022-06-28 15:25:27.552	debug	Need to augment cookie.
                                        
                                        google-sharedlocations.0
                                        2022-06-28 15:25:27.551	debug	Polling location every 300s.
                                        
                                        google-sharedlocations.0
                                        2022-06-28 15:25:27.502	info	Starting google shared locations adapter
                                        
                                        google-sharedlocations.0
                                        2022-06-28 15:25:27.492	info	starting. Version 2.2.1 (non-npm: Garfonso/ioBroker.google-sharedlocations#91ce6d3d470cba4011b7861103c4bfffa32dffbe) in /opt/iobroker/node_modules/iobroker.google-sharedlocations, node: v16.15.1, js-controller: 4.0.23
                                        


                                        
                                        places.0
                                        2022-06-28 15:25:28.107	warn	Ignoring incomplete message!
                                        
                                        places.0
                                        2022-06-28 15:25:28.100	info	Processed message, returning result: {"user":"M","latitude":52.xxxxx,"longitude":13.xxxx,"timestamp":1656422728088,"address":"","date":"2022-06-28 15:25:28","atHome":false,"distance":13036,"name":"","elevation":0,"routeDistance":"","routeDuration":"","routeDurationWithTraffic":""}
                                        
                                        places.0
                                        2022-06-28 15:25:28.099	debug	Updating persons at home
                                        
                                        places.0
                                        2022-06-28 15:25:28.099	debug	Setting values for user M
                                        
                                        places.0
                                        2022-06-28 15:25:28.090	debug	Skipping geocoding (either deactivated by configuration or invalid API key)
                                        
                                        places.0
                                        2022-06-28 15:25:28.090	debug	Checking if position is at "K" (radius: 250m)
                                        
                                        places.0
                                        2022-06-28 15:25:28.090	debug	Checking if position is at "C" (radius: 250m)
                                        
                                        places.0
                                        2022-06-28 15:25:28.090	debug	Checking if position is at "F" (radius: 250m)
                                        
                                        places.0
                                        2022-06-28 15:25:28.090	debug	Checking if user "M Birkholz" should be replaced with "Jessica"
                                        
                                        places.0
                                        2022-06-28 15:25:28.090	debug	Checking if user "M Birkholz" should be replaced with "Martin"
                                        
                                        places.0
                                        2022-06-28 15:25:28.090	debug	Processing message: {"user":"M2","latitude":52.xxxx,"longitude":13.xxxx,"timestamp":1656422728088,"address":"Berlin, Germany","date":"2022-06-28 15:25:28"}
                                        
                                        places.0
                                        2022-06-28 15:25:28.087	info	Processed message, returning result: {"user":"M3","latitude":52.xxx,"longitude":13.2xxxx,"timestamp":1656422728082,"address":"","date":"2022-06-28 15:25:28","atHome":false,"distance":13035,"name":"","elevation":0,"routeDistance":"","routeDuration":"","routeDurationWithTraffic":""}
                                        
                                        places.0
                                        2022-06-28 15:25:28.087	debug	Updating persons at home
                                        
                                        places.0
                                        2022-06-28 15:25:28.086	debug	Setting values for user M1
                                        
                                        places.0
                                        2022-06-28 15:25:28.085	debug	Skipping geocoding (either deactivated by configuration or invalid API key)
                                        
                                        places.0
                                        2022-06-28 15:25:28.084	debug	Checking if position is at "K" (radius: 250m)
                                        
                                        places.0
                                        2022-06-28 15:25:28.084	debug	Checking if position is at "C" (radius: 250m)
                                        
                                        places.0
                                        2022-06-28 15:25:28.084	debug	Checking if position is at "F" (radius: 250m)
                                        
                                        places.0
                                        2022-06-28 15:25:28.084	debug	Checking if user "M" should be replaced with "J"
                                        
                                        places.0
                                        2022-06-28 15:25:28.084	debug	Checking if user "M" should be replaced with "M"
                                        
                                        places.0
                                        2022-06-28 15:25:28.084	debug	Processing message: {"user":"M","latitude":52.xxxx,"longitude":13.xxxx,"timestamp":1656422728082,"address":"Berlin, Germany","date":"2022-06-28 15:25:28"}
                                        

                                        David G. M 2 Replies Last reply Reply Quote 0
                                        • David G.
                                          David G. @bommel_030 last edited by

                                          @bommel_030

                                          Hatte ich auch vor längerem mal.
                                          Neuen Coockie rein und es ging wieder.

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

                                            @bommel_030 Samstag Nachmittag auf Sonntag Mittag ging bei mir auch nix mehr. Dann hat er sich wieder gefangen.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            782
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            google shared locations
                                            51
                                            496
                                            87533
                                            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