@meri-imperiumi/signalk-mob-notifier 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/package.json +2 -2
- package/plugin/index.js +7 -2
package/README.md
CHANGED
|
@@ -8,3 +8,10 @@ This plugin detects if Signal K has seen an AIS MOB (MMSI starting with `972`),
|
|
|
8
8
|
* Visual with apps like Freeboard
|
|
9
9
|
|
|
10
10
|
Please note that this plugin aims to aid with noticing and locating crew overboard. It is not a replacement for "proper" alerting mechanisms via dedicated alert buzzers, chartplotters, or a VHF radio.
|
|
11
|
+
|
|
12
|
+
## Changes
|
|
13
|
+
|
|
14
|
+
* 1.1.0 (2025-09-04)
|
|
15
|
+
- Notification is not re-published if it already exists
|
|
16
|
+
* 1.0.0 (2025-08-25)
|
|
17
|
+
- Initial release
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meri-imperiumi/signalk-mob-notifier",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Create Signal K notifications for discovered AIS MOB, EPIRB, and SART beacons",
|
|
5
5
|
"main": "plugin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"signalk-node-server-plugin",
|
|
15
|
-
"signalk-category-
|
|
15
|
+
"signalk-category-notifications"
|
|
16
16
|
],
|
|
17
17
|
"author": "Henri Bergius <henri.bergius@iki.fi>",
|
|
18
18
|
"license": "MIT",
|
package/plugin/index.js
CHANGED
|
@@ -91,12 +91,17 @@ module.exports = (app) => {
|
|
|
91
91
|
notified.splice(notified.indexOf(mmsi), 1);
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
app.setPluginStatus(`${mobs.length} MOB or SART beacons detected`);
|
|
94
|
+
app.setPluginStatus(`${mobs.length} MOB, EPIRB, or SART beacons detected`);
|
|
95
95
|
|
|
96
96
|
if (mobs.length === 0) {
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
mobs.forEach((mmsi) => {
|
|
100
|
+
// Check if we already have a notification for this one
|
|
101
|
+
const notification = app.getSelfPath(`notifications.mob.${mmsi}`);
|
|
102
|
+
if (notification) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
100
105
|
let message = 'Crew Overboard Beacon detected';
|
|
101
106
|
if (mmsi.indexOf('970') === 0) {
|
|
102
107
|
message = 'Search and Rescue Transponder Beacon detected';
|
|
@@ -155,7 +160,7 @@ module.exports = (app) => {
|
|
|
155
160
|
properties: {
|
|
156
161
|
interval: {
|
|
157
162
|
type: 'integer',
|
|
158
|
-
default:
|
|
163
|
+
default: 30,
|
|
159
164
|
title: 'How often to check for Beacons (in seconds)?',
|
|
160
165
|
},
|
|
161
166
|
},
|