I have just recieved a bunch of my sensors and about to build my project.
But now cosm has gone, in the short term can we easily mod the code to save the data to a CSV file somewhere - that way perhaps some of us can read the data (into rrdtool for example) and host the data on our own website?
I am asking, is it easy enough to mod the code to stop connecting to cosm and write out a file instead of comma seperated values?
Post by mistlethrush on May 23, 2013 9:45:38 GMT -5
I hacked together some code to send the telemetry to thingspeak earlier this week - I've sent it to Tom in case he can use it, but I know he's also talking to carriot. The advantage to thinkspeak is that the server code, or at least the core bit, is open source so I'm going to try to install that and play with it soon.
I'd definitely be interested in learning how to do something useful with the output - I've got a DHT22 and a BMP085 hooked up and cheerfully outputting into the terminal window but advice on how I dump this into a text file and also parse this into something I can display via RRDtool or similar... have messaged Chris for starters (thanks for the offer in your post) but other approaches, hints on how I can do this, very much welcomed! thanks all and big thanks to the nice folks at airpi!
I hope this can be figured out, and easily enough for someone like me, who is clueless, to do. I'm working with my daughter in trying to get this setup as a science fair project for her 8th grade science fair project. We have used the Pi and can follow good instructions so here's hoping we can get one of these built.
This will be her first time assembling electronics, so I really hope we get it figured out. We'd like to make it portable, and solar power powered, so we can monitor for a week or month at a given location and compare to other locations. Storing the data in a file would be better than streaming to an internet connection we may or may not have available. Then she has to be able to interpret the data easily.
How often will it write the data, could there be times set for this? Say every 10 minutes, every 30 minutes or whatever? Thanks all, my daughter will appreciate the help!
I'm looking at backing the data up to sqlite3 which comes with the Raspberry Pi install. I'll let you know when I get it working.
Tom has done a great job here with his airpi code package (Thanks Tom) and it is a great place to start, he has made the software configurable so you can set things like the logging interval from the config file.
Get your airpi going with Tom's package then see if / where you want to change things.