signalk-vessels-to-ais 1.2.2 → 1.3.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.
Files changed (3) hide show
  1. package/README.md +3 -2
  2. package/index.js +15 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -9,8 +9,9 @@ User can configure:
9
9
  - Own data can be added to AIS sending
10
10
 
11
11
  New:
12
- - v1.2.2, fix if own position is not available
13
- - v1.2.1, fix own vessel sending
12
+ - v1.3.0, add: Navigational Status variations
13
+ - v1.2.2, fix: if own position is not available
14
+ - v1.2.1, fix: own vessel sending
14
15
  - v1.2.0, updated fetch method, no need for NODE_TLS_REJECT_UNAUTHORIZED=0 anymore
15
16
  - v1.1.5, updated vessels within selected timeframe are sent out, radius filtering around own vessel and tag-block option added
16
17
  - v1.1.4, small fix
package/index.js CHANGED
@@ -95,18 +95,32 @@ module.exports = function createPlugin(app) {
95
95
 
96
96
  const stateMapping = {
97
97
  motoring: 0,
98
+ 'UnderWayUsingEngine': 0,
99
+ 'under way using engine': 0,
100
+ 'underway using engine': 0,
98
101
  anchored: 1,
102
+ 'AtAnchor': 1,
103
+ 'at anchor': 1,
99
104
  'not under command': 2,
100
105
  'restricted manouverability': 3,
101
106
  'constrained by draft': 4,
107
+ 'constrained by her draught': 4,
102
108
  moored: 5,
109
+ 'Moored': 5,
103
110
  aground: 6,
104
111
  fishing: 7,
112
+ 'engaged in fishing': 7,
105
113
  sailing: 8,
114
+ 'UnderWaySailing': 8,
115
+ 'under way sailing': 8,
116
+ 'underway sailing': 8,
106
117
  'hazardous material high speed': 9,
107
118
  'hazardous material wing in ground': 10,
119
+ 'reserved for future use': 13,
108
120
  'ais-sart': 14,
109
121
  default: 15,
122
+ 'UnDefined': 15,
123
+ 'undefined': 15,
110
124
  };
111
125
 
112
126
  //----------------------------------------------------------------------------
@@ -384,7 +398,7 @@ module.exports = function createPlugin(app) {
384
398
  }
385
399
  const dateobj = new Date(Date.now());
386
400
  const date = dateobj.toISOString();
387
- setStatus(`AIS NMEA message send: ${date}`);
401
+ setStatus(`AIS NMEA message sent: ${date}`);
388
402
  })
389
403
  .catch((err) => console.error(err));
390
404
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signalk-vessels-to-ais",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "SignalK server plugin to convert other vessel data to NMEA0183 AIS format and forward it out to 3rd party applications",
5
5
  "main": "index.js",
6
6
  "scripts": {