Open nwmcsween opened 6 years ago
Sounds like a good start. Have you checked existing scripts for mqtt->db transfer. my search for "mqtt2db" did come up with several, rather un-complicated script solutions. (i.e.: https://github.com/sndrsmnk/owntracks-gmaps-plot/tree/master/tools)
I saw some but IMO its just another point of failure, http has overhead but for an android device its sort of moot. I'll hack on this sometime, PIDs will just be raw values I guess? Or does androbd provide a way of mapping vendor pods before sending?
All PID's known by AndrOBD will be reported in physical measurement values as displayed on AndrOBD data screen: i.e.: accelerator_pedal_position 53.333332
Any unknown PID would be reported as raw, decimal integer value: i.e.: PID_7A 67372036
The mapping of PIDs to mnemonic names and conversions is defined in AndrOBD library project: https://github.com/fr3ts0n/AndrOBD/blob/master/library/src/main/java/com/fr3ts0n/ecu/prot/obd/res/pids.csv
I might work on this and model it after the MQTT plugin. What I want to do is use HTTP to POST a json payload instead of MQTT as it is painful to do MQTT -> DB.