gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
498 stars 52 forks source link

Does icloud3 intentionally request multiple GPS data in a short time period #321

Open jata1 opened 3 months ago

jata1 commented 3 months ago

Hi Gary - I'm still working away at getting reasonably good speed data between the HA app and iCloud3 integration.

I have noticed that icloud3 seems to go through a little fit from time to time - my hunch is when approaching 'home' - see chart below. I have seen this previously but thought it was a one off. Lots of GPS data/requests is a bit of an issue as GPS coordinates and fixtime data can be good but I guess it is screwing up my speed calcs because of GPS accuracy.

Are you aware that icloud is doing this multiple request in a short period of time thing? If so, can I control it somehow?

See data below to give you an idea

image

gcobb321 commented 3 months ago

When iCloud3 approaches a tracked zone (Home), the request interval is set to 15-secs when the distance is less than 1-km. This helps insure triggering a Home zone enter, especially if the device does not have the mobile app or is in a poor cell area.

jata1 commented 3 months ago

I see so I guessed that was it. Can I ask for a feature for the user to be able to set this frequency please?

gcobb321 commented 3 months ago

You can ask but it probably won’t happen. There are several other choices you might think about.

jata1 commented 3 months ago

Thanks. Phil and I are discussing.

I am going to look into creating a statistics sensor that will take all of the speed data and output the average or median.

Overall my speed limit tracking project is going well. This is the last (hopefully) issue to resolve.