04.11.2016, 22:44
(04.11.2016, 17:27)Domoticatorino Wrote: Hi Buuuuudzik,
the first code is saved as user script? What about the second script?
How is it managed?
Thanks.
Do you use it for geofencis? Because it seems Traccar does not support geofencis.
Thank you for your help.
Regards.
Traccar has 2 applications:
- server (you can use demo server or you can install server on your pc) or you can use LM as a server for clients,
- clients (iOS, Android etc.) (you can set interval for sending data to server)
This is the example respond from the server:
* string: [{"id":123141121,"attributes":{"battery":"0","ip":"37.47.0.6","distance":0.0,"totalDistance":4.865613311E7},"deviceId":34294,"type":null,"protocol":"osmand","serverTime":null,"deviceTime":"2016-10-30T08:05:35.000+0000","fixTime":"2016-10-30T08:05:35.000+0000","outdated":false,"valid":true,"latitude":50.98288,"longitude":23.170059,"altitude":185.619,"speed":0.0,"course":0.0,"address":null}]
You have this data from server and for example you can use it for detecting how far some person is from home etc. For Geofencing you must use additionally some other server which converts latitude and longtitude into e.g. city.