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

signalk-gpio-beeper-plugin

v1.2.1

Published

A Signal K plugin that activates a Raspberry Pi GPIO beeper when a Signal K alarm condition exists

Downloads

1,416

Readme

npm version

Signal K GPIO Beeper Plugin

A Signal K plugin that activates a piezo beeper attached to the Raspberry Pi GPIO header when a Signal K notification alarm condition exists (e.g. anchor dragging, etc).

The plugin checks notifications on the configured interval (default 1 sec), and if any "emergency", "alarm", or "warn" notifications exist, it will beep the beeper for the configured duration.

The plugin will ignore notications that do not have:

method: ["sound"]

and it will ignore notifications that have:

status: {
    silenced: true
}

The plugin assumes you are using an "active" beeper (no PWM required) attached to GPIO 17 (BCM numbering) by default.

Prerequisites

This plugin controls GPIO without any native addon dependencies, so it works with Signal K App Store installs (which run npm install --ignore-scripts).

It prefers gpioset (from the gpiod / libgpiod-tools package) to control the GPIO pin, and falls back to raw sysfs GPIO if gpioset isn't found. gpioset is required for Raspberry Pi 5 / CM5, since those boards have removed sysfs GPIO entirely.

  • Raspberry Pi OS Bookworm and later (including Pi 5): gpioset is installed by default. Nothing to do.

  • Older releases (Buster, some Bullseye images): you may need to install it manually:

    sudo apt update
    sudo apt install gpiod

    Verify it's available with which gpioset.

If gpioset isn't found, the plugin automatically falls back to sysfs GPIO. This works on older Pi models but not on Pi 5 / CM5. Check the plugin status in the Signal K admin UI to see which implementation is active.

Configuration

Interval

Number of milliseconds between checking notifications and issuing a beep if warranted (default is 1000 milliseconds).

Duration

Beep duration in milliseconds (default is 300 milliseconds).

GPIO Pin

The BCM GPIO pin number the buzzer is connected to (default is 17).

GPIO Chip

The gpiochip device name to use, e.g. gpiochip0 (default). Only used when gpioset is available; ignored when falling back to sysfs.

Testing your wiring

You can trigger a manual test beep without needing to raise a real alarm, by visiting (or curling) this URL while the plugin is running:

http://<your-signalk-host>:3000/plugins/signalk-gpio-beeper-plugin/test

This beeps for 5 seconds by default. To use a different duration, add a seconds query parameter (0.5–30):

http://<your-signalk-host>:3000/plugins/signalk-gpio-beeper-plugin/test?seconds=0.5

The response text confirms which GPIO implementation (gpioset or sysfs) was used, which is a quick way to check what your device fell back to.