One of the functionalities I wanted to add is to be able to calculate the gasoline consumption for each trip.
Until now, I have not found a measurement coming from OBD2 directly connected to this consumption.
What I have found, and I'm able to read, is MAF, that is the quantity of air consumed, per second.
The gasoline is proportional and therefore MAF is an indirect measure of gasoline consumed.
I have also added to my prototype several other data.
This is the JSON message at this point:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... | |
{"COOLANT_TEMP":90,"ALT":119,"SPEED":0,"DISTANCE":1769,"LON":12.420314740238886,"MAF":0.05,"LAT":41.939230269291734,"WARMUPS":127,"CARID":"googx1","RPM":0,"DTIME":"27-01-2018 09:17:55","AMBIANT_AIR_TEMP":8,"THROTTLE_POS":89.41,"INTAKE_TEMP":17,"ENGINE_LOAD":0,"RUN_TIME":1405} | |
.... |