I’ve been working on setting up a database to record temperature data from my apartment. Right now i have a DS18B20 connected to my spark core and i use spark.variable() to get the temp data to the cloud.
From there I use a python script to pull the data off of the spark cloud and store it with MongoDB. Both the database and the python script are running on a BeagleBone Black running Ubuntu. So far its worked out pretty well especially since the spark core can now recover from the CFOD.
I’m also working on a script to generate graphs after pulling the data from the DB. My ultimate goal is to be able to serve those graphs to a webpage that i can view from my browser on or my phone.
you can find the source files here on github.
here is a sample graph with a simple moving average applied to smooth out the data.
I know I could pretty much get an identical service from a source like Xively but I’m having fun and learning a lot by programming it myself. Feel free to offer suggestions or submit pull requests on github if you actually use it. I’m neither a programmer or a web developer so help is always appreciated!