Freeboard-SK v2.8.1
Freeboard-SK v2.8.1
Contains fix for Alarms not able to be cleared.
https://github.com/SignalK/freeboard-sk/releases/tag/v2.8.1
5 Replies
It's work, but:
This doc says:
" To clear the alarm condition, send:
"
but you send
It's contrary to documentation and prevents other plugins from knowing that the alarm has cancelled.
I agree and this was the operation prior to the recent update (aligned with spec), but it has been changed based on advice re a proposed alarm clearing functionality for the server.
@Scott Bender @David Godin may be able to elaborate.
I don’t think that is necessarily contrary. “normal” is a valid state for notifications, so plugins and clients should be able to handle it.
I think it may be historical, early on you could not send null for a value. The fact of the matter is that most plugins (including all of my numerous plugins) and even n2k-mapper clear notifications by setting the state.
Also WilhelmSK and Kip.
Another important point is that when a notification is cleared there could be a new message to go along with it. “The fridge temperature is now normal” for example. WilhelmSK will show that message in phone notifications when the state goes to “normal”
@AdrianP you should probably preserve the message or use PUT to the notification state.
“normal” is a valid state for notifications, so plugins and clients should be able to handle itWhere is this documented?
Another important point is that when a notification is cleared there could be a new message to go along with itA new notification and cancel notification are two different things. My point: The doc above says: " To clear the alarm condition, send: ... "value": null". The Freeboard-SK v2.8.1 sends a not null value when performing the "cancel alarm" action. That is, it does not cancel the alarm, but sets a different state of alarm. This contradicts the available documentation. I don't know any other documentation.
GitHub
specification/schemas/definitions.json at 1978f556d8790be2b3bfdc9ff...
Signal K is a JSON-based format for storing and sharing marine data from different sources (e.g. nmea 0183, 2000, seatalk, etc) - SignalK/specification