Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP API #6

Open
nwmcsween opened this issue Oct 17, 2018 · 3 comments
Open

HTTP API #6

nwmcsween opened this issue Oct 17, 2018 · 3 comments

Comments

@nwmcsween
Copy link

nwmcsween commented Oct 17, 2018

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.

@fr3ts0n
Copy link
Owner

fr3ts0n commented Oct 18, 2018

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)

@nwmcsween
Copy link
Author

nwmcsween commented Oct 18, 2018

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?

@fr3ts0n
Copy link
Owner

fr3ts0n commented Oct 21, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants