node-red-contrib-tak-registration 0.7.0 → 0.7.1
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 +14 -13
- package/package.json +1 -1
- package/tak-ingest.js +1 -1
package/README.md
CHANGED
|
@@ -30,29 +30,29 @@ As it registers to the gateway it should be possible for other team members to s
|
|
|
30
30
|
|
|
31
31
|
### Standard COT event
|
|
32
32
|
|
|
33
|
-
If the `msg.payload` is an XML string it will be passed directly though.
|
|
33
|
+
If the `msg.payload` is an XML string it will be passed directly though. It should be a correctly formatted CoT XML message of course.
|
|
34
34
|
|
|
35
|
-
###
|
|
35
|
+
### Sending marker position...
|
|
36
|
+
|
|
37
|
+
To create or update a simple marker send a msg with the following property
|
|
38
|
+
|
|
39
|
+
- **payload** - *object* - a "standard" node-red worldmap format - IE a msg.payload containing `name, lat, lon, SIDC or cottype or aistype, (alt), (speed), (bearing), (layer), (remarks)`, where `SIDC` is the standard mil 2525C code, eg SFGPU, `cottype` is the CoT type, eg a-f-g-u, or `aistype` is the AIS ship type number, eg 80 for a tanker. The `layer` will get turned into a hashtag which can then be selected on/off in the TAK app layers control, and any `remarks` will get added to the CoT remarks field.
|
|
40
|
+
|
|
41
|
+
### Simple GeoChat messages
|
|
36
42
|
|
|
37
43
|
requires a `msg` containing the following properties
|
|
38
44
|
|
|
39
|
-
- **sendTo** - *string|array* - can either be an individual TAK callsign, a comma separted list of callsigns, an array of callsigns, or **broadcast** to send to all users.
|
|
45
|
+
- **sendTo** - *string | array* - can either be an individual TAK callsign, a comma separted list of callsigns, an array of callsigns, or **broadcast** to send to all users.
|
|
40
46
|
- **payload** - *string* - the text of the message to send.
|
|
41
47
|
|
|
42
48
|
### Sending data packages...
|
|
43
49
|
|
|
44
50
|
requires a `msg` containing the following properties
|
|
45
51
|
|
|
46
|
-
- **sendTo** - *string|array* - can either be an individual TAK callsign, an array of callsigns, or **broadcast** to send to all users, or **public** to just upload the package to the TAK server.
|
|
52
|
+
- **sendTo** - *string | array* - can either be an individual TAK callsign, an array of callsigns, or **broadcast** to send to all users, or **public** to just upload the package to the TAK server.
|
|
47
53
|
- **topic** - *string* - the overall package name - IE what you want it to be called on the TAK device (keep it short).
|
|
48
54
|
- **attachments** - *array of objects* - each object must contain at least a **filename** (string) and **content** a buffer of the file/data, for example `[{filename:"foo.kml", content: <buffer of the file>}]`
|
|
49
55
|
|
|
50
|
-
### Sending marker position...
|
|
51
|
-
|
|
52
|
-
To create or update a simple marker send a msg with the following property
|
|
53
|
-
|
|
54
|
-
- **payload** - *object* - a "standard" node-red worldmap format msg.payload containing `name, lat, lon, SIDC or cottype or aistype, (alt), (speed), (bearing), (layer), (remarks)`, where `SIDC` is the standard mil 2525C code, eg SFGPU, `cottype` is the CoT type, eg a-f-g-u, or `aistype` is the AIS ship type number, eg 80 for a tanker. The `layer` will get turned into a hashtag which can then be selected on/off in the TAK app layers control, and any `remarks` will get added to the CoT remarks field.
|
|
55
|
-
|
|
56
56
|
### Sending drawing layer...
|
|
57
57
|
|
|
58
58
|
The node will also accept drawing type messages incoming from the drawing layer of the
|
|
@@ -63,7 +63,7 @@ and convert them to CoT objects for display. To do this configure a *worldmap-in
|
|
|
63
63
|
|
|
64
64
|
To update the location of the gateway dynamically the node can accept a payload
|
|
65
65
|
|
|
66
|
-
- **payload** - *string|object* - Either an NMEA string starting `$GPGGA` (for example from a locally attached serial GPS device) - or an object containing `lat` and `lon` and optional `alt` properties (**but no name** property).
|
|
66
|
+
- **payload** - *string | object* - Either an NMEA string starting `$GPGGA` (for example from a locally attached serial GPS device) - or an object containing only `lat` and `lon` and optional `alt` properties (**but no name** property).
|
|
67
67
|
|
|
68
68
|
### Details
|
|
69
69
|
|
|
@@ -73,6 +73,7 @@ This should work almost directly with messages received from an email-in node fo
|
|
|
73
73
|
|
|
74
74
|
This node can accept input direct from a TCP request node, configured to point to the TAK server tcp address and port (usually 8087 or 8089), set to return strings, *keep connection open* mode, and split on "</event>". This can be same TCP node as used by the TAK-registration node above.
|
|
75
75
|
|
|
76
|
-
It will produce a well formatted JSON object containing the event.
|
|
76
|
+
It will produce a well formatted JSON object containing the event. It is returned as **msg.payload.event**
|
|
77
77
|
|
|
78
|
-
It can also accept input from a UDP node configured to listen to *multicast* on address 239.2.3.1. port 6969. The JSON object produced contain similar information but formatted/organised differently.
|
|
78
|
+
It can also accept input from a UDP node configured to listen to *multicast* on address 239.2.3.1. port 6969. The JSON object produced contain similar information but formatted/organised differently.
|
|
79
|
+
It is returned as **msg.payload.cotEvent**
|
package/package.json
CHANGED