homebridge-aqicn

Air quality plugin for Homebridge using aqicn

Usage no npm install needed!

<script type="module">
  import homebridgeAqicn from 'https://cdn.skypack.dev/homebridge-aqicn';
</script>

README

homebridge-aqicn

npm npm verified-by-homebridge

aqicn plugin for Homebridge

Installation

  1. Install Homebridge using the official instructions.
  2. Install this plugin using: sudo npm install -g homebridge-aqicn.
  3. 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
    }
]

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)