Skip to content

e28eta/pyportal-aqi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A variant of PyPortal_AirQuality that pulls sensor data from PurpleAir for more up-to-date data, supporting averaging AQI from several sensors.

secrets-example.py has the various values expected by this project, including the ssid and password necessary for the PyPortal wifi-support. Rename it to secrets.py and fill it out with your configuration.

This project combines & customizes code from:

PurpleAir

PurpleAir has a documented API, which requires an API Key: https://api.purpleair.com At the time of this update, the process for getting an API Key is to email [email protected]. More details at https://community.purpleair.com/t/making-api-calls-with-the-purpleair-api/180

Set purpleair_sensors in your secrets.yml to the list of sensors around you, joined with a comma ,. The sensor ids can be found on the map, in the "Get this Widget" code.

Circup

I've started using circup to manage libraries on the boards, and the requirements.txt shows the libraries & versions I'm using.

Install with circup install -r requirements.txt

About

AQI display on PyPortal using PurpleAir data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages