homebridge-airly2
Homebridge plugin retrieving information about air quality from the Airly website using API version 2
Project is based on homebridge-airly.
Instalation
- Install Homebridge using:
(sudo) npm install -g --unsafe-perm homebridge
. - Install this plugin using:
(sudo) npm install -g homebridge-airly2
. - Get API Key from Airly. Login here https://developer.airly.eu/login and generate it.
- Find out your coordinates (latitude and longitude). Based on that information Airly will show measurements from nearest sensor. You can use this page https://www.latlong.net/.
- Update your configuration file like the example below.
Configuration
Set in config.json file
"accessories": [
{
"accessory": "Air2",
"key": "YOUR_API_KEY",
"latitude": "YOUR_LATITUDE",
"longitude": "YOUR_LONGITUDE",
"maxdistance": 3,
"name": "Airly Air Quality"
}
Description config file
Fields:
-
accessory
Defines the name of the plugin. The name Air2 must be provided. (required). -
apikey
API key from Airly Developers (required). -
latitude
String with your latitude e.g."50.3910761"
(required). -
longitude
String with your longitude e.g."18.94962214"
(required). -
maxdistance
The maximum distance from which the measurement will be read from the coordinate point. The default value is 3 km. (required)