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-notification-player

v2.6.1

Published

Customizable audio and text to speech playback of Signal K notifications w/ optional Slack integration

Readme

Signal K Notification Player with Webapp

This Signal K plugin plays user-configurable sounds and/or text-to-speech when a Signal K notification enters an emergency, alarm, warn, or notice state. Custom notifications can also be sent to a user-configured Slack channel.

The paired webapp displays all known and configured notifications, along with controls for silencing and clearing active notification states. It also shows recent zone log history.

A persistent log is kept for all zone changes, even when audio is not playing or when no state zone method is defined. Use cases include basic logging of digital switching or miscellaneous events like engine state, movement status, or Node-RED flags.

Key Features

  • Playback Options: Independently configure playback for each state (emergency, alarm, warn, notice). Create custom playback rules for specific paths and states.
  • Custom Commands: Initiate commands before and after a notification plays (e.g., pause music, change volume, flash lights).
  • Repeat Behavior: Configure a state's notification playback to repeat continuously (e.g., emergency) or play once (e.g., notice).
  • Queuing: All notifications are queued in order. Sound plays first, followed by message/speech if available, repeating as configured.
  • Stopping Playback: Continuous playback stops when a notification's state returns to 'normal' or 'sound' is removed from its method (muted/silenced).

Example Usage:

  • A zone for elevated coolant or alternator temperature could trigger a single play/speech event.
  • An overheat zone would send continuous output/alarm.
  • Similar setups could apply to depth or battery SOC.
  • An anchor alarm could play continuously, alternating a unique attention-grabbing sound with "Anchor Alarm - Emergency" text-to-speech.

Initial configuration of each notification state

Customized alarm for specific path & notification state

WebApp - State Viewer and Control

Companion webapp for viewing all notifications states and their corresponding values. This page can be easily embedded into Kip for quick state view and playback control/silencing

Mouse over any path to view its notifcation zones and type

Mouse over the State column of any path (eg. normal) to view log of past notifications.

API - Control of Playback & Active Notifications

Active notifications can be silenced (sound removed from method) or resolved (state set to normal) via simple GET requests to the following URLs.

  • Silence all active playback (clears sound notification method):

    curl http://localhost:3000/plugins/signalk-notification-player/silence
  • Resolve all active notifications (set state to normal):

    curl http://localhost:3000/plugins/signalk-notification-player/resolve
  • Disable all playback for 1 hour (default, max 8 hours):

    curl http://localhost:3000/plugins/signalk-notification-player/disable
  • Custom disable all playback for 5 minutes (max value 28800, i.e., 8 hours):

    curl http://localhost:3000/plugins/signalk-notification-player/disable?300
  • Custom disable playback for specific path (args: path & true/false):

    curl http://localhost:3000/plugins/signalk-notification-player/disablePath?electrical.batteries.House.voltage?true
  • Custom disable playback for last alert path (map to a keystroke to quickly silence & disable):

    curl http://localhost:3000/plugins/signalk-notification-player/disableLast
  • List all known notification states & associated values (JSON):

    curl http://localhost:3000/plugins/signalk-notification-player/list
  • List log of notifications (JSON) (log?path?numberDisplayed):

    curl http://localhost:3000/plugins/signalk-notification-player/log?navigation.gnss.horizontalDilution?25
    curl http://localhost:3000/plugins/signalk-notification-player/log?20  # Show last 20 for any path

While playback is disabled, incoming notifications will still be queued and played in order. Once re-enabled, the latest/current notification for a given path will be processed for playback.

Example using authentication (with user pi):

curl -H 'Cookie: JAUTHENTICATION='$(signalk-generate-token -u pi -e 1y -s ~pi/.signalk/security.json) http://localhost:3000/plugins/signalk-notification-player/silence

Signal K Paths for Control: Silence, resolve, and disable functions are available via these paths, which can be set via the included webapp, webapps like Kip's boolean control panel, or Node-RED:

  • digital.notificationPlayer.silence (clear sound method from all active notifications)
  • digital.notificationPlayer.resolve (set all active notifications to normal)
  • digital.notificationPlayer.disable (will reset/enable playback after 60 min)

(Set the above path prefix under Plugin Config - default: digital.notificationPlayer.)

Example of Alarm Playback Control via the Kip Webapp: Kip Example

Background

A Signal K path can have one or more zones associated with it. Zones are specified in a path's metadata, which defines thresholds and associated notification states. This plugin monitors these zones and triggers audio notifications accordingly.

For more details on Signal K notifications and zones, refer to the Signal K documentation.