surfrock66 / torque

A set of tools used with the Torque app for Android to store OBD2 data in MySQL, view GPS data from Torque on a map in real time using the Google Maps JavaScript API, plot OBD2 data in time series charts, and export the data to CSV or JSON.
Other
43 stars 23 forks source link

Pre-select favorite variables #11

Closed marvinwankersteen closed 5 years ago

marvinwankersteen commented 7 years ago

Its not really an issue, but its a bit disturbing that the selected variables are not saved if I choose a other session. Is it possible to pre-select my favorite variables? I have tried to hardcode it in the code, but its hard for me to unterstand =)

surfrock66 commented 7 years ago

Hmm, it'd be tricky. Not impossible, but I don't know where you'd inject the routine:

First, when the list of variables is populated, it reads from the torque.keys table. You could add a binary variable that indicates whether it's pre-selected or not. The trick is, on submit, you'd need to then update the keys table with any changes...that's a bunch of extra I/O, not impossible, but not streamlined. I'd have to look into it.

surfrock66 commented 5 years ago

Ok 2 years later...this is now done, I'll be pushing a major code revision and it'll have this in it. It doesn't auto-plot, but you can select favorite variables then plotting is 1 button away.