Skip to content

🍇 Get the Temperature and humidity from a Raspberry Pi and write it to a Google Sheet

License

Notifications You must be signed in to change notification settings

gleich/Get-Temperature

Repository files navigation

Get_Temperature

Build Status Codacy Badge

Description

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.

Features

Below is a list of all the features of this program:

  1. Collects the temperature, humidity, current time, and current date.
  2. Gets that data and writes it a JSON locally.
  3. Updates the data to a Google Sheet that shows the most recent reading
  4. Writes the data to a Google Sheet that lists all the readings
  5. Has LED indicators that show when the program is reading info, or idle.

Missing files

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

Requirements

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:

  1. git clone https://github.com/adafruit/Adafruit_Python_DHT.git
  2. cd Adafruit_Python_DHT
  3. sudo apt-get install build-essential python-dev
  4. sudo python3 setup.py install

Contributors

  • Matthew Gleich (@Matt-Gleich)

About

🍇 Get the Temperature and humidity from a Raspberry Pi and write it to a Google Sheet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages