How arodus/signalk-alert-center works
Signal K Alert Center is a Signal K plugin for viewing alert state and history and managing durable, multi-service notification delivery. The principal flow is Signal K notification input through normalization and runtime policy into persisted alert and delivery records, then scheduled, independently retried transport sends; users inspect and configure alerts through the web interface and API. The README documents live readings, zones, snooze, quiet hours, service-health alerts, and six notification integrations. Some subsystem links are documented rather than verified in sampled implementation excerpts.
Main entry points: runtime.ts Alert runtime · transport.ts Transport contract · scheduler.ts Delivery scheduler · routes.ts HTTP API
Components 25
Plugin and interface
- Plugin bootstrap
src/plugin.ts - Alert runtime
src/runtime.ts - Alert web app
public/app.js - Plugin settings
src/configpanel/PluginConfigurationPanel.jsx - HTTP API
src/api/routes.ts
Alert processing
- Notification queue
src/signalk/ingestion-queue.ts - Alert normalization
src/alerts/normalize.ts - Zone definitions
src/alerts/zones.ts - Alert policy
src/alerts/policy.ts - Live readings
public/live-values.js
Delivery and controls
- Delivery scheduler
src/delivery/scheduler.ts - Quiet hours and snooze
src/suppression/store.ts - Connectivity manager
src/connectivity/manager.ts
Persistence
- Alert and delivery store
src/storage/db.ts
Signal K and services
- Service health alerts
src/signalk/service-health.ts - Transport contract
src/transports/transport.ts - ntfy
src/transports/ntfy.ts - PagerDuty
src/transports/pagerduty.ts - Discord
src/transports/discord.ts - Telegram
src/transports/telegram.ts - Pushover
src/transports/pushover.ts - Wyoming audio
src/transports/wyoming.ts
Other components
- Operator
- Signal K server
- Notification services
Connections 39
- Operator → Alert web app: uses
README.md - Operator → Plugin settings: configures
README.md - Signal K server → Plugin bootstrap: loads plugin
src/plugin.ts - Plugin bootstrap → Alert runtime: starts
src/plugin.ts - Plugin bootstrap → HTTP API: registers routes
src/plugin.ts - Alert web app → HTTP API: requests data
- Plugin settings → Plugin bootstrap: sets configuration
- Signal K server → Notification queue: provides alerts
src/signalk/ingestion-queue.ts - Notification queue → Alert normalization: normalizes
src/signalk/ingestion-queue.ts - Alert runtime → Notification queue: processes input
src/runtime.ts - Alert runtime → Alert policy: applies policy
src/runtime.ts - Alert runtime → Zone definitions: loads zones
src/runtime.ts - Alert runtime → Alert and delivery store: records alerts
src/runtime.ts - Alert runtime → Delivery scheduler: schedules delivery
src/runtime.ts - Alert runtime → Quiet hours and snooze: checks controls
src/runtime.ts - Alert runtime → Connectivity manager: checks connectivity
src/runtime.ts - Alert runtime → Service health alerts: publishes health
src/runtime.ts - Alert runtime → Signal K server: publishes notifications
src/runtime.ts - HTTP API → Alert and delivery store: reads and writes
src/api/routes.ts - HTTP API → Quiet hours and snooze: sets snooze
src/api/routes.ts - HTTP API → Notification services: tests service
src/api/routes.ts - Delivery scheduler → Alert and delivery store: claims and records
src/delivery/scheduler.ts - Delivery scheduler → Transport contract: sends delivery
src/delivery/scheduler.ts - Delivery scheduler → Quiet hours and snooze: respects controls
- Delivery scheduler → Connectivity manager: waits offline
- Transport contract → ntfy: dispatches
- Transport contract → PagerDuty: dispatches
- Transport contract → Discord: dispatches
src/transports/discord.ts - Transport contract → Telegram: dispatches
src/transports/telegram.ts - Transport contract → Pushover: dispatches
src/transports/pushover.ts - Transport contract → Wyoming audio: dispatches
src/transports/wyoming.ts - ntfy → Notification services: notifies
README.md - PagerDuty → Notification services: notifies
README.md - Discord → Notification services: notifies
README.md - Telegram → Notification services: notifies
README.md - Pushover → Notification services: notifies
README.md - Wyoming audio → Notification services: announces
README.md - Live readings → Signal K server: subscribes readings
README.md - Alert web app → Live readings: shows readings
README.md