This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

HTTP GET with authorisation
#5
(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.
Reply


Messages In This Thread
HTTP GET with authorisation - by buuuudzik - 29.10.2016, 22:11
RE: HTTP GET with authorisation - by admin - 31.10.2016, 07:44
RE: HTTP GET with authorisation - by buuuudzik - 04.11.2016, 22:44
RE: HTTP GET with authorisation - by edgars - 15.11.2016, 13:44

Forum Jump: