Closed fabdrol closed 4 years ago
@sbender9 any thoughts?
I think this won't work if the values are in defaults.json, which was the initial intention.
Should be able to make it work both ways. Get them at startup and subscribe to them incase they change?
Sounds good, I'll edit
Edit: done. @sbender9 please review when convenient. I can test this on-board on Thursday
This problem is actually quite annoying on the boat, tbh. I now have to deactivate and reactivate the derived-data plugin every time I restart the server
Thanks @tkurki . Needs version bump and push to npm (@sbender)?
Published as v1.24.4
This bug fix intends to fix issue https://github.com/SignalK/signalk-derived-data/issues/49
The change calculates
depth.belowKeel
using the current value fordepth.transducerToKeel
, rather than that value at server start-up. There are various cases where this value is not present at that time or changes later in time:depth.transducerToKeel
source is not the server config, but a "live" source