vitalidze / traccar-web

Traccar Web UI mod
http://traccar.litvak.su/
152 stars 145 forks source link

automate import archive from GPX #1214

Open noxqs opened 5 years ago

noxqs commented 5 years ago

Great work,

Currently I think I can only import GPX by clicking on the IMPORT button. I would like to automate this at the end of every day. How would you do that ? Is it already possible ? I can't find it in the rest and api doc.

noxqs commented 5 years ago

I think I understand a bit more; there is a POST to https://d.traccar.litvak.su/traccar/import/gpx?deviceId=[int] I presume the gpx data is attached in the POST.

vitalidze commented 5 years ago

Yes, that's correct. You will need to be authorised in a similar way as you do to access the REST API.

Please note that the demo server should not be used for the production data. It is a subject to be wiped from time to time.