The Get-Temperature program will get the temperature and humidity from from a sensor (DHT11 Temperature and Humidity Sensor) and write it to a google sheet. It also get the date and time and write that too.
Below is a list of all the features of this program:
- Collects the temperature, humidity, current time, and current date.
- Gets that data and writes it a JSON locally.
- Updates the data to a Google Sheet that shows the most recent reading
- Writes the data to a Google Sheet that lists all the readings
- Has LED indicators that show when the program is reading info, or idle.
In order to write to the google sheet, the program needs a file called gs_creds.json
that holds the API key for the Google Sheet. If you are looking for a tutorial on how to get this key, here is a link to a tutorial on how:
Tutorial Video
If you already have python3 install and pip install on your machine, you can just the following command while in this directory to install all of modules pip install -r requirements.txt
. There is one module that is needed to interact with the raspberry pi. That module is called Adafruit_DHT and it can be installed by running the following commands:
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT
sudo apt-get install build-essential python-dev
sudo python3 setup.py install
- Matthew Gleich (@Matt-Gleich)