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 🙏

© 2026 – Pkg Stats / Ryan Hefner

homebridge-apollo-level

v1.0.1

Published

Simulate an Apollo Ultrasonic Oil tank sensor from file

Downloads

135

Readme

homebridge-apollo-level

This is a plugin for homebridge which makes it possible to create an Apollo Ultrasonic oil tank level sensor in HomeKit exposed as a Humidity sensor.

Why via file?

The Apollo Ultrasonic oil sensor transmits hourly broadcasts on 433MHz to communicate the oil level to its paired receiver. We use a software defined radio (SDR) device to capture these broadcasts, together with the rtl-433 package to output the information as JSON to a file.

SDR receiver

The transmitter's broadcast is powerful enough that most SDR receivers combined with an antenna will be able to receive the packets. Examples:

Nooelec NESDR Mini 2+ (~£24 in early 2022)

RTL-SDR Blog V3 (~£35 in early 2022)

Installing rtl-433

Mac

Both Macports and Homebrew provide a rtl-433 package

Linux

Most distributions' package managers contain a rtl-433 package (e.g. apt or yum)

Raspberry Pi

For Buster (v10), rtl-433 needs to be downloaded and compiled manually:

sudo apt update
sudo apt install libtool libusb-1.0.0-dev librtlsdr-dev rtl-sdr doxygen git cmake
git clone https://github.com/merbanan/rtl_433.git

cd rtl_433
mkdir build
cd build
cmake ../

make

sudo make install

A systemd daemon to daemonize rtl-433, in /etc/systemd/system/rtl-433.service:

[Unit]
Description=RTL 433 SDR Daemon
After=syslog.target network.target

[Service]
User=root
Group=root
Type=idle
ExecStart=/usr/local/bin/rtl_433 -M hires -M level -F kv -F json:/home/pi/rtl-433.json
WorkingDirectory=/home/pi
TimeoutStopSec=20
Restart=on-failure

[Install]
WantedBy=multi-user.target

Start service automatically:

sudo systemctl daemon-reload
sudo systemctl enable rtl-433.service
sudo systemctl start rtl-433.service

Check service:

journalctl -u rtl-433.service

Thank you to @apalrd for the build instructions.

Example homebridge config

{
  "accessory": "ApolloLevel",
  "name": "Oil Tank",
  "description": "Apollo Ultrasonic oil level monitor",
  "file_path": "/home/pi/rtl-433.json",
  "tank_height": 120,
  "initial_depth": 13,
}

The tank height is the internal height of the oil tank in cm, and can be determined by reading the switches on the back of your receiver and cross-referencing the switch positions with those listed in the Apollo Ultrasonic guide.

The initial depth is the first depth reading of the sensor (in cm) when the oil tank has been filled to 100%.

Install plugin

On your Homebridge computer, with the attached SDR receiver:

sudo npm install -g https://github.com/bb8/homebridge-apollo-level