signalk-alarm-silencer
v1.8.1
Published
Plugin to silence SignalK Alarms
Downloads
70
Readme
signals-alarm-silencer
Plugin to silence SignalK Alarms
This plugin provides the ability for clients/apps to change the state and method of existing alarms.
For example, an app can clear an alarm by setting the state
to normal
or silence and alarm by setting the method
to []
API
All messages to plugin are done using PUT requests. These can be done via HTTP or over WebSockets.
Detailed info on PUT and Request/Response
Http:
PUT http://localhost:3000/signalk/v1/api/vessels/self/propulsion/port/lowOilLevel/state
{
"value": 'normal',
}
Delta:
{
"context": "vessels.self",
"requestId": "184743-434373-348483",
"put": {
"path": "propulsion.port.lowOilLevel.state",
"value": 'normal'
}
}
Set Notifcation State
PUT http://localhost:3000/signalk/v1/api/vessels/self/propulsion/port/lowOilLevel/state
{
"value": 'normal',
}
Notification Method
The value
can be a set of visual
, sound
or blank states to change or remove the method
of notification.
PUT http://localhost:3000/signalk/v1/api/vessels/self/propulsion/port/lowOilLevel/method
{
"value": [ "visual" ],
}
Clearing a notification
POST http://localhost:3000/plugins/alarmsilencer/clearNotification
{
"path": "notifications.someNotification"
}