Tracking the CARDIS: Part 2

This is Part 2 of the story about trying to get (near) real-time location tracking of the CARDIS up and working; see the start of the story here!

To recap where we got to with Part 1: the Teltonika router can generate an HTTP POST with a JSON payload, the idea being to send that to this website (which is running WordPress) to be read/process by a specific WP plugin.

The plugin I’d initially found to use is called Trackserver, developed by Martijn Grendelman. It was/is the only one I could find that had anything like the appropriate functionality.

However, sadly, while Trackserver has built-in input filters for a huge variety of message formats, JSON isn’t one of them. Neither could I either find info about or deduce from looking at the plugin’s code any other format that I could produce from the Teltonika.

There WAS the option to code my own specific input format filter; however I fairly quickly realised that my coding skills had not aged well—PHP has progressed fairly significantly over the last 10-15 years and I definitely haven’t kept up 🙁

So, where does that leave us?

First, any further development/configuration of the Teltonika has been put on hold for the time being, along with any use of Trackserver. I *may* resume this at some point in the future, but I’m not holding my breath!

Second, I’ve taken “Option 2″—leveraging the commercial Ruhavik system into an iframe within a post. I do feel as if this is a bit of a cop-out, but it’s the best I can do right now.