Copprhead - Meta -> Timeout: If I set a timeout...

Meta -> Timeout: If I set a timeout value in a path's metadata, will the path's value be set to null if there is no update within <timeout> seconds?
5 Replies
Scott Bender
Scott Bender3mo ago
no currently that is information for the client it is debatable but for example, I use that in WilhelmSK to show the user that the data is old I still get to show the user last value which in some cases might be usefull?
Copprhead
CopprheadOP3mo ago
That's a good way to use it. If the server would discard the value after the timeout, none of the clients would need any data expiration logic. It would be set/handled in a central place. I'm asking because KIP has its own TTL/expiration mechanism... so two places with TTL/expiration settings. Are there any defaults for certain paths? Or does the user have to set the timeouts manually?
Teppo Kurki
Teppo Kurki3mo ago
I have a WIP, stalled PR for implementing serverside timeout https://github.com/SignalK/signalk-server/pull/1812
Teppo Kurki
Teppo Kurki3mo ago
no defaults. something we could/should add, with ability to edit the values in Admin UI
Владимир Калачихин
The GaladrielMap SK has user defined timeouts as you wish.

Did you find this page helpful?