Restart Signalk when can01 is "lost"
Is it possible to trigger an restart of the signalk service when a connection is lost? i.e. no data is recieved as in the screenshot? The reason being is that after the can01 is lost, the derived-data plugin continues to calculate incorrect values, based on latest measurments from the can01 (along with other gps data?). See screenshot for forther details. Restart the service will stop the derived-data from computing.
Thanks!
![No description](https://cdn.answeroverflow.com/1240724038775476224/image.png)
10 Replies
![No description](https://cdn.answeroverflow.com/1240724152139120741/image.png)
![No description](https://cdn.answeroverflow.com/1240724306388979792/image.png)
![No description](https://cdn.answeroverflow.com/1240724592876847124/image.png)
if I were you i would create a node-RED flow that will send a
null
value to those paths if there is no new data for themah that sounds smart, will test if i can create such a flow
how would i fetch the latest timestamp for a path in node red? the subscribe only seems to work on "active" paths
You are not thinking node-red here
Google and u shall receive
https://cookbook.nodered.org/basic/trigger-timeout
ah many thanks, still quite new to node-red so not sure what to search for just yet
i think it should work now, will try tomorrow when im at the boat 🙂
@Scott Bender I think there was code in place that detected can0 to go mute and then 'reconnect'?
Yes
But that won’t fix this issue
Derived data should probably be fixed…
Server implementing timeouts, nulling values, would also solve this