openplotter-notifications is published. Docs will follow but here are some basic concepts:
This app has been rewritten. The main purpose of this app is to set visual and audible warnings triggered by Signal K notifications. You can also set a list of actions to be executed when a notification is generated. This actions system is now open and that means other Openplotter apps will be able to add more actions to the list.
To generate notifications you can use the Signal K plugin "Edit Zones" to define thresholds for any signal K key. when you install this app you also install a CLI application to generate Signal K notifications from a terminal or any program using the command "set-notification". there is a bug to be fixed and you can not get the help for this commando but here is:
For example you can use the OpenCPN plugin Watchdog to set an anchor alarm and run this command:
and when this watchdog alarm is triggered, you will get this Signal K value for notifications.adrift key:
Check and report as usual, thanks!
This app has been rewritten. The main purpose of this app is to set visual and audible warnings triggered by Signal K notifications. You can also set a list of actions to be executed when a notification is generated. This actions system is now open and that means other Openplotter apps will be able to add more actions to the list.
To generate notifications you can use the Signal K plugin "Edit Zones" to define thresholds for any signal K key. when you install this app you also install a CLI application to generate Signal K notifications from a terminal or any program using the command "set-notification". there is a bug to be fixed and you can not get the help for this commando but here is:
Code:
set-notification: set-notification [options] Signal_K_key (normal|alert|warn|alarm|emergency) ["message"]
Sends a notification to the Signal K server
Options:
-h, --help Shows this document.
-n, --null Sends "null". Ignores options, states and message. Only Signal_K_key is required.
-s, --sound Adds sound method.
-v, --visual Adds visual method.
Exit Status:
Returns success unless an error occurs.
For example you can use the OpenCPN plugin Watchdog to set an anchor alarm and run this command:
Code:
set-notification -s -v notifications.adrift alarm "Check your anchorage!"
and when this watchdog alarm is triggered, you will get this Signal K value for notifications.adrift key:
Code:
{
"state": "alarm",
"message": "Check your anchorage!",
"method": [
"sound",
"visual"
],
"timestamp": "2022-04-10T19:04:33.814246Z"
}
Check and report as usual, thanks!