@meri-imperiumi/signalk-mob-notifier 1.1.5 → 1.1.7
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/.editorconfig +5 -0
- package/.eslintrc.json +3 -0
- package/.github/workflows/signalk-ci.yml +11 -0
- package/CHANGELOG.md +20 -0
- package/README.md +1 -14
- package/doc/alert.png +0 -0
- package/doc/appicon.png +0 -0
- package/package.json +13 -1
- package/plugin/index.js +3 -3
package/.editorconfig
ADDED
package/.eslintrc.json
CHANGED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
* 1.1.7 (2026-06-16)
|
|
2
|
+
- Added application icon
|
|
3
|
+
* 1.1.6 (2026-01-20)
|
|
4
|
+
- Round distance to beacon with single decimal
|
|
5
|
+
- Use EPIRB and SART terms for shorter notifications
|
|
6
|
+
* 1.1.5 (2025-11-15)
|
|
7
|
+
- Bump release
|
|
8
|
+
* 1.1.4 (2025-11-12)
|
|
9
|
+
- Fix reading MOB vessel data structure
|
|
10
|
+
* 1.1.3 (2025-11-02)
|
|
11
|
+
- Fix detection of beacon type (MOB/SART/EPIRB)
|
|
12
|
+
* 1.1.2 (2025-11-01)
|
|
13
|
+
- Better approach at getting MOB coordinates
|
|
14
|
+
* 1.1.1 (2025-09-18)
|
|
15
|
+
- Notifications include position when available
|
|
16
|
+
* 1.1.0 (2025-09-04)
|
|
17
|
+
- Notification is not re-published if it already exists
|
|
18
|
+
* 1.0.0 (2025-08-25)
|
|
19
|
+
- Initial release
|
|
20
|
+
|
package/README.md
CHANGED
|
@@ -11,17 +11,4 @@ Please note that this plugin aims to aid with noticing and locating crew overboa
|
|
|
11
11
|
|
|
12
12
|
## Changes
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
- Bump release
|
|
16
|
-
* 1.1.4 (2025-11-12)
|
|
17
|
-
- Fix reading MOB vessel data structure
|
|
18
|
-
* 1.1.3 (2025-11-02)
|
|
19
|
-
- Fix detection of beacon type (MOB/SART/EPIRB)
|
|
20
|
-
* 1.1.2 (2025-11-01)
|
|
21
|
-
- Better approach at getting MOB coordinates
|
|
22
|
-
* 1.1.1 (2025-09-18)
|
|
23
|
-
- Notifications include position when available
|
|
24
|
-
* 1.1.0 (2025-09-04)
|
|
25
|
-
- Notification is not re-published if it already exists
|
|
26
|
-
* 1.0.0 (2025-08-25)
|
|
27
|
-
- Initial release
|
|
14
|
+
See <CHANGELOG.md>
|
package/doc/alert.png
ADDED
|
Binary file
|
package/doc/appicon.png
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meri-imperiumi/signalk-mob-notifier",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Create Signal K notifications for discovered AIS MOB, EPIRB, and SART beacons",
|
|
5
5
|
"main": "plugin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,5 +31,17 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"where": "^0.4.2"
|
|
34
|
+
},
|
|
35
|
+
"signalk-plugin-enabled-by-default": true,
|
|
36
|
+
"signalk": {
|
|
37
|
+
"appIcon": "./doc/appicon.png",
|
|
38
|
+
"displayName": "AIS MOB and EPIRB notifier",
|
|
39
|
+
"screenshots": [
|
|
40
|
+
"./doc/alert.png"
|
|
41
|
+
],
|
|
42
|
+
"recommends": [
|
|
43
|
+
"@meri-imperiumi/signalk-meshtastic",
|
|
44
|
+
"@meri-imperiumi/signalk-audio-notifications"
|
|
45
|
+
]
|
|
34
46
|
}
|
|
35
47
|
}
|
package/plugin/index.js
CHANGED
|
@@ -104,10 +104,10 @@ module.exports = (app) => {
|
|
|
104
104
|
}
|
|
105
105
|
let message = 'Crew Overboard Beacon detected';
|
|
106
106
|
if (String(mmsi).indexOf('970') === 0) {
|
|
107
|
-
message = '
|
|
107
|
+
message = 'SART beacon detected';
|
|
108
108
|
}
|
|
109
109
|
if (String(mmsi).indexOf('974') === 0) {
|
|
110
|
-
message = '
|
|
110
|
+
message = 'EPIRB detected';
|
|
111
111
|
}
|
|
112
112
|
// For each MOB get direction and range
|
|
113
113
|
const getCoordinates = (v) => {
|
|
@@ -132,7 +132,7 @@ module.exports = (app) => {
|
|
|
132
132
|
&& Number.isFinite(mobPosition.latitude)) {
|
|
133
133
|
const me = new Point(ownPosition.latitude, ownPosition.longitude);
|
|
134
134
|
const they = new Point(mobPosition.latitude, mobPosition.longitude);
|
|
135
|
-
const distance = me.distanceTo(they, 'K') * 1000; // In meters
|
|
135
|
+
const distance = (me.distanceTo(they, 'K') * 1000).toFixed(1); // In meters
|
|
136
136
|
const direction = longDirection(me.directionTo(they));
|
|
137
137
|
message = `${message} ${distance} meters to ${direction}`;
|
|
138
138
|
}
|