Someone has asked on the FB group about using Node red with OVMS. You can do it very easily with OVMS V3 which works with MQTT but this doesn’t (yet) play nice with the mobile app, so I thought I would share my flow which uses the useful HTTP queries available on the Dexters Web server.
Note: Please play nice with the queries on the server. The data does not get uploaded faster than every 60s from the OVMS module by default so there is no point going any faster.
Trigger: Every 60s (or by manual override button)
Http Request: Pulls the “csv” from Dexters Web, this is a text stream with all the latest stats from the last OVMS upload
Split 1: Breaks up the multiple files contained in the text streams
Switch: Routes each file into the next area
Split 2 + switch 2: Strips out the headers from the files
csv (multiple): correctly assigns the headers to the data in the CSV format so you can access it in a message payload
debug (multiple): to show OVMS payloads and how they are loaded into msg.payload
device item: posts location data to a home assistant device for location tracking
function + mqtt: checks if this is new data (new timestamp) and then posts to MQTT
I also attach my JSON export with the personal data removed (please let me know if i have left anything i shouldnt have)OVMSv2_NodeRed_example.json (31.9 KB)