Go to tillkruss/homebridge-purpleair instead.
Homebridge plugin that is showing information about air quality from PurpleAir API.
Project is based on homebridge-weather and homebridge-arinow.
(sudo) npm install -g --unsafe-perm homebridge
.homebridge
was installed in (e.g. /usr/local/lib/node-modules
)homebridge-purpleair
in that directoryindex.js
and package.js
into this directoryhomebridge
configuration file like the example below.This plugin is returning only: AQI (Air Quality Index) and PM2.5
Example config.json
"accessories": [
{
"accessory": "PurpleAir",
"purpleID": "PURPLE_AIR_STATION_ID",
"updateFreq": MIN_SECS_BETWEEN_API_READ,
"name": "PurpleAir Air Quality"
}
]
Fields:
accessory
must be "PurpleAir" (required).purpleID
PurpleAir Station ID (a number).updateFreq
minimum number of seconds between reads from PurpleAir API (a number - default is 90 seconds)name
Is the name of accessory (required).To find your specific "PURPLE_AIR_STATION_ID" (a string):