Homebridge-air-quality
Homebridge plugin to show informations about air quality, temperature and humidity, provided by Airly.
Plugin inspired by homenridge-airly.
Instalation
- Install required package:
npm install -g homebridge-air-quality. - Create new account in Airly.eu https://developer.airly.eu/register and get your individual API Key.
- Find your coordinates (latitude and longitude). You should be in range of minimum one sensor.
- Update your configuration file, including API Key, coordinates, and select which sensors to show in HomeApp.
Configuration
"accessories": [
{
"accessory":"AirQuality",
"name":"Air Quality",
"apikey":"YOUR_API_KEY",
"latitude":"YOUR_LATITUDE",
"longitude":"YOUR_LONGITUDE",
"pollingInterval":300,
"showAirQualityIndex":true,
"airQualityIndexName":"Air Quality",
"showHumidity":true,
"humidityName":"Humidity",
"showTemperature":true,
"temperatureName":"Temperature"
}
]Settings
accessorymust be "AirQuality" (required)nameof the accessoryapikeyAPI key from Airly Developers (required)latitudeyour latitude e.g."52.333658"(required)longitudeyour longitude e.g."20.886986"(required)pollingIntervalhow often fetch new data from Airly, in seconds (optional, default to300)showAirQualityIndexshow or hide air quality sensor (optional, default tofalse)airQualityIndexNamename of air quality sensor (optional, default to"Air Quality")showHumidityshow or hide humidity sensor (optional, default tofalse)humidityNamename of humidity sensor (optional, default to"Humidity")showTemperatureshow or hide temperature sensor (optional, default tofalse)temperatureNamename of temperature sensor (optional, default to"Temperature")
Minimal configuration
Minimal configuration consists only 4 lines, but nothing will be shown in HomeApp. You should set true to at least one option witch begins with show....
"accessories": [
{
"accessory":"AirQuality",
"name":"Air Quality",
"apikey":"YOUR_API_KEY",
"latitude":"YOUR_LATITUDE",
"longitude":"YOUR_LONGITUDE",
}
]