-
Notifications
You must be signed in to change notification settings - Fork 418
Description
Howdy. I spend a lot of time in my vehicle. Trying to think of creative things I can do with this library. I've already got it working with my bluetooth OBD reader and raspberry pi.
One thing I was thinking. I'd love a "smart way" to track mileage for work related things.
Success looks like: being able to get a text message after I drive, enter the purpose of the work trip, automatically get an excel file of start mileage, ending mileage, miles driven, and purpose of trip.
Now, for how I'd do that with this library: I think I can pull odometer (still working on this, I have a 2020 vehicle, I should be able to create a custom command on this). I think I can poll for this, then I can poll for if vehicle is on. I can have some logic that says: "if vehicle is no longer on, then use the last recorded drive mileage, and ask me: "Was X mileage driven work related?" If I say "yes", then it asks me for the purpose and logs it.
I can figure out all the texting / excel / logging, etc, will likely even refine my workflow a bit so I can go in after the fact into a web UI or something. I want to make this as easy as humanly possible for me to track.
I think I'd need to poll every minute, log odometer readings, log time.
I'm still figuring out how to pull odometer reading and ideally I can pull lat/long of vehicle.
Any other suggestions here? I think I've played with as many commands as I can, short any special commands for my vehicle. https://www.amazon.com/gp/product/B07JFRFJG6/ app seems to pull lat/long, so I think it's in there somewhere.
Any other thoughts to add to this? Thought I'd ask since someone here may be more savvy, thank you!