@signalk/freeboard-sk 2.19.8 → 2.19.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalk/freeboard-sk",
3
- "version": "2.19.8",
3
+ "version": "2.19.9",
4
4
  "description": "Openlayers chart plotter implementation for Signal K",
5
5
  "keywords": [
6
6
  "signalk-webapp",
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "license": "Apache-v2",
42
42
  "dependencies": {
43
- "@signalk/server-api": "^2.9.0",
43
+ "@signalk/server-api": "^2.22.0",
44
44
  "geolib": "^3.3.3",
45
45
  "google-protobuf": "^4.0.1",
46
46
  "tslib": "^2.0.0",
@@ -63,14 +63,14 @@ class AreaAlarmManager {
63
63
  */
64
64
  silence(id) {
65
65
  // clean up notification
66
- const n = server.getSelfPath(`notifications.area.${id}`);
67
- if (n.value && Array.isArray(n.value.method)) {
66
+ const n = getSelfPathValue(`notifications.area.${id}`);
67
+ if (n?.value && Array.isArray(n.value.method)) {
68
68
  const m = n.value.method.filter((i) => i !== 'sound');
69
69
  n.value.method = m;
70
70
  }
71
71
  emitNotification({
72
72
  path: `notifications.area.${id}`,
73
- value: n.value
73
+ value: n?.value
74
74
  });
75
75
  }
76
76
  /**
@@ -140,6 +140,9 @@ let pluginId;
140
140
  let unsubscribes = [];
141
141
  const alarmAreas = new Map();
142
142
  const alarmManager = new AreaAlarmManager();
143
+ const getSelfPathValue = (path) => {
144
+ return server.getSelfPath(path);
145
+ };
143
146
  const initAlarms = (app, id) => {
144
147
  server = app;
145
148
  pluginId = id;
@@ -389,12 +392,13 @@ const initAlarmEndpoints = async () => {
389
392
  return;
390
393
  }
391
394
  try {
392
- const al = server.getSelfPath(`notifications.${req.params.alarmType}.${req.params.id}`);
393
- if (al && al.value) {
395
+ const al = getSelfPathValue(`notifications.${req.params.alarmType}.${req.params.id}`);
396
+ if (al?.value) {
394
397
  server.debug('Alarm value....');
395
- if (al.value.method && al.value.method.includes('sound')) {
398
+ if (al.value.method &&
399
+ al.value.method.includes(server_api_1.ALARM_METHOD.sound)) {
396
400
  server.debug('Alarm has sound... silence!!!');
397
- al.value.method = al.value.method.filter((i) => i !== 'sound');
401
+ al.value.method = al.value.method.filter((i) => i !== server_api_1.ALARM_METHOD.sound);
398
402
  const r = handleAlarm('vessels.self', `notifications.${req.params.alarmType}.${req.params.id}`, al.value);
399
403
  res.status(r.statusCode).json(r);
400
404
  }
@@ -447,11 +451,11 @@ const handleV1PutRequest = (context, path, value, cb) => {
447
451
  cb(handleAlarm(context, path, value));
448
452
  };
449
453
  const buildAlarmData = () => {
450
- const pos = server.getSelfPath('navigation.position');
454
+ const pos = getSelfPathValue('navigation.position');
451
455
  const r = {
452
456
  createdAt: new Date().toISOString()
453
457
  };
454
- if (pos) {
458
+ if (pos?.value) {
455
459
  r.position = pos.value;
456
460
  }
457
461
  return r;
@@ -120,7 +120,7 @@
120
120
  >
121
121
  </div>
122
122
 
123
- <div
123
+ <!--<div
124
124
  class="panel"
125
125
  id="deprecations"
126
126
  style="background-color: rgba(255, 0, 0, 0.4)"
@@ -142,7 +142,7 @@
142
142
  >
143
143
  </li>
144
144
  </ul>
145
- </div>
145
+ </div>-->
146
146
 
147
147
  <div class="panel" id="server">
148
148
  <h3>Signal K Server</h3>
@@ -281,13 +281,42 @@
281
281
  alt=""
282
282
  />.<br />
283
283
  <img src="./img/screen.png" style="height: 400px" alt="" />
284
- <br />
285
- The menu bar along the left of the screen provides access to functions
286
- and menus that allow you control the map display. <br />
287
- The buttons along the right side provide access to quick-actions and
288
- experiments.
289
284
  <br />&nbsp;<br />
285
+ <b>Status Area:</b>
286
+ Provides visual indication of the following conditions.
287
+ <ul>
288
+ <li class="nobullet">
289
+ <i class="material-icons"
290
+ >signal_wifi_statusbar_connected_no_internet_4</i
291
+ >
292
+ <b>No server messages:</b>
293
+ Indicates there may be an issue on the server as messages no have
294
+ been received over the open connection in the last 8-10 seconds.
295
+ </li>
296
+ <li class="nobullet">
297
+ <i class="material-icons">directions_boat</i>
298
+ <b>Vessels hidden:</b>
299
+ Indicates vessels are not being displayed.
300
+ </li>
301
+ <li class="nobullet">
302
+ <i class="material-icons">local_offer</i>
303
+ <b>Notes hidden:</b>
304
+ Indicates notes are not being displayed.
305
+ </li>
306
+ <li class="nobullet">
307
+ <i class="material-icons">compare_arrows</i>
308
+ <b>Course hidden:</b>
309
+ Indicates course information is not being displayed.
310
+ </li>
311
+ <li class="nobullet">
312
+ <i class="material-icons">visibility_off</i>
313
+ <b>Wake lock off:</b>
314
+ Indicates that the device wake lock is off.
315
+ </li>
316
+ </ul>
317
+ <br />
290
318
  <b>Left menu bar:</b>
319
+ Provides access to functions that allow you control the map display.
291
320
  <ul>
292
321
  <li class="nobullet">
293
322
  <i class="material-icons">menu</i>
@@ -377,6 +406,7 @@
377
406
  </ul>
378
407
  <br />
379
408
  <b>Right menu bar:</b>
409
+ Provides access to quick-actions and experiments.
380
410
  <ul>
381
411
  <li class="nobullet">
382
412
  <i class="material-icons">av_timer</i>
package/public/index.html CHANGED
@@ -54,5 +54,5 @@
54
54
  </div>
55
55
  </div>
56
56
  </app-root>
57
- <link rel="modulepreload" href="chunk-FDERIQAA.js"><script src="polyfills-5CFQRCPP.js" type="module"></script><script src="main-3CX2DAQ4.js" type="module"></script></body>
57
+ <link rel="modulepreload" href="chunk-FDERIQAA.js"><script src="polyfills-5CFQRCPP.js" type="module"></script><script src="main-LF4KQTMA.js" type="module"></script></body>
58
58
  </html>