Just thought I would share with you a side project I’ve been working on. This is the link to the repository: https://github.com/carlkid1499/purple_air_data_logger#readme
In a nutshell, the “PurpleAirAPI.py” sends get requests using the python request library. Not all supported requests have been implemented. At the moment only fetching data from one sensor is supported. In the works is the ability to fetch data from multiple sensors, along with the historical parts of the new PAA.
Alongside the “PurpleAirAPI.py” there is a “PurpleAirDataLogger.py”. This file currently supports the ability to insert data from a single sensor into a TimeScaleDB PostgreSQL database.
Lastly, the “PurpleAirDataLoggerPSQLStatements.py” file just contains all the PSQL query statements that are used in “PurpleAirDataLogger.py”.
What is TimeScaleDB