FreeboardSK Alarms?

What should happen when you click "RAISE ALARM"?
17 Replies
AdrianP
AdrianP3mo ago
It raises a SignalK notification for the specific alarm type.
Владимир Калачихин
Nothing happens. How to check?
AdrianP
AdrianP3mo ago
You should see the alarm on screen. You need to ensure alarms are enabled in the Freeboard-SK plugin
AdrianP
AdrianP3mo ago
No description
No description
Владимир Калачихин
Yes, "Standard Alarms" is enabled. But nothing happens. If I raise MOB alarm from GaladrielMapSK, then FreeboardSK react. It howls nastily and shows the message. But I don't stop alarm from FreeboardSK.
AdrianP
AdrianP3mo ago
Check the console to see if the request is being rejected due to authentication issue
Владимир Калачихин
FreeboardSK start:
@signalk/freeboard-sk Freeboard-SK starting....... +0ms
@signalk/freeboard-sk Applied config: {"alarms":{"enable":true},"weather":{"enable":false,"apiKey":"","service":"openweather","pollInterval":60},"pypilot":{"enable":false,"host":"localhost","port":8000}} +2ms
@signalk/freeboard-sk ** initAlarms() ** +0ms
@signalk/freeboard-sk ** Registering Alarm Action Handler(s) ** +0ms
@signalk/freeboard-sk ** Registering mob Handler ** +0ms
@signalk/freeboard-sk ** Registering fire Handler ** +1ms
@signalk/freeboard-sk ** Registering sinking Handler ** +0ms
@signalk/freeboard-sk ** Registering flooding Handler ** +0ms
@signalk/freeboard-sk ** Registering collision Handler ** +1ms
@signalk/freeboard-sk ** Registering grounding Handler ** +0ms
@signalk/freeboard-sk ** Registering listing Handler ** +0ms
@signalk/freeboard-sk ** Registering adrift Handler ** +0ms
@signalk/freeboard-sk ** Registering piracy Handler ** +0ms
@signalk/freeboard-sk ** Registering abandon Handler ** +0ms
@signalk/freeboard-sk ** Registering Alarm Action API endpoint(s) ** +1ms
@signalk/freeboard-sk Initialising Freeboard-SK plugin endpoints....... +0ms
@signalk/freeboard-sk Freeboard-SK starting....... +0ms
@signalk/freeboard-sk Applied config: {"alarms":{"enable":true},"weather":{"enable":false,"apiKey":"","service":"openweather","pollInterval":60},"pypilot":{"enable":false,"host":"localhost","port":8000}} +2ms
@signalk/freeboard-sk ** initAlarms() ** +0ms
@signalk/freeboard-sk ** Registering Alarm Action Handler(s) ** +0ms
@signalk/freeboard-sk ** Registering mob Handler ** +0ms
@signalk/freeboard-sk ** Registering fire Handler ** +1ms
@signalk/freeboard-sk ** Registering sinking Handler ** +0ms
@signalk/freeboard-sk ** Registering flooding Handler ** +0ms
@signalk/freeboard-sk ** Registering collision Handler ** +1ms
@signalk/freeboard-sk ** Registering grounding Handler ** +0ms
@signalk/freeboard-sk ** Registering listing Handler ** +0ms
@signalk/freeboard-sk ** Registering adrift Handler ** +0ms
@signalk/freeboard-sk ** Registering piracy Handler ** +0ms
@signalk/freeboard-sk ** Registering abandon Handler ** +0ms
@signalk/freeboard-sk ** Registering Alarm Action API endpoint(s) ** +1ms
@signalk/freeboard-sk Initialising Freeboard-SK plugin endpoints....... +0ms
But nothing happens at all when clicking on "RAISE ALARM".
AdrianP
AdrianP3mo ago
You should be seeing more debug than that... Next line should be the loaded configuration. Looks like the plugin is not starting correctly. Ignore my last message... The rest of your post just came through. Looks like the plugin is starting. What happens if you post to /signalk/v2/api/notifications/mob
Владимир Калачихин
" It howls nastily and shows the message", but is nothing in the log.
AdrianP
AdrianP3mo ago
The debug log? It clearly working.
Владимир Калачихин
Ok. How to "raises a SignalK notification for the specific alarm type"?
AdrianP
AdrianP3mo ago
signalk/v2/api/notifications/{alarmtype}..... but alarm must be one of the alarms defined in the SK spec... 'mob', 'fire', 'sinking', 'flooding', 'collision', 'grounding', 'listing', 'adrift', 'piracy', 'abandon'
Владимир Калачихин
But not by click "RAISE ALARM"?
AdrianP
AdrianP3mo ago
Do you see a request sent to the server in browser devtools?
No description
AdrianP
AdrianP3mo ago
Try sending PUT request to /signalk/v1/api/vessels/self/notifications/mob
AdrianP
AdrianP3mo ago
You should see something like this in the logs.
No description
Владимир Калачихин
Heh. Error raising alarm: mob
{
"headers": {
"normalizedNames": {},
"lazyUpdate": null
},
"status": 400,
"statusText": "Bad Request",
"url": "http://localhost:3000/signalk/v1/api/vessels/self/notifications/mob",
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for http://localhost:3000/signalk/v1/api/vessels/self/notifications/mob: 400 Bad Request",
"error": {
"state": "COMPLETED",
"requestId": "bd123b2b-8f41-4c50-a2d2-3aecdd373174",
"statusCode": 400,
"message": "there are multiple sources for the given path, but no source was specified in the request",
"href": "/signalk/v1/requests/bd123b2b-8f41-4c50-a2d2-3aecdd373174"
}
}
{
"headers": {
"normalizedNames": {},
"lazyUpdate": null
},
"status": 400,
"statusText": "Bad Request",
"url": "http://localhost:3000/signalk/v1/api/vessels/self/notifications/mob",
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for http://localhost:3000/signalk/v1/api/vessels/self/notifications/mob: 400 Bad Request",
"error": {
"state": "COMPLETED",
"requestId": "bd123b2b-8f41-4c50-a2d2-3aecdd373174",
"statusCode": 400,
"message": "there are multiple sources for the given path, but no source was specified in the request",
"href": "/signalk/v1/requests/bd123b2b-8f41-4c50-a2d2-3aecdd373174"
}
}
Want results from more Discord servers?
Add your server
More Posts