Using PhoneTrack on Android #1218
ashleyross
started this conversation in
Show and tell
Replies: 1 comment
-
|
I'll add this doc on the website, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Like #118, I've been trying out alternative logging apps.
PhoneTrack supports logging to any backend using Custom Log Jobs, which we can use with Dawarich's OwnTracks API endpoint.
Simply create a new Custom Log Job in PhoneTrack with the following details:
https://<your-dawarich-instance>/api/v1/owntracks/points?api_key=<your-api-key>&_type=location&acc=%ACC&alt=%ALT&batt=%BATT&bs=0&cog=%DIR&lat=%LAT&lon=%LON&tst=%TIMESTAMP&vel=%SPDNote that we have to disable Send JSON payload because it also moves
api_keyinto the JSON entity, which Dawarich does not accept. Fortunately, Dawarich happens to support accepting the data as querystring parameters.The data sent includes vel (velocity) in meters per second, defined in the OwnTracks JSON format in kilometers per hour. This works so long as we don't include a topic thanks to Dawarich's special handling documented in https://github.com/Freika/dawarich/releases/tag/0.24.0
It also includes cog (Course over ground) as a float, defined in the OwnTracks JSON format as an integer, although this is not currently used by Dawarich.
PhoneTrack offers two more datapoints that don't seem to have a direct mapping to the OwnTracks JSON format:
%SAT: the number of satellites used to get the position (integer)%UA: user agent, something likePhoneTrack/v0.0.1Personally, I include
%SATas part of an OwnTracks tag like&tag=satellites/%SAT, although this is not currently used by Dawarich.Beta Was this translation helpful? Give feedback.
All reactions