GithubHelp home page GithubHelp logo

t4qjxh8n / iobroker.google-sharedlocations Goto Github PK

View Code? Open in Web Editor NEW
60.0 16.0 10.0 513 KB

An ioBroker-adapter for retrieving shared locations from Google

License: MIT License

HTML 21.19% JavaScript 78.81%
iobroker iobroker-adapter fence google-sharedlocations geofence

iobroker.google-sharedlocations's Introduction

Logo ioBroker adapter for google-sharedlocations

NPM version Downloads

NPM

Build Status Build status

Description

This is an ioBroker-adapter that can retrieve the location data of users that are sharing their location via google shared locations. It can not retrieve the location of the user that is used to access google.

Circularly shaped geofences can be defined in the adapter config. These geofences can be associated with users, i.e. that a state is toogled if the user enters or leaves a geofence.

The adapter can receive and process a bunch of messages, please have a look at main.js for details.

Usage

Because the adapter won't retreive any information about the user logged in, it is advised to create a new user dedicated for ioBroker.

General setup

  1. Create a new Google account for iobroker. I will call it "iobroker-Google-Account" later in the document.
  2. Log in with different Google accounts on all smartphones that should be tracked and start location sharing in Google Maps App.
  3. Open a "private browsing" window in your Web browser and log into google.com/maps with your iobroker-Google-Account. You should now see a bunch of people with their locations on the map.
  4. Copy the Cookie as described below.
  5. Close the window, do not log out of the session!

Login

Currently login via the adapter is not possible. In future versions the adapter might create a proxy server and you'll have to login via the browser once, similar to the alexa2 adapter. But currently you'll have to enter the cookie in the configuration page manually in order to login. For this, do the following:

  1. Open a private browsing window (if not done already)
  2. Log in to google.com/maps (.com is important!) with your ioBroker-Google-Account (if not done already)
  3. Open Developer Tools of your browser (ctrl+shift+I)
  4. Navigate to network analysis
  5. select any successful (Status = 200) GET (method) Request from google.com (Host column) (if the window is empty, hit F5 in the browser)
  6. In the headers window copy all contents (ctrl+a then ctrl+c) from the line Cookie. Screenshot

Troubleshooting

instance indicator is green but no location data is received or instance indicator is yellow and the log says "please login manually"

In this case check the google account of the user that is used by the google-sharedlocations adapter. Log in with a browser and check if google blocked some logins. Click on a blocked login and confirm to google that this was you. Additionally check that two factor authentification is turned off.

If you still experience problems please open an issue. Please set the adapter level to debug and publish the log there. Otherwise I have no change to help.

Donation

If this project helped you to reduce developing time, you can give me a cup of coffee or a bottle of beer via PayPal([email protected]) :-)

Changelog

2.1.3 (2021-05-31)

  • update cookie info also on position updates (Garfonso)

2.1.2 (2021-05-21)

  • fix adapter stays green even without updates (Garfonso)
  • improve cookie update (Garfonso)
  • fix crash on get users that prevents saving options (Garfonso)

2.1.1 (03-Apr-2021)

  • call account page at least every day now. (Garfonso)

2.1.0 (14-Feb-2021)

  • major rework of async logic (Garfonso)
  • add call to account page in order to get longer lasting cookie (Garfonso)
  • replace now unsupported request-library (Garfonso)

2.0.3 (13-Jan-2021)

  • fixed 500 errors (Garfonso)

2.0.2 (30-Jun-2020)

  • fixed warnings from wrong object fields - fences (Garfonso)

2.0.1 (03-Jun-2020)

  • enforced min_polling_interval (Garfonso)
  • improved error logging (Garfonso)

2.0.0 (01-Jun-2020)

  • fixed warnings from wrong object fields (Garfonso)
  • removed authentication and allowed user to copy in cookie (Garfonso)

1.5.4 (14-Apr-2019)

  • user groups are no longer created

1.5.3 (13-Apr-2019)

  • updated npm package dependencies
  • integrated adapter core from Apollon

1.5.2 (19-Sep-2018)

  • fence was not updated correctly

1.5.1 (17-Sep-2018)

  • changed location of trigger poll state
  • states are now members of named groups.

1.5.0 (16-Sep-2018)

  • added GPS position accuracy
  • adapter should be more robust against datagram changes

1.4.1 (16-Sep-2018)

  • fixed places adapter support
  • fixed translation issue with polling

1.4.0 (16-Sep-2018)

  • fences id can be determined by the user
  • fences are properly added and removed now

1.3.0 (14-Sep-2018)

  • locations poll can be triggered by a state or by sending a message ("triggerPoll") to the adapter

1.2.0 (13-Sep-2018)

  • added state showing battery level and timestamp (solves #11)

1.1.4 (13-Sep-2018)

  • fixed roles

1.1.3 (1-Sep-2018)

  • Fixed installation problem

1.1.2 (15-Aug-2018)

  • Preparations for publishing the adapter

1.1.1 (11-Aug-2018)

  • Users can be simply selected in the admin config, i.e. userid need not to be entered manually

1.1.0 (06-Aug-2018)

  • Current address of the users is stored in a state

1.0.1 (05-Aug-2018)

  • Code cleanup
  • Moved authentification to its own module

1.0.0 (17-Jul-2018)

  • Added support for Admin3.

0.0.7 (15-Jul-2018)

  • Google makes it hard to mimic a user login. Improved login procedure.
  • Minimum polling interval must be greater than 30s.

0.0.6 (22-Apr-2018)

0.0.5 (20-Apr-2018)

  • Fixed error that occurs when no fences exist

0.0.4 (24-Feb-2018)

  • Adapter does no longer crash if location data of a user has not been updated for a long time

0.0.3 (13-Feb-2018)

  • google had changed something in their authentification routine that made some changes necessary
  • several bugfixes

0.0.2 (02-Jan-2018)

  • improved descriptions
  • several bugfixes

0.0.1 (31-Dec-2017)

  • basic features tested

Known issues

  • objects for fences have to be deleted manually when they are removed in the admin interface

Disclaimer

I am not in any association with Google.

License

The MIT License (MIT)

Copyright (c) 2017-2019 Christian Vorholt [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.google-sharedlocations's People

Contributors

apollon77 avatar aushaus avatar dependabot[bot] avatar garfonso avatar t4qjxh8n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.google-sharedlocations's Issues

authuser parameter needs to be 4, not 2

I started to get the Could not parse location data... message for no apparent reason.

Upon opening maps in the browser and checking request that came directly from Google Maps page I noticed the authuser parameter had changed. In the code it's currently set to 2 but browser was using 4.

Updating this in the code fixes the issue.

Seit 5 Tagen kein Start mehr möglich trotz neuem Cookie

Hallo,
ich habe seit 5 Tagen ein Problem mit dem Adapter.
Der Cookie ist ausgelaufen, soweit kein Problem --> Cookie neu gesetzt --> gespeichert --> lief wieder.
Aber nur 24 Stunden, danach wieder
Could not parse location data. Probably authentication error. Please check cookie.

Das Ganze machte ich jetzt 5 Tage lang.
Jetzt habe ich Adapter mal komplett gelöscht und neu installiert.

Nun habe ich das Problem, dass der Adapter gar nicht mehr startet und auch das Cookie nicht mehr aktzeptiert.

Hier mein Log, Adapter gestartet, neues (richtiges) Cookie gesetzt:

2023-08-14 09:50:02.359 - info: host.IOBROKER(SmartHome) "system.adapter.google-sharedlocations.0" enabled 2023-08-14 09:50:02.550 - info: host.IOBROKER(SmartHome) instance system.adapter.google-sharedlocations.0 started with pid 38520 2023-08-14 09:50:03.688 - debug: google-sharedlocations.0 (38520) Redis Objects: Use Redis connection: 127.0.0.1:9001 2023-08-14 09:50:03.775 - debug: google-sharedlocations.0 (38520) Objects client ready ... initialize now 2023-08-14 09:50:03.776 - debug: google-sharedlocations.0 (38520) Objects create System PubSub Client 2023-08-14 09:50:03.777 - debug: google-sharedlocations.0 (38520) Objects create User PubSub Client 2023-08-14 09:50:03.850 - debug: google-sharedlocations.0 (38520) Objects client initialize lua scripts 2023-08-14 09:50:03.855 - debug: google-sharedlocations.0 (38520) Objects connected to redis: 127.0.0.1:9001 2023-08-14 09:50:03.885 - debug: google-sharedlocations.0 (38520) Redis States: Use Redis connection: 127.0.0.1:9000 2023-08-14 09:50:03.903 - debug: google-sharedlocations.0 (38520) States create System PubSub Client 2023-08-14 09:50:03.904 - debug: google-sharedlocations.0 (38520) States create User PubSub Client 2023-08-14 09:50:03.938 - debug: google-sharedlocations.0 (38520) States connected to redis: 127.0.0.1:9000 2023-08-14 09:50:04.547 - info: google-sharedlocations.0 (38520) starting. Version 2.1.3 (non-npm: t4qjXH8N/ioBroker.google-sharedlocations) in C:/iobroker/SmartHome/node_modules/iobroker.google-sharedlocations, node: v16.19.0, js-controller: 4.0.24 2023-08-14 09:50:04.564 - info: google-sharedlocations.0 (38520) Starting google shared locations adapter 2023-08-14 09:50:04.599 - debug: google-sharedlocations.0 (38520) Polling location every 600s. 2023-08-14 09:50:04.600 - debug: google-sharedlocations.0 (38520) Need to augment cookie. 2023-08-14 09:50:04.627 - debug: google-sharedlocations.0 (38520) Polling locations. 2023-08-14 09:50:04.823 - debug: google-sharedlocations.0 (38520) Response: 200 2023-08-14 09:50:04.823 - error: google-sharedlocations.0 (38520) Could not parse location data. Probably authentication error. Please check cookie. 2023-08-14 09:50:05.380 - debug: google-sharedlocations.0 (38520) New header received. 2023-08-14 09:50:05.948 - debug: google-sharedlocations.0 (38520) New header received. 2023-08-14 09:50:16.260 - debug: google-sharedlocations.0 (38520) Response: 200 2023-08-14 09:50:16.261 - error: google-sharedlocations.0 (38520) Could not parse location data. Probably authentication error. Please check cookie. 2023-08-14 09:50:40.596 - debug: google-sharedlocations.0 (38520) Response: 200 2023-08-14 09:50:40.596 - error: google-sharedlocations.0 (38520) Could not parse location data. Probably authentication error. Please check cookie. 2023-08-14 09:50:42.633 - warn: admin.0 (8340) Read-only state "google-sharedlocations.0.info.augmented_cookie" has been written without ack-flag with value ""

Bin für jede Hilfe dankbar.

Danke im Voraus.

Missing /lib/adapter.js ?

Hey, I would love to test this but I have zero experience with Node and this ioBroker project.
If I just run under node, I get 'Cannot find js-controller' error message.

regards
Mark

Please check ioBroker.google-sharedlocations with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/t4qjXH8N/ioBroker.google-sharedlocations

  • [E105] Title should not have ioBroker in the name. It is clear, for what this adapter was created. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E106] Title should not have word "adapter" in the name. It is clear, that this is adapter. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E105] Title should not have ioBroker in the name. It is clear, for what this adapter was created. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E106] Title should not have word "adapter" in the name. It is clear, that this is adapter. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E105] Title should not have ioBroker in the name. It is clear, for what this adapter was created. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E105] Title should not have ioBroker in the name. It is clear, for what this adapter was created. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E105] Title should not have ioBroker in the name. It is clear, for what this adapter was created. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E106] Title should not have word "adapter" in the name. It is clear, that this is adapter. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E105] Title should not have ioBroker in the name. It is clear, for what this adapter was created. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E105] Title should not have ioBroker in the name. It is clear, for what this adapter was created. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E105] Title should not have ioBroker in the name. It is clear, for what this adapter was created. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E105] Title should not have ioBroker in the name. It is clear, for what this adapter was created. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E106] Title should not have word "adapter" in the name. It is clear, that this is adapter. Now: {"en":"An ioBroker adapter for retrieving locations from Google shared locations","de":"Ein ioBroker-Adapter zum Abrufen von freigegebenen Google-Standorten","ru":"Адаптер ioBroker для поиска местоположений из общих мест Google","pt":"Um adaptador ioBroker para recuperar locais de locais compartilhados do Google","nl":"Een ioBroker-adapter voor het ophalen van locaties van gedeelde Google-locaties","fr":"Un adaptateur ioBroker pour récupérer des emplacements à partir d'emplacements partagés Google","it":"Un adattatore ioBroker per il recupero di posizioni da posizioni condivise di Google","es":"Un adaptador ioBroker para recuperar ubicaciones de ubicaciones compartidas de Google","pl":"Adapter ioBroker do pobierania lokalizacji z udostępnianych lokalizacji Google"}
  • [E150] No common.connectionType found in io-package.json
  • [E152] No common.dataSource found in io-package.json
  • [E154] common.dependencies must contain{"js-controller": ">=2.0.0"} or {"js-controller": ">=3.0.0"}
  • [E503] "iob_npm.done" found in repo! Please add it to .gitignore
  • [E301] Tests on Travis-ci.org are broken. Please fix.
  • [E605] No actual year found in copyright. Please add "Copyright (c) 2017-2022 Christian Vorholt [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2017-2022 Christian Vorholt [email protected]" at the start of LICENSE
  • [E818] file iob_npm.done found in repository, but not found in .npmignore
  • [E914] file iob_npm.done found in repository, but not found in .gitignore

I have also found warnings that may be fixed if possible.

  • [W113] Adapter should support compact mode
  • [W400] Cannot find "google-sharedlocations" in latest repository

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

"Failed getting locations 404 - Not found"

Since a few days two separate instances of Sharedlocations (working perfectly before) started failing to update location data with the following log message:

image

I already updated the login cookie but this did not have any effect.

Cookie expired

Hello.
After about 24 hours of driver operation, it stops working and gives out the following error:
"An error occurred during polling the locations: Error: No location data in response. Cookie expired"
Re-entering cookies will allow you to work for another 24 hours.
What am I doing wrong?

Probleme mit js-controller 3.*

Ja ich weiß, der Adapter wird wegen des Googel Login Problem im Moment nicht gepflegt, aber bei mir läuft er grundsätzlich.
Mit JS-Controller 3.* steht aber das im Log:

google-sharedlocations.0 2020-04-09 07:40:41.828 warn (32106) This object will not be created in future versions. Please report this to the developer.
google-sharedlocations.0 2020-04-09 07:40:41.828 warn (32106) Object google-sharedlocations.0.trigger_poll is invalid: obj.common.read has an invalid type! Expected "boolean", received "string"
google-sharedlocations.0 2020-04-09 07:40:41.778 warn (32106) This object will not be created in future versions. Please report this to the developer.
google-sharedlocations.0 2020-04-09 07:40:41.777 warn (32106) Object google-sharedlocations.0.info.connection is invalid: obj.common.read has an invalid type! Expected "boolean", received "string"
google-sharedlocations.0 2020-04-09 07:40:41.725 warn (32106) This object will not be created in future versions. Please report this to the developer.
google-sharedlocations.0 2020-04-09 07:40:41.724 warn (32106) Object google-sharedlocations.0.user is invalid: obj.type has an invalid value () but has to be one of state, channel, device, enum, host, adapter, instance, meta, config, script, user, group
google-sharedlocations.0 2020-04-09 07:40:41.652 warn (32106) This object will not be created in future versions. Please report this to the developer.
google-sharedlocations.0 2020-04-09 07:40:41.648 warn (32106) Object google-sharedlocations.0.fence is invalid: obj.type has an invalid value () but has to be one of state, channel, device, enum, host, adapter, instance, meta, config, script, user, group

Missing translation and missing explanation why account restoration mail is required

I enjoy using your adapter but I would like to know the unit for the polling interval. My guess based on the default value of 600 is seconds but I would like to see it in brackets or something like that.
The german Translation for "google_polling_interval" is missing. I've checked in the code that the translation is set but with a different key ("Polling interval, 0=disabled (s)").

Ontop of that I would like an explanation why the account restoration mail is required for this adapter (as my instance works perfectly fine without it). And last but not least when I click on the questionmark in the instance config screens top right corner I get a "not found" page (URL: https://github.com/t4qjXH8N/ioBroker.google-sharedlocations/master/README.md)

Places Adapter Integration

It would be nice if I could select a places instance that will receive the gathered data for location interpretation. I've read a hint or two that this already was implemented but somehow it doesn't show up for me.

Constant "security notifications" from Google

I'm constantly getting security notifications from Google because the instance performs a login every time the polling interval has passed. I would like to see an enhancement like keeping the logged in session active as long as the instance is running. That way I would only get a notification when the instance is started and not every ten minutes.

Benutzer ID und Objekte

was muss bei GEOFENCES Benutzer ID eingetragen werden ?
welche Objekte sollten unter google-sharelocations.0 zu finden sein ? Ich bekomme nur info connection true/false. Sonst keine Daten...

Proxy Website

Konto eingeben, auf Speichern
One description is empty!

Also bei Geofence Name - Längen - Breitengrad - Radius - Benutzer (Keine auswahl möglich) ZaunID
Userid of Schweiz must not be empty

Also auf Geofences den User komplett löschen und Speichern ist möglich, der Adapter ist diesesmal vorher bereits Gelb

Daten gespeichert und auf Verbindung Testen kommt
Connection failed. Use the proxy method to retrieve the cookie.

Dann klicken wir mal den (Experimental Button) Proxy-Website
Es passiert wie erwartet... NIX keine Webseite, kein Cookie nix was ich eingeben kann

Der Adapter ist gelb und es gibt kein "please login manually" im log...

google-sharedlocations.0 2019-04-15 18:51:49.621 debug [google auth] Connection third stage failed due to an additional verification that could not be identified!
google-sharedlocations.0 2019-04-15 18:51:49.614 debug [google auth] connectEnterVerificationEmail failed, error:Error: options.uri is a required argument
google-sharedlocations.0 2019-04-15 18:51:49.610 debug [google auth] connectEnterVerificationEmail
google-sharedlocations.0 2019-04-15 18:51:49.344 debug [google auth] Connection third stage additional verification needed.
google-sharedlocations.0 2019-04-15 18:51:49.155 debug [google auth] Connection third stage
google-sharedlocations.0 2019-04-15 18:51:49.152 debug [google auth] Connection second stage successful
google-sharedlocations.0 2019-04-15 18:51:48.351 debug [google auth] Connection second State
google-sharedlocations.0 2019-04-15 18:51:48.349 debug [google auth] Connection first stage successfull
google-sharedlocations.0 2019-04-15 18:51:46.817 debug [google auth] Connection First State
google-sharedlocations.0 2019-04-15 18:51:46.810 info Starting google shared locations adapter
google-sharedlocations.0 2019-04-15 18:51:46.800 info starting. Version 1.5.4 in /opt/iobroker/node_modules/iobroker.google-sharedlocations, node: v8.15.0
google-sharedlocations.0 2019-04-15 18:51:46.623 debug statesDB connected
google-sharedlocations.0 2019-04-15 18:51:46.497 debug objectDB connected
host.raspberrypi 2019-04-15 18:51:38.137 info instance system.adapter.google-sharedlocations.0 started with pid 1097
host.raspberrypi 2019-04-15 18:51:36.190 info instance system.adapter.google-sharedlocations.0 terminated with code 0 (OK)
google-sharedlocations.0 2019-04-15 18:51:36.111 debug [google auth] Connection logout.
google-sharedlocations.0 2019-04-15 18:51:35.602 info cleaned everything up...
google-sharedlocations.0 2019-04-15 18:51:35.601 debug [google auth] Connection logout.
host.raspberrypi 2019-04-15 18:51:35.596 info stopInstance system.adapter.google-sharedlocations.0 killing pid 32100
host.raspberrypi 2019-04-15 18:51:35.595 info stopInstance system.adapter.google-sharedlocations.0
host.raspberrypi 2019-04-15 18:51:35.594 info object change system.adapter.google-sharedlocations.0
google-sharedlocations.0 2019-04-15 18:51:31.392 debug sendTo "checkConnection" to system.adapter.admin.0 from system.adapter.google-sharedlocations.0: false
google-sharedlocations.0 2019-04-15 18:51:31.391 debug [google auth] Connection third stage failed due to an additional verification that could not be identified!
google-sharedlocations.0 2019-04-15 18:51:31.390 debug [google auth] connectEnterVerificationEmail failed, error:Error: options.uri is a required argument
google-sharedlocations.0 2019-04-15 18:51:31.388 debug [google auth] connectEnterVerificationEmail
google-sharedlocations.0 2019-04-15 18:51:31.101 debug [google auth] Connection third stage additional verification needed.
google-sharedlocations.0 2019-04-15 18:51:30.920 debug [google auth] Connection third stage
google-sharedlocations.0 2019-04-15 18:51:30.919 debug [google auth] Connection second stage successful
google-sharedlocations.0 2019-04-15 18:51:30.308 debug [google auth] Connection second State
google-sharedlocations.0 2019-04-15 18:51:30.307 debug [google auth] Connection first stage successfull
google-sharedlocations.0 2019-04-15 18:51:29.743 debug [google auth] Connection First State
google-sharedlocations.0 2019-04-15 18:51:23.938 debug system.adapter.admin.0: logging false
google-sharedlocations.0 2019-04-15 18:51:17.396 debug sendTo "getUsersFromDB" to system.adapter.admin.0 from system.adapter.google-sharedlocations.0
google-sharedlocations.0 2019-04-15 18:50:39.237 debug system.adapter.admin.0: logging true
google-sharedlocations.0 2019-04-15 18:49:34.739 debug sendTo "checkConnection" to system.adapter.admin.0 from system.adapter.google-sharedlocations.0: false
google-sharedlocations.0 2019-04-15 18:49:34.738 debug [google auth] Connection third stage failed due to an additional verification that could not be identified!
google-sharedlocations.0 2019-04-15 18:49:34.737 debug [google auth] connectEnterVerificationEmail failed, error:Error: options.uri is a required argument
google-sharedlocations.0 2019-04-15 18:49:34.732 debug [google auth] connectEnterVerificationEmail
google-sharedlocations.0 2019-04-15 18:49:34.400 debug [google auth] Connection third stage additional verification needed.
google-sharedlocations.0 2019-04-15 18:49:34.199 debug [google auth] Connection third stage
google-sharedlocations.0 2019-04-15 18:49:34.197 debug [google auth] Connection second stage successful
google-sharedlocations.0 2019-04-15 18:49:33.213 debug [google auth] Connection second State
google-sharedlocations.0 2019-04-15 18:49:33.210 debug [google auth] Connection first stage successfull
google-sharedlocations.0 2019-04-15 18:49:31.489 debug [google auth] Connection First State
google-sharedlocations.0 2019-04-15 18:48:46.243 debug sendTo "getUsersFromDB" to system.adapter.admin.0 from system.adapter.google-sharedlocations.0
google-sharedlocations.0 2019-04-15 18:48:02.116 debug system.adapter.admin.0: logging false

sobald ich die emial zur wiederherstellung eingebe kommt noch

google-sharedlocations.0 2019-04-15 18:51:49.690 debug stateChange google-sharedlocations.0.info.connection {"val":false,"ack":false,"ts":1555354309676,"q":0,"from":"system.adapter.google-sharedlocations.0","lc":1555267717263}
google-sharedlocations.0 2019-04-15 18:51:49.623 error First connection failed.

hinzu... grüsse Schweiz

Documentation

Is this any documentation on how to use this?

Or set it up?

Thank you!

Error and Authentification

Moin,

2 Probleme habe ich aktuell.

Zum einen bekommt ich bei jeder Abfrage auf dem Handy die Meldung ich soll den Zugriff vom ioBroker freigeben. ( Das ist ja soweit richtig denn ich habe bei Google die 2 Faktoren Authentifizierung aktiviert.) Aber nach einmaliger Aktivierung sollte er das ja speichern tut es aber nicht.

Zum anderen bekomme folgende Fehler:

`

google-sharedlocations.0 2018-04-20 15:47:13.513 info terminating
google-sharedlocations.0 2018-04-20 15:47:13.012 info cleaned everything up...
google-sharedlocations.0 2018-04-20 15:47:13.011 error at emitOne (events.js:96:13)
google-sharedlocations.0 2018-04-20 15:47:13.011 error at Request. (/opt/iobroker/node_modules/iobroker.google-sharedlocations/node_modules/request/request.js:1163:10)
google-sharedlocations.0 2018-04-20 15:47:13.011 error at Request.emit (events.js:191:7)
google-sharedlocations.0 2018-04-20 15:47:13.011 error at emitTwo (events.js:106:13)
google-sharedlocations.0 2018-04-20 15:47:13.011 error at Request.self.callback (/opt/iobroker/node_modules/iobroker.google-sharedlocations/node_modules/request/request.js:186:22)
google-sharedlocations.0 2018-04-20 15:47:13.011 error at Request._callback (/opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:537:9)
google-sharedlocations.0 2018-04-20 15:47:13.011 error at parseLocationData (/opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:633:18)
google-sharedlocations.0 2018-04-20 15:47:13.011 error at /opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:541:26
google-sharedlocations.0 2018-04-20 15:47:13.011 error at /opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:176:7
google-sharedlocations.0 2018-04-20 15:47:13.011 error at checkFences (/opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:444:29)
google-sharedlocations.0 2018-04-20 15:47:13.011 error TypeError: Cannot read property 'length' of undefined
google-sharedlocations.0 2018-04-20 15:47:13.011 error uncaught exception: Cannot read property 'length' of undefined
google-sharedlocations.0 2018-04-20 15:47:13.007 info Checking fences.
google-sharedlocations.0 2018-04-20 15:47:12.326 info Third stage, password challenge ...
google-sharedlocations.0 2018-04-20 15:47:12.099 info Second stage, sending username ...
google-sharedlocations.0 2018-04-20 15:47:11.885 info Send username, connecting to Google ...
google-sharedlocations.0 2018-04-20 15:47:11.884 info Starting google shared locations adapter
google-sharedlocations.0 2018-04-20 15:47:11.876 info starting. Version 0.0.4 in /opt/iobroker/node_modules/iobroker.google-sharedlocations, node: v6.14.1
google-sharedlocations.0 2018-04-20 15:46:41.253 info terminating
google-sharedlocations.0 2018-04-20 15:46:40.751 info cleaned everything up...
google-sharedlocations.0 2018-04-20 15:46:40.751 error at emitOne (events.js:96:13)
google-sharedlocations.0 2018-04-20 15:46:40.751 error at Request. (/opt/iobroker/node_modules/iobroker.google-sharedlocations/node_modules/request/request.js:1163:10)
google-sharedlocations.0 2018-04-20 15:46:40.751 error at Request.emit (events.js:191:7)
google-sharedlocations.0 2018-04-20 15:46:40.751 error at emitTwo (events.js:106:13)
google-sharedlocations.0 2018-04-20 15:46:40.751 error at Request.self.callback (/opt/iobroker/node_modules/iobroker.google-sharedlocations/node_modules/request/request.js:186:22)
google-sharedlocations.0 2018-04-20 15:46:40.751 error at Request._callback (/opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:537:9)
google-sharedlocations.0 2018-04-20 15:46:40.751 error at parseLocationData (/opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:633:18)
google-sharedlocations.0 2018-04-20 15:46:40.751 error at /opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:541:26
google-sharedlocations.0 2018-04-20 15:46:40.751 error at /opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:176:7
google-sharedlocations.0 2018-04-20 15:46:40.751 error at checkFences (/opt/iobroker/node_modules/iobroker.google-sharedlocations/main.js:444:29)
google-sharedlocations.0 2018-04-20 15:46:40.751 error TypeError: Cannot read property 'length' of undefined
google-sharedlocations.0 2018-04-20 15:46:40.751 error uncaught exception: Cannot read property 'length' of undefined
google-sharedlocations.0 2018-04-20 15:46:40.746 info Checking fences.
google-sharedlocations.0 2018-04-20 15:46:40.126 info Third stage, password challenge ...
google-sharedlocations.0 2018-04-20 15:46:39.914 info Second stage, sending username ...
google-sharedlocations.0 2018-04-20 15:46:39.710 info Send username, connecting to Google ...
google-sharedlocations.0 2018-04-20 15:46:39.710 info Starting google shared locations adapter
google-sharedlocations.0 2018-04-20 15:46:39.701 info starting. Version 0.0.4 in /opt/iobroker/node_modules/iobroker.google-sharedlocations, node: v6.14.1
google-sharedlocations.0 2018-04-20 15:46:09.093 info terminating

`

Update npm

Hi,

Iobroker stable project repo on npm is not up-to-date.
Last version is 5 years old.
Can you please align with git?

Regards
maxpd

Connection Failed

Habe korrekte Logindaten eingetragen, Adapter verbindet sich aber nicht.
Laut ioBroker-Forum ist das ein bekanntes Problem, wenn man bisher noch nicht eingeloggt war. Da ich kein issue hierzu gefunden habe, dachte ich mach ich mal eins auf.
Würde mich freuen den Adapter in Zukunft nutzen zu können. :)

Connection works, but authorization failure (cookie not valid?)!

Hi, gestern hat noch alles funktoniert, heute steht der Adapter immer auf gelb. Nach Neustart wird er kurz grün, 1 Minute später geht er auf gelb. Unter Einstellungen klick auf Verbindungstest, der ist erfolgreich Es ist keine 2faktor Authentifizierung eingestellt und wie gesagt bis gestern lief es noch. Hast du eine Idee oder Tipp?

google-sharedlocations.0 2018-08-26 12:23:54.291 debug system.adapter.admin.0: logging true
google-sharedlocations.0 2018-08-26 12:23:52.770 error An error occurred during getSharedLocation!
google-sharedlocations.0 2018-08-26 12:23:52.769 error Connection works, but authorization failure (cookie not valid?)!
google-sharedlocations.0 2018-08-26 12:23:52.768 debug Removed cookies.
google-sharedlocations.0 2018-08-26 12:23:52.767 debug Response: Service Unavailable
google-sharedlocations.0 2018-08-26 12:23:52.394 debug ack is not set!
google-sharedlocations.0 2018-08-26 12:23:52.393 debug stateChange google-sharedlocations.0.info.connection {"val":true,"ack":false,"ts":1535279032386,"q":0,"from":"system.adapter.google-sharedlocations.0","lc":1535279032386}
google-sharedlocations.0 2018-08-26 12:23:51.294 info Starting google shared locations adapter
google-sharedlocations.0 2018-08-26 12:23:51.283 info starting. Version 1.1.1 in /opt/iobroker/node_modules/iobroker.google-sharedlocations, node: v6.14.4
google-sharedlocations.0 2018-08-26 12:23:51.164 debug statesDB connected
google-sharedlocations.0 2018-08-26 12:23:51.096 debug objectDB connected
google-sharedlocations.0 2018-08-26 12:23:47.499 info terminating
google-sharedlocations.0 2018-08-26 12:23:46.990 info cleaned everything up...

Out of fences

Hi,

Since 2 weeks my phone's are recognized out of the defined fences. Sometimes my accuracy is 1300 what's curious because it wasn't a problem until now. But sometimes the accuracy is 13 meters. The fence has 100 meter and I still move out of it.
If I check my position within Google maps he knows correctly where I am located, also with an accuracy of 1700m.
I also downloaded newest agps data via the app gps test.

screenshot_20190219-105453_telegram

Compatibility check to js-controller 4.0

Dear Adapter developer,

with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.

If something is not correct this is logged as 'warning' or 'info' log.

Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!

Please spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.

For questions please refer to ioBroker/ioBroker.js-controller#1749

Please close the issue after you checked it.

Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!

Cookie suddenly not working

Since a few days no cookie is accepted by the adapter.
The log sais: Could not parse location data. Probably authentication error. Please check cookie.
Refreshing the cookie doesen't work. Also tried it with another google account... get the same error.
Is there a solution?

Compatibility check and testing for Node.js 14 and 16

Dear Adapter develop,

Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.

Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16

Please add both versions to the adapter testing which is executed on commits.

If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!

On questions please talk to us at ioBroker/ioBroker.js-controller#1138

Please close the issue after you checked it.

Thank you very much for your support!

Adapter bleibt gelb

Ich habe schon verschiedene Sachen ausprobiert, aber der Adapter verbindet sich nicht...?
Was kommt bei Benutzername rein ? (habe meine E-Mail vom Google Account genommen, einen Benutzernamen habe/kenne ich nicht)
Was kommt bei Überprüfungs E-Mail rein ? (auch die Google E-Mail, oder die alternativen E-Mail Adressen zur Account Wiederherstellung ?)

[Request] Abrufintervall (e) also when "on change"

In some cases it is not necessary to request every x Minutes the location. I like the idea that only at the event "on change" a request is send to google. So we can save much more energy in the Smartphone.

Goefencing does not work

Maybe I'm too stupid to set it correctly. But I can't get the geofencing to work. But this feature was tested by you, right?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.