Hardware Reference
In-Depth Information
To use it, you will need to configure the script with your own Google Docs account
details. Open Adafruit_DHT_googledocs.ex.py with your favorite text editor and then
look for this section of code:
# Account details for google docs
email = 'you@somewhere.com'
password = '$hhh!'
spreadsheet = 'SpreadsheetName'
Change the values for the email , password , and spreadsheet , making sure to keep the
actual values wrapped in single quotes, and save out the file. To run the script, simply
execute it from a terminal:
$ ./Adafruit_DHT_googledocs.ex.py
You might want to run this in a screen session, so that you do not need to keep that
terminal open. To do that, simply execute the screen command before running the
Adafruit_DHT_googledocs.ex.py script, and then press Control-A-D to disconnect from
the screen session. You can reconnect to that screen session later by running screen
-r .
You can now go to your Google Docs account in a web browser and watch the humidity
and temperature data for your plants get uploaded over time.
This is a simple monitoring setup, but it is possible to make more complicated setups
using this model:
• You could write a wrapper script to check for alert conditions (temperature ap-
proaching freezing) and have it send you notification emails (or tweets).
• You could use the AM2302 as a data source for automating your garden (think
automated watering).
• Or if you really don't like plants, it could be part of a homemade weather station.
Monitoring home-brewed beer or your wine cellar?
Really, anything that doesn't handle temperature or moisture well is ideal for this hack.
Make Your Pi Water-Resistant (with a
Case)
HACK 39
If you want to run your Raspberry Pi outdoors, you're going to need to
put it in a water-resistant case. Here's one way to do it.
If you are working on a project that involves readings from the great outdoors, the best
place for your Raspberry Pi is inside, but that isn't always practical or possible. Wheth-
er you are trying to monitor plants in a garden, or automating your mailbox, you'll need
to protect your Raspberry Pi from:
Search WWH ::




Custom Search