If the device explicitly closes the connection, the marker will also turn red. After 1 minute with no contact, the connection is closed and its marker turns red. I like devices to promptly show as offline: If no message is received from a particular device for 30 seconds, that devices marker turns orange. All trackers I'm using are configured to send at 10 second intervals. I set short status timeout and port timeouts. You can whittle these down later, once you have established those that you do need. If you are not sure which protocol your device uses or which port it attempts to connect to, leave all the ports enabled in default.xml. In my case, h02 (for the dog trackers) and osmand (for the android traccar client app). Then, in traccar.xml, activate only those protocols I expect to use. Since I'm using just two device protocols, I comment out all the protocol declarations in default.xml (nodes containing key=*.port). I enable several filters to cut down on what I consider spurious or unhelpful locations making their way to the database. I disable the geocoder as I am not interested in address lookups. I added this to suppress warnings in MySQL server logs on Ubuntu 16.04. Note the useSSL=false parameter in database.url below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |