owntracks / talk

Questions, talk about OwnTracks
30 stars 4 forks source link

Sending waypoints to clients #139

Closed Tobstr02 closed 1 year ago

Tobstr02 commented 2 years ago

Hello, i'm currently working on my own owntracks http server and tried to send an waypoint from it to and end device as an answer of an location push. The data gets received and counted in "received x updates" in the status page, but the new waypoint don't appear in the Waypoints ("Orte" in german) tab in the app. Locations and configurations are working currently working perfectly.

Is it possible to add this to the app or is there another way for sending waypoints to an client?

Thanks in advance.

PS: Current json of an waypoint that i'm sending:

{
        "_type": "waypoint",
        "desc": "Description",
        "lat": 49.241172,
        "lon": 5.806134,
        "rad": 25,
        "tst": 1650385174,
        "topic": "owntracks/user/fo/waypoints"
    }
jpmens commented 2 years ago

What you are showing there is the JSON of a waypoint as the device reports it to the server. What you wish to do is to create/define a new waypoint on the device which can be done remotely with a slightly different JSON payload that can carry several waypoints/regions at once.

Note that Remote Commands must be enabled on the device settings.

jpmens commented 2 years ago

Did this work for you, @Tobstr02 ?

jpmens commented 1 year ago

Closing as answered and as stale.