Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Update Google Spreadsheets example #115

Merged
merged 2 commits into from
Jun 11, 2019
Merged

Update Google Spreadsheets example #115

merged 2 commits into from
Jun 11, 2019

Conversation

russfeld
Copy link
Contributor

@russfeld russfeld commented Jun 4, 2019

This updates the code in the Google Spreadsheets example to work with the latest changes to Google's APIs as of June 4, 2019.

Changes:

This was tested using Python 3.5.3 running on Raspberry Pi 3 B+. I am not aware of any limitations to this change.

Library versions relevant to this example:

  • oauth2client 4.1.3
  • gspread 3.1.0
  • pyasn1 0.4.5 (required manual update in my setup)
  • pyasn1-modules 0.2.5 (required manual update in my setup)

@ladyada ladyada requested a review from brentru June 4, 2019 20:54
@brentru
Copy link
Member

brentru commented Jun 11, 2019

@russfeld Thank you for updating this code. I verified this works correctly using the same setup on my end.

Pi Output

pi@raspberrypi:~/Adafruit_Python_DHT/examples $ python3 spread_update.py
Logging sensor measurements to DHT every 30 seconds.
Press Ctrl-C to quit.
Temperature: 23.1 C
Humidity:    41.8 %
Wrote a row to DHT

Sheet Output

Date/Time | Temperature C | Humidity %
2019-06-11T17:44:23.842567 | 23.10000038 | 41.79999924

@brentru brentru merged commit afdb85b into adafruit:master Jun 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants