econpy / 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.
MIT License
285 stars 120 forks source link

Auto-Select last session, don't auto-select default variables to plot, support more vars to plot #29

Open surfrock66 opened 9 years ago

surfrock66 commented 9 years ago

I found that loading no session by default was slightly confusing; this code will query for the most recent uploaded session and automatically populate with it.

To speed up load time, do not choose default variables to plot, instead show a placeholder until 2 variables are chosen. Do not validate against populated variables when choosing the list of vars to allow for plotting.

Sort the list of variables to plot alphabetically (since I have enabled the ability in my DB to plot more variables).

You can now show unlimited variables in the data summary. I am working on getting the graph to show more vars as well.

This is also my first github pull request, so please tell me if I've done something crazy. Thanks!