@sailingnaturali/signalk-dsc 0.5.0 → 0.5.2

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
@@ -43,6 +43,9 @@ For every DSC call heard by a connected radio:
43
43
  (default 24); an active (un-cleared) distress call stays until you clear the alarm.
44
44
  This is the *detail* layer — distinct from the prominent live SaR marker a
45
45
  distress call also draws via the `sar.` context (see Remote-vessel deltas).
46
+
47
+ ![DSC distress markers in Freeboard-SK](docs/screenshots/freeboard-distress-markers.png)
48
+
46
49
  - **Alarms under your own vessel** — `notifications.dsc.distress` (state
47
50
  `emergency`), `notifications.dsc.urgency` (`alarm`), `notifications.dsc.safety`
48
51
  (`alert`). Routine calls never alarm. Repeated re-transmissions of the same
package/lib/markers.js CHANGED
@@ -65,6 +65,9 @@ function buildMarkerResourceSets(events, { now, windowHours = 24, nameFor } = {}
65
65
  for (const [category, features] of Object.entries(buckets)) {
66
66
  const color = CATEGORY_COLORS[category] || CATEGORY_COLORS.routine;
67
67
  out[category] = {
68
+ // Freeboard's isResourceSet() requires this exact discriminator, else it
69
+ // filters the resource out and the chart layer renders nothing.
70
+ type: 'ResourceSet',
68
71
  name: `DSC — ${category}`,
69
72
  description: `DSC ${category} calls heard on channel 70`,
70
73
  styles: { default: { width: 2, stroke: color, fill: color } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sailingnaturali/signalk-dsc",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Receive, log, and alert on DSC (VHF digital selective calling) calls — distress, urgency, safety, routine — from NMEA 0183 ($CDDSC/$CDDSE) and NMEA 2000 (PGN 129808).",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,6 +29,9 @@
29
29
  },
30
30
  "signalk": {
31
31
  "displayName": "DSC",
32
+ "recommends": [
33
+ "@meri-imperiumi/signalk-logbook"
34
+ ],
32
35
  "screenshots": [
33
36
  "./docs/screenshots/config.png",
34
37
  "./docs/screenshots/data-table.png"