@meri-imperiumi/signalk-aprs 0.2.0 → 0.2.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 +3 -0
- package/package.json +1 -1
- package/plugin/index.js +9 -3
package/README.md
CHANGED
|
@@ -30,6 +30,9 @@ Very early stages, being tested with the [LoRa APRS iGate](https://github.com/ri
|
|
|
30
30
|
|
|
31
31
|
## Changes
|
|
32
32
|
|
|
33
|
+
* 0.2.1 (2026-01-20)
|
|
34
|
+
- Create separate context for each SSID of same callsign
|
|
35
|
+
- Handle malformatted timestamps coming from beacons
|
|
33
36
|
* 0.2.0 (2025-11-15)
|
|
34
37
|
- Using the new [dedicated APSIGK tocall](https://github.com/aprsorg/aprs-deviceid/issues/244)
|
|
35
38
|
* 0.1.1 (2025-10-29)
|
package/package.json
CHANGED
package/plugin/index.js
CHANGED
|
@@ -103,7 +103,7 @@ module.exports = (app) => {
|
|
|
103
103
|
values.push({
|
|
104
104
|
path: '',
|
|
105
105
|
value: {
|
|
106
|
-
name: data.source.callsign
|
|
106
|
+
name: `${data.source.callsign}-${data.source.ssid}`,
|
|
107
107
|
},
|
|
108
108
|
});
|
|
109
109
|
values.push({
|
|
@@ -123,15 +123,21 @@ module.exports = (app) => {
|
|
|
123
123
|
value: data.comment || '',
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
+
let ts = new Date(data.position.timestamp);
|
|
127
|
+
if (Number.isNaN(ts.getTime())) {
|
|
128
|
+
app.debug(`Invalid timestamp ${data.position.timestamp}`);
|
|
129
|
+
ts = new Date();
|
|
130
|
+
}
|
|
131
|
+
|
|
126
132
|
app.handleMessage('signalk-aprs', {
|
|
127
|
-
context: `meteo.${data.source.callsign}`,
|
|
133
|
+
context: `meteo.${data.source.callsign}-${data.source.ssid}`,
|
|
128
134
|
updates: [
|
|
129
135
|
{
|
|
130
136
|
source: {
|
|
131
137
|
label: 'signalk-aprs',
|
|
132
138
|
src: formatAddress(data.source),
|
|
133
139
|
},
|
|
134
|
-
timestamp:
|
|
140
|
+
timestamp: ts.toISOString(),
|
|
135
141
|
values,
|
|
136
142
|
},
|
|
137
143
|
],
|