Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Uses the Pimoroni Enviro pHAT to log specific values to a Google Drive Sheets document.

License

Notifications You must be signed in to change notification settings

tscholze/python-enviro-gdocs-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enviro HAT to Google Drive Sheets logger

Uses the Pimoroni Enviro HAT to log specific values to a Google Drive Sheets document.

Prerequirements

  • Raspbian Linux
  • Python (2/3)
  • Installed pip packages: envirophat, oauth2client, gspread

Before run

  1. Enable Google Sheets API in the GDC
  2. Download and move thecredentials.json to the source directory
  3. Enable Google Drive APO in the GDC (maybe not required)
  4. Create a new service account in the GDC and download the json file.
  5. Rename it to client.json and move it to the source directory
  6. Create a new Google Sheet
  7. Copy the key from the sheet's url into the source file
  8. (Optional) Name the column header
  9. (Optional) Add graphs to a new tablesheet but no the first

Run

  1. cd <source folder>
  2. 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.

Dashboard

Stop

Hit Cntrl+C in the terminal that runs the staeted Python process.

Contributing

This is a time-by-time sparetime project for myself. That means, no contribution is necessary.

Authors

Just me, Tobi.

License

This project is licensed under the MIT License - see the LICENSE file for details. Dependencies or assets maybe licensed differently.

About

Uses the Pimoroni Enviro pHAT to log specific values to a Google Drive Sheets document.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages