Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1251

Python • sending data to a google spreadheet from Raspi 5B

$
0
0
Hi, I just finished creating and publishing a Gist https://gist.github.com/PaulskPt/893f1c ... 2343d02c39,
which I want to share with you. I contains a Python script that performs various functionalities:
- at start, reading certain settings from a settings.toml file;
- reading data from an Adafruit AHT20 temperature & humidity sensor;
- reading buttons and joystick X/Y-axis values from an Adafruit mini gamepad QT board;
- logging data and information into two separate logfiles;
- at intervals send the temperature/humidity data and the board ID to a Google Sheets spreadsheet, using a ´man-in-the-middle´service from pushingbox.com (free account for basic services) and a Google Apps Scripts script to add the received data into a Google Sheets spreadsheet.
The sensor and the joystick board are wired via I2C bus #3.
Instructions how to do and links to images you can read in the Gist.

Python script outline image https://imgur.com/a/j14ZH1N

paulsk

Statistics: Posted by paulsk — Thu Apr 18, 2024 4:32 pm



Viewing all articles
Browse latest Browse all 1251

Trending Articles