ios icon indicating copy to clipboard operation
ios copied to clipboard

OwnTracks publishing invalid coordinates

Open edgauthier opened this issue 4 years ago • 13 comments

Occasionally, OwnTracks will publish a message with invalid coordinates (e.g. the longitude set to "0.000000"). Is there a way to prevent the app from sending these messages?

edgauthier avatar Mar 05 '21 12:03 edgauthier

Please tell us which iPhone/iPad model you are using, iOS release and OwnTracks version.

Also, when you say occasionally, how frequently would that be? I don't think we've seen this in years.

jpmens avatar Mar 05 '21 12:03 jpmens

  • iPhone 12 Pro
  • iOS 14.4
  • OwnTracks 14.0.3/en_US

I've seen it happen at least twice in the past two months (only started using OwnTracks at the beginning of the year). I started logging the messages while I was integrating this into my Home Assistant setup. When these have occurred, HA marks me as away from home (and when I look at the map, I'm not shown anywhere). As soon as I open the OwnTracks app, it publishes a new message with the details. In both cases, I was sitting at home when it happened.

Messages logged when this happens with some data redacted:

2/4/2021, 2:51:17 PM - {"batt":90,"lon":0.000000,"acc":4,"p":99.277,"bs":1,"created_at":1612468277,"vel":1,"SSID":           "XXXXXXXXXX","BSSID":"XXXXXXXXXXXX","inrids":["62667d","1b7297"],"vac":3,"lat":XX.XXXXXX,"inregions":                 ["Neighborhood","Home"],"t":"b","conn":"w","tst":1612468220,"alt":0,"_type":"location","tid":"EG"}
3/5/2021, 7:09:42 AM - {"cog":235,"batt":69,"lon":0.000000,"acc":4,"p":99.822,"bs":1,"vel":0,"SSID":"XXXXXXXXXX",          "BSSID":"XXXXXXXXXXXX","inrids":["62667d","1b7297"],"vac":4,"lat":XX.XXXXXX,"inregions":["Neighborhood","Home"],"t":    "b","conn":"w","tst":1614946183,"alt":163,"_type":"location","tid":"EG"}

I have 2 waypoints configured in the app - one circular region, and in the center of that an iBeacon-based region.

{
  "_type" : "waypoints",
  "waypoints" : [
    {
      "rad" : 0,
      "tst" : 1611518352,
      "_type" : "waypoint",
      "rid" : "1b7297",
      "lon" : -XX.XXX730000000005,
      "lat" : XX.XXX230000000003,
      "desc" : "Home:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
    },
    {
      "rad" : 400,
      "tst" : 1611465647,
      "_type" : "waypoint",
      "rid" : "62667d",
      "lon" : -XX.XXX730000000005,
      "lat" : XX.XXX230000000003,
      "desc" : "Neighborhood"
    }
  ]
}

edgauthier avatar Mar 05 '21 14:03 edgauthier

Thanks @edgauthier for the details. We do suppress invalid lat/lon when they are 0.0/0.0 already, but we have never seen a case yours before.

"t":"b" in both cases indicate your phone detected entering or leaving an iBeacon region. "conn":"w" in both cases indicate you were connected to Wifi. We can assume iOS took the location information from your Wifi signature, not from GPS. It may be a problem with the Wifi location database used by iOS...

Interestingly altitude is once reported as "alt":0,"vac":3and in the other case as "alt":163,"vac":4. What is the altitude reported in a good situation?

ckrey avatar Mar 07 '21 21:03 ckrey

Normal altitude when I'm home is between 158 and 162 depending on which floor I'm on.

edgauthier avatar Mar 08 '21 18:03 edgauthier

mmh, locations with zero lat OR lon are suppressed since 6 years:

Screenshot 2021-03-09 at 09 13 24

ckrey avatar Mar 09 '21 08:03 ckrey

Is there anything I can/should try and change from my perspective?

edgauthier avatar Mar 10 '21 21:03 edgauthier

Does the problem occur once a month as shown in your example above, or does it happen frequently?

ckrey avatar Mar 11 '21 17:03 ckrey

So far, once a month (only 2 occurrences being the ones mentioned above). Logging is still enabled, so I'll be looking for it come April (assuming it's tied to some pattern).

edgauthier avatar Mar 11 '21 18:03 edgauthier

@edgauthier I'm closing this issue for now.

ckrey avatar Dec 20 '21 09:12 ckrey

We've just seen this happen. Reopening.

jpmens avatar Aug 12 '22 10:08 jpmens

22A2B8B7-7A07-43F1-A82E-4A48D58F0B20

ckrey avatar Aug 12 '22 14:08 ckrey