@meri-imperiumi/signalk-mob-notifier 1.1.5 → 1.1.6

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 CHANGED
@@ -11,6 +11,9 @@ Please note that this plugin aims to aid with noticing and locating crew overboa
11
11
 
12
12
  ## Changes
13
13
 
14
+ * 1.1.6 (2026-01-20)
15
+ - Round distance to beacon with single decimal
16
+ - Use EPIRB and SART terms for shorter notifications
14
17
  * 1.1.5 (2025-11-15)
15
18
  - Bump release
16
19
  * 1.1.4 (2025-11-12)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meri-imperiumi/signalk-mob-notifier",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Create Signal K notifications for discovered AIS MOB, EPIRB, and SART beacons",
5
5
  "main": "plugin/index.js",
6
6
  "scripts": {
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 = 'Search and Rescue Transponder Beacon detected';
107
+ message = 'SART beacon detected';
108
108
  }
109
109
  if (String(mmsi).indexOf('974') === 0) {
110
- message = 'Emergency Position Indicating Beacon detected';
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
  }