signalk-polar-performance-plugin 0.0.44 → 0.0.45
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 +1 -1
- package/plugin/index.js +9 -7
package/package.json
CHANGED
package/plugin/index.js
CHANGED
|
@@ -260,17 +260,19 @@ module.exports = function (app) {
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
app.debug('sendUpdates: %s', JSON.stringify(values))
|
|
263
|
-
|
|
263
|
+
if (firstUpdate) {
|
|
264
|
+
app.handleMessage(plugin.id, { updates: [
|
|
264
265
|
{
|
|
265
|
-
|
|
266
|
+
meta: metas,
|
|
266
267
|
}
|
|
267
|
-
]}
|
|
268
|
-
if (firstUpdate) {
|
|
269
|
-
updates.updates[0].metas = metas
|
|
268
|
+
]})
|
|
270
269
|
firstUpdate = false
|
|
271
270
|
}
|
|
272
|
-
app.handleMessage(plugin.id, updates
|
|
273
|
-
|
|
271
|
+
app.handleMessage(plugin.id, { updates: [
|
|
272
|
+
{
|
|
273
|
+
values: values,
|
|
274
|
+
}
|
|
275
|
+
]})
|
|
274
276
|
|
|
275
277
|
function getPerformanceData (TWS, TWA, BSP) {
|
|
276
278
|
var performance = {}
|