homebridge-aqicn
v1.2.1
Published
Air quality plugin for Homebridge using aqicn
Downloads
41
Maintainers
Readme
homebridge-aqicn
aqicn plugin for Homebridge
Installation
- Install Homebridge using the official instructions.
- Install this plugin using:
sudo npm install -g homebridge-aqicn
. - Update your configuration file. See sample config.json snippet below.
Configuration
Configuration sample:
"platforms": [
{
"platform": "aqicn",
"api_key": "N4wbhJlHEywbmGbV01SL3gHqrKKNavOfrLTt1OnZ",
"location_gps": [31.2047372, 121.4489017],
"polling_minutes": 30,
"inactive_hours": 1
}
]
Fields
- "platform": Must always be "aqicn" (required)
- "api_key": Your API key for calling aqicn, you can get one free from here (required)
- "location_gps": Latitude and longitude of your location, you can find that here (required)
- "polling_minutes": Number of minutes between updates, polling disabled if no entry (optional)
- "inactive_hours": Number of hours before sensor is marked inactive. Set to 0 to always show active. (Default:
1
) (optional)