mattstarr / autosmoker

Code for Rasp Pi automated meat smoker and related components
1 stars 1 forks source link

explore csv plotting options #9

Open mattstarr opened 10 years ago

mattstarr commented 10 years ago

Here are some links with related info and questions: (assuming js reading csv) http://stackoverflow.com/questions/3567369/reading-server-side-file-with-javascript http://jquery-csv.googlecode.com/git/examples/flot.html http://learn.jquery.com/using-jquery-core/ First of all - is this our best option (flot seems pretty sleek, though), and second, would we be better with a java applet or webStart? (https://www.java.com/en/download/faq/java_webstart.xml)

mattstarr commented 10 years ago

it just occurred to me that we may be able to feed the csv file directly to the webpage (or js) through our script to use web.py. Regardless of the method, (although flot should ease this) updating the page to reflect/plot the most recent values will likely be the trickiest part.

mattstarr commented 10 years ago

flask and web.py seem very similar, and each appear to have their advantages. They are both absolutely worth exploring. flask seems SLIGHTLY less convoluted (at first glance, anyways).
flot and flask related SO post: http://stackoverflow.com/questions/23170954/flot-angularjs-and-getting-data-to-plot-via-http-get flask with pi tutorial: http://mattrichardson.com/Raspberry-Pi-Flask/ web.py with pi demo: http://www.themagpi.com/issue/issue-9/article/the-python-pit-drive-your-raspberry-pi-with-a-mobile-phone/

mattstarr commented 10 years ago

Matplotlib (using JSON, instead, which is compatible with flot, too), may be the way to go, if only for now. (RE: https://github.com/mattstarr/autosmoker/issues/6)

mattstarr commented 10 years ago

From Sean: http://raspberrywebserver.com/cgiscripting/rpi-temperature-logger/ That seems pretty cool, too.