theseanstewart / tankbro

Library that helps with logging aquarium metrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tank Bro

Library that helps with logging aquarium metrics

Dependencies

This library depends on w1thermsensor. Follow the README to set up the w1thermsensor library for the raspberry pi.

pip install w1thermsensor

Temperature Monitoring

Automating

Follow the instructions below to automate the logging of your tank's temperature readings to a Google Spreadsheet.

1. Setup Hardware

Follow steps here to wire up the DS18B20 to the Raspberry Pi.

2. Setup Google Spreadsheet

Create a Google Spreadsheet, rename the first sheet to "Temperature", and add the following columns to the first row:

  • Date
  • Sensor

3. Create Zap

Create a Zapier account and create a 2 step Zap.

The first step (Trigger) needs to be a webhook. Create the webhook, grab the URL, and run the following command from the project directory to pull in a sample post.

python ./scripts/temp.py [URL]

After the command is run, return to Zapier and click the "Refresh" button to pull in the sample data.

Once that has been done, the second step (Action) needs to be setup with the Google Sheets app. Select the "Create Spreadsheet Row" option and follow the steps on the screen to link your Google Account and install the Zapier => Google Sheets integration.

4. Schedule

Create a cronjob with the following (replace [URL] with the webhook URL from Zapier).

*/10 * * * * python /home/pi/Desktop/tankbro/scripts/temp.py [URL] >/dev/null 2>&1

This will run the temperature monitoring script that will update the Google Sheet every 10 minutes.

About

Library that helps with logging aquarium metrics


Languages

Language:Python 100.0%