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.In config.h, update things to match your preferences. Download the repository and open the firmware_v5/telelogger folder in VS 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. Traccar can be configured to forward json formatted data with.Īs far as i know PhoneTrack does not understand this.Background: I've been using Automatic to track our vehicles and conveniently display the remaining fuel level in HA. Traccar can forward events as well … trueĬurrently I don’t know how to configure it together with PhoneTrack, please post it here, if you know how it works. GPS Data of each Traccar device should now be forwarded the PhoneTrack.Įach device appears with the device name configured in Traccar server. Each “&” in the link needs to be encoded as “&” otherwise the server will crash.įor possible replacements in the link you need to checkout the source code here:Ĭheckout again the Traccar log, if data is received from your GPS device.Replace the link until your session id.Open “traccar.xml” and add following values: false (This can be used for the android Traccar Client app) with the name “MyTraccar”.ĭo not use the Traccar link. The device status should go to online when data is received next time.Ĭreate a new session, e.g. You need to configure a new device in Traccar and fill in the device id, which is printed in the log file.ĭo NOT use spaces in the device name or special chars! In my case I have to send an SMS command to configure the device the ip address and port of my router.Ĭheckout out the log file of Traccar Server if data is received. Setup an dyndns service for your router, if needed. v host/path/traccar/conf/traccar.xml:/opt/traccar/conf/traccar.xmlĭefault traccar.xml can be downloaded from here:Ĭonfigure your router to forward needed ports, in my case I use only TCP 5013 for the GPS device. v host/path/traccar/data:/opt/traccar/data v host/path/traccar/logs:/opt/traccar/logs p 5055:5055 (Traccar client app on Android) Traccar Server uses a lot of ports for the different device protocols, checkout the device list, which ports you need. I installed the docker image of Traccar Server on my Synology NAS. In this example I used Sinotrack ST-901 GPS-Tracker, with is sending binary data in so called “h02” protocol. Therefore I want to forward device information from Traccar Server to PhoneTrack. PhoneTrack can by its nature only support devices sending http requests. The Traccar Server supports a lot of GPS devices, especially a lot of devices sending binary data instead of http requests. GPS Device (bin data) -> Traccar Server -> Nextcloud PhoneTrack Forward GPS devices from Traccar Server to PhoneTrack application in Nextcloud
0 Comments
Leave a Reply. |