

GDOCS_OAUTH_JSON = 'your SpreadsheetData-*.json file name' # and write acess to the email address above. command in the spreadsheet to share it with read

# if the client_email setting inside the. # inside the 'client_email' setting in the SpreadsheetData-*.json file. # Go to your spreadsheet in Google Spreadsheet and share it to the email address # Now one last _very important_ step before updating the spreadsheet will work. # Place that file in the same directory as this python script. This file has a name like SpreadsheetData-.json. # Once you've followed the steps above you should have downloaded a. # this page to create a new OAuth service in your Google developer console: # in and authenticate with the gspread library. # with Google docs has changed as of ~April 2015. # Google Docs OAuth credential JSON file. # Initialize the dht device, with data pin connected to: # Example of sensor connected to Beaglebone Black Pin P8_11 # Example of sensor connected to Raspberry Pi Pin 23

# For the AM2302, use the `adafruit_dht.DHT22` class. # Type of sensor, can be `adafruit_dht.DHT11` or `adafruit_dht.DHT22`.
CS SOURCE GOOGLE DRIVE SOFTWARE
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THEįrom rvice_account import ServiceAccountCredentials LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, IN NO EVENT SHALL THEĪUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,įITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR The above copyright notice and this permission notice shall be included in allĬopies or substantial portions of the Software. To use, copy, modify, merge, publish, distribute, sublicense, and/or sellĬopies of the Software, and to permit persons to whom the Software isįurnished to do so, subject to the following conditions: In the Software without restriction, including without limitation the rights Of this software and associated documentation files (the "Software"), to deal
CS SOURCE GOOGLE DRIVE FREE
Permission is hereby granted, free of charge, to any person obtaining a copy Modified by: Brent Rubell for Adafruit Industries Google Spreadsheet DHT Sensor Data-logging Example json file and search for the "client_email": line that looks like this (but with a different email address): One last step that must be completed is to share your Google spreadsheet to the email address associated with the OAuth2 credentials.
CS SOURCE GOOGLE DRIVE UPDATE
If you don't place this file in the same directory then authentication will fail and you will not be able to update your spreadsheet! json file in the same directory as the google_spreadsheet.py example. json file, like SpreadsheetData-(gibberish).json. gspread - Using OAuth2 for AuthorizationĪfter you follow the steps in the document above you should have downloaded a.To get your OAuth2 credentials follow the steps on this page: If you run into problems try consulting the gspread python library that this script uses. Unfortunately these steps are somewhat complex, so go through them very carefully to make sure you don't miss a step. You must carefully follow the steps below to enable OAuth2 access to your Google spreadsheet. As of April 2015 Google has deprecated the older simple authentication interface for accessing Google spreadsheet data.
