NodeJS app that does an Internet speed test and appends the results to a Google Spreadsheet.
Wrote this to monitor my Comcast download and upload speeds. Designed to be run on a Raspberry Pi with Resin.io.
Runs continuously at an interval specified by the SPEED_TEST_INTERVAL_MIN environment variable (default is 15 min).
Follow steps on https://developers.google.com/sheets/api/quickstart/nodejs to set up an app and get auth working. Set the following environment variables to the ones corresponding to your app:
- CLIENT_ID
- CLIENT_SECRET
- REDIRECT_URI
If running this on Resin.io, also set TOKEN_DIR to "/data," so this will persist through updates.
Create a spreadsheet, copy the ID from the url (https://docs.google.com/spreadsheets/d/SHEET_ID), and set it as an environment variable called SHEET_ID.
Run 'npm start' Initially, you'll need to authenticate the app by pasting in a code. But then you should be good to go!