In Node-RED how do I force a phone location update?
I'm trying to understand the tracking algorithm. This is how I think it operates based on observations:
- The companion app seems to be aware of zones and uses zone awareness to manage reporting to prevent battery waste
- If a tracker is in a zone it very rarely reports location but I don't know why it reports when it does report
- If the tracker is outside a zone and not near the zone and moving it seems to report about every 5 minutes.
- It reports location when a tracker enters or leaves a zone
- If tracker is outside a zone but near a zone, it reports more frequently as often 1 or 2 seconds
- It seems that if tracker is outside a zone and not moving it reports irregularly
Entering and leaving zones works fine, but if tracker were to stop someplace for 10-15 minutes, Id like to reverse geocode the address and report that. What I'm doing is using old_zone and new_zone location, and times and calculating the distance and time between loctio reports. If the distance less than 0.2 miles and time is greater than 10 minutes I consider that stopped and reverse geocode the location. That doesn't work consistently because the tracker may not report at least twice when it stops moving. What I'd like to do is force an update if the last known location was not in a zone and its been greater than 10 minutes with no location report to force a location update, and then use the new location update to determine if the tracker has been stopped outside a zone so I can report a reverse geocode of the location.
I have everything working in Node-RED except forcing a location update
action: notify.mobile_app_bobs_phone
metadata: {}
data:
message: request_location_update
The above didn't result in a location update
Is there some place where companion app location report logic is available?