0.1.0 • Published 6 years ago

homebridge-airly2 v0.1.0

Weekly downloads
2
License
GNU
Repository
github
Last release
6 years ago

homebridge-airly2

Homebridge plugin retrieving information about air quality from the Airly website using API version 2

Project is based on homebridge-airly.

Instalation

  1. Install Homebridge using: (sudo) npm install -g --unsafe-perm homebridge.
  2. Install this plugin using: (sudo) npm install -g homebridge-airly2.
  3. Get API Key from Airly. Login here https://developer.airly.eu/login and generate it.
  4. 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/.
  5. 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)