
I also set up Traccar to use my MySQL database server for its data in the traccar.xml file that was specified above: Note the change in ports from Traccar's default container directions (we need to make sure we have port 5170 there, since that's what Traccar uses for Freematics). I installed Traccar in a docker container on a NUC: The console here also gives you the tracker ID, which I don't think can be changed, and is needed to create a device in the Traccar software. You can test things using the Freematics Arduino Builder. On line 13, remove #feature/stage from the end of the line. (edit) Finally, the platformio.ini refers to something on Github that no longer exists. You can add other OBDs if you want, they're all defined in the OBD.h file. I also updated telelogger.ino to get the device to send over fuel level data by adding, on line 53. #define DATASET_INTERVAL 15000 (the default is 3000 ms, and I don't want to use up the cellular data with updates that often).#define SERVER_PORT 5170 (this is the default Traccar port for the Freematics protocol, which I setup to port forward from my WAN to Freematics.

Traccar demo update#
In config.h, update things to match your preferences.
Traccar demo download#
Download the repository and open the firmware_v5/telelogger folder in VS Code.
Traccar demo code#
I used Visual Studio Code with PlatformIO as described in the developer's guide. I'm planning on this being a pretty low data usage endeavor, and you can set use limits to make sure you don't accidentally go crazy. Cost is $0.60/month per SIM + $0.40/month per MB, with the first device and megabyte free. Yeah, it's got a small monthly fee, but I think it should be minimal (you can set the update interval in the configuration). Shipping was surprisingly cheap at $13.Ĭellular service: hologram.io maker edition.

Total cost: $119.90 USD (+10 if you get a Hologram SIM from them). Freematics has cheaper modules, but this was nice because it included everything (cellular and GPS) in one compact module, like Automatic did. Freematics shipped quickly from Australia, although DHL was less than ideal in getting it here fast. Hardware: I used a Freematics ONE+ Model B with 4 MB flash memory and the SIM7600A-H cellular module (I'm in North America). I wanted something to keep doing that, so I found an Arduino ESP32 solution. Background: I've been using Automatic to track our vehicles and conveniently display the remaining fuel level in HA.
