npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-airrohr

v1.2.0

Published

HomeBridge module for the DIY luftdaten.info particulates sensor

Downloads

26

Readme

homebridge-airrohr

Tavis CI build status

HomeBridge module for the DIY luftdaten.info air particulates sensor from OpenData Stuttgart.

It can be used to see the status of your own sensor in HomeKit. You can also use it to see another sensor if its data is published to data.sensor.community (see here for more info).

Features

  • See air quality (incl. particulates values for PM10 and PM2.5), temperature and humidity in HomeKit and the Home app
  • Get the data from a sensor on your local network
  • Get the data from public sensor on data.sensor.community
  • See history for temperature, etc. using the Elgato Eve app
  • Supported sensors / combinations :
    • SHT3X (temperature & air quality)
    • DHT22 + BMP280 (temperature & air quality)
    • SDS011 (temperature & air quality)
    • and adding more is simple as long as you get the data as JSON via HTTP

homebridge-airrohr sensor in the wild

Setup

First follow the instructions for HomeBridge.

Install homebridge-airrohr using (sudo) npm install -g homebridge-airrohr.

Configure your AirRohr sensor in the homebridge settings file. See config.sample.json. All settings except update_interval_seconds (defaults to 120 seconds) and history (defaults to persisting to memory) are required.

See the documentation of the fakegato-history module for the list of supported options.

To run this project you have two options

Option A: The sensor & homebridge in your (home) network

To do this set json_data to

http://feinstaubsensor-<YOUR_SENSOR_ID>.local/data.json

using the same local network as your sensor.

Note: If you use a HomeKit hub (like a Apple TV or a iPad) you can still access your data from outside your home. See Apple's documentation for details.

Don't set public_temperature_json_data or public_airquality_json_data in this scenario.

Option B: Use the luftdaten.info API

This allows you to add any sensor not only your own. To get the same functionality as above you need to set two IDs/URLs:

  • Set public_temperature_json_data to the URL where to find the temperature data: http://data.sensor.community/airrohr/v1/sensor/<YOUR_TEMPERATURE_SENSOR_ID>/

  • Set public_airquality_json_data to the URL where to find the air particulates (PM10, PM25) data: http://data.sensor.community/airrohr/v1/sensor/<YOUR_AIRQUALITY_SENSOR_ID>/

Don't set json_data in this scenario.

Note: If you set json_data the public_… settings will be ignored.

Advanced configuration

Disabling sensors

You can disable several characteristics by setting:

  • "disable_humidity": true
  • "disable_temperature": true
  • "disable_pressure": true
  • "disable_pm25": true
  • "disable_pm10": true

in the config file. Note that if you disable temperature pressure will also not be disanbled.

Configuring alert limits

The warning levels are calculated at <=40% -> EXCELLENT, <=60% -> GOOD, <=80% -> FAIR, <=100% -> INFERIOR, >100% -> POOR quality.

The basis for this calculation is the average of the percentage of a daily maximum limit for PM10 and PM2,5. These limits default to 50 µg/m³ and 25 µg/m³ respectivly. However these can be adjusted in the config as well. See the sample config for this.

Demo

homebridge-airrohr in apple home app