4/27/2023 0 Comments Traccar positions api examples![]() => In the new script setup, the following will happen: => Copy the “Traccar” folder from the download to the \Homeseer 3\html\images\ folder Table name to access “DailyDistance” database The table will be updated once a day, with the driven daily distance.ĭatabase user for access “DailyDistance” databaseĭatabase password for access “DailyDistance” databaseĭatabase name to access “DailyDistance” database True=Create database, Update device values Write to MySQL. => Changes that has to be done for “Traccar_DailyDistance.vb” Debug Geofence distance when “Presence Work” device would be triggered Geofence distance when “Presence Home” device would be triggered Longitude coordinates of your work location Latitude coordinates of your work location Longitude coordinates of your home location Latitude coordinates of your home location IP address or hostname where MySQL server is runningĭatabase user for access “traccar”databaseĭatabase password for access “traccar”databaseĭatabase name to access “traccar” database True = Odometer distances in Kilometers ‘ ********** END USER CHANGE ********** => Changes that has to be done for “Traccar.vb” Debug In every script files a “user change” section is present, which has to be changed Even if you want to have some nice icons, it should be addedd manually to the virtual devices as well. In the past, all the virtual devices should be created manually, which was not a nice thing to do. ****** IMPORTANT UPDATE 13-05-2018 ****** vb.NET scriptingĬompared with the previous explanation, the vb.net script is now changed the a full automated process. Odometer (total distance done with that gps tracker).Event (based on Meitrack, for example if car is moving, or ignition status is changed).In the last column “attributes” additional gps device is visible (could be different per gps device), examples are: Here in every row, the GPS data will be stored, for every interval: Traccar config fileīecause in the traccar.xml config file, the option for Geocode is enabled, the address is visible too, based on latitude and longitude of the current location. In the end, Traccar will create all the MySQL tables like this:įor me the table “postitions” contains the most important data. The Traccar software is running on my home automation server with several other web interfaces, so for this I’ve changed to port number to a free one.įor basic setup, installation and configuration see Traccar website. It’s not neccessary to keep those ports open on the server, while they are not used. In the section “Protocol Config”, I’ve disabled all ports for other GPS trackers (changed to comments with tags). Jdbc:mysql://localhost:3306/traccar?allowMultiQueries=true
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |