Copprhead - How can I add a waypoint from a plu...

How can I add a waypoint from a plugin that is then immediately shown in Freeboard?
7 Replies
AdrianP
AdrianP7mo ago
Server API - Signal K Server Documentation
A Guide for users and developers.
Copprhead
Copprhead7mo ago
Good. Will Freeboard pick up that new waypoint by itself or does it need some kind of notification?
AdrianP
AdrianP7mo ago
At present Freeboard will update the resource list in response to resource notifications...but if the notification contains a new resource (unknown to Freeboard), it will not be automatically selected for display on the map. In v2.6.0 these new resources are automatically displayed on the map.
Copprhead
Copprhead7mo ago
That's good. Maybe some background: I'm evaluating the possibility of developing a plugin that displays the location of DSC callers. For that I would have to decode the corresponding PGN from the VHF (afaik not yet implemented) and create a waypoint, which should be displayed immediately (if possible even the zoom should be changed so that the waypoint is shown, and maybe make it flash or something). The other use case would be for a MOB button. If pressed, the location should be shown on the chart.
AdrianP
AdrianP7mo ago
MOB function is already there, either by using the FB UI or via API call PUT /signal/v2/api/notifications/mob. Alarm will appear on map at location the alarm was raised. Use DELETE request to the same endpoint to clear the alarm. Would a DSC call not just be a type of notification?
Copprhead
Copprhead7mo ago
I guess you could classify that as a notification (e.g. incoming call request), if notifications can have a position (as you just pointed out). On the other hand it could also be classified as a vessel position (e.g. DSC position polling response or notification) - that's what made me think "waypoint". And it could be an alarm (DSC distress). I've just read a bit in the spec and don't see the full picture yet I think. But I think this needs some clarification before I start developing.
AdrianP
AdrianP7mo ago
Notifications can have a position. In FB raise an MOB alarm and look in the data browser. You will see how the position is recorded and is used to display on the map.
Want results from more Discord servers?
Add your server