Uses the Pimoroni Enviro HAT to log specific values to a Google Drive Sheets document.
- Raspbian Linux
- Python (2/3)
- Installed pip packages:
envirophat,oauth2client,gspread
- Enable Google Sheets API in the GDC
- Download and move the
credentials.jsonto the source directory - Enable Google Drive APO in the GDC (maybe not required)
- Create a new service account in the GDC and download the json file.
- Rename it to
client.jsonand move it to the source directory - Create a new Google Sheet
- Copy the key from the sheet's url into the source file
- (Optional) Name the column header
- (Optional) Add graphs to a new tablesheet but no the first
cd <source folder>python enviro-gdocs-logger.python
It is recommended to run the script in a detachable shell session with screen or something similar.
The script will run after the delay that is defined in the source's constant MINUTES_BETWEEN_SYNCS. Default value is 15 minutes between a cycle run.
Hit Cntrl+C in the terminal that runs the staeted Python process.
This is a time-by-time sparetime project for myself. That means, no contribution is necessary.
Just me, Tobi.
This project is licensed under the MIT License - see the LICENSE file for details. Dependencies or assets maybe licensed differently.
