diff --git a/index.js b/index.js index 9428385..5bc9b25 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,7 @@ module.exports = function (app) { let opts = null; const timers = new Set(); - const sk = (path, value) => ({ path: `electrical.batteries.${opts.batteryId}.${path}`, value }); + const sk = (path, value) => ({ path: `meb.battery.${opts.batteryId}.${path}`, value }); const sendDelta = values => values && values.length && app.handleMessage(plugin.id, { updates: [{ values }] }); const safe = async (label, fn) => { @@ -47,7 +47,7 @@ module.exports = function (app) { sendDelta([ sk('voltage', s.total_voltage), sk('current', s.current), // SignalK: + = uscita (scarica), come Daly - sk('capacity.stateOfCharge', s.soc_percent / 100) + sk('soc', s.soc_percent / 100) ]); }