t4qjXH8N / ioBroker.google-sharedlocations

An ioBroker-adapter for retrieving shared locations from Google
MIT License
60 stars 10 forks source link

Out of fences #22

Open maxpd1 opened 5 years ago

maxpd1 commented 5 years ago

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

maxpd1 commented 5 years ago

Any ideas?

Additionally here is the log:

2019-02-28 13:05:06.904  - info: google-sharedlocations.0 Polling locations.

2019-02-28 13:05:07.696  - debug: google-sharedlocations.0 Response: OK 2019-02-28 13:05:07.697  - info: google-sharedlocations.0 Checking fences. 2019-02-28 13:05:07.721  - debug: google-sharedlocations.0 stateChange google-sharedlocations.0.fence.100721693667229734410 {"val":false,"ack":false,"ts":1551355507705,"q":0,"from":"system.adapter.google-sharedlocations.0","lc":1551354307556} 2019-02-28 13:05:07.727  - debug: google-sharedlocations.0 stateChange google-sharedlocations.0.fence.105156010207158396094 {"val":false,"ack":false,"ts":1551355507718,"q":0,"from":"system.adapter.google-sharedlocations.0","lc":1551355507718} 2019-02-28 13:05:07.738  - debug: google-sharedlocations.0 stateChange google-sharedlocations.0.fence.100721693667229734411 {"val":false,"ack":false,"ts":1551355507726,"q":0,"from":"system.adapter.google-sharedlocations.0","lc":1551354307572} 2019-02-28 13:05:07.741  - debug: google-sharedlocations.0 stateChange google-sharedlocations.0.fence.105156010207158396095 {"val":true,"ack":false,"ts":1551355507729,"q":0,"from":"system.adapter.google-sharedlocations.0","lc":1551286812797} 2019-02-28 13:05:07.742  - debug: google-sharedlocations.0 ack is not set! 2019-02-28 13:05:07.742  - debug: google-sharedlocations.0 stateChange google-sharedlocations.0.info.connection {"val":true,"ack":false,"ts":1551355507731,"q":0,"from":"system.adapter.google-sharedlocations.0","lc":1551213610444} 2019-02-28 13:05:07.743  - debug: google-sharedlocations.0 ack is not set!

t4qjXH8N commented 5 years ago

Thank you very much for the logs.

Sorry, I guess I have no possibility to track this error. I think the adapter is working fine, it is Google that returns the incorrect position. Maybe this becomes not apparent when using Maps since the adapter and Maps retrieved the location at different times.

I am going to extend logging in debug mode in the upcoming week, maybe you could send the new log again?

maxpd1 commented 5 years ago

Yes, will do. Perhaps it makes sense to ignore position tracking if accuracy is beyond the 100m?

I added 2 fences with a bigger radius. I copied the fence ID of my first fences and just raised them with 1. Is this OK? Don't know how the ID is normally generated.