wellenvogel / avnav

using the raspberry pi as a nav computer
MIT License
85 stars 26 forks source link

AIS Alarm #82

Open kdschmidt1 opened 3 years ago

kdschmidt1 commented 3 years ago

i'm not able to get an AIS Alarm (assuming it should be activated as soon as the AIS Target is changing color to red). i have inserted "Alarm command="sound" name="ais" parameter="$BASEDIR/../sounds/aisAlarm.mp3" repeat="1"" in the AlarmHandler section of avnav-server.xml but no sound and no alarm message on screen. other alarms like mob or wp are working ok.

wellenvogel commented 3 years ago

Currently there is no chance for an AIS alarm. All the ais computation is done on the client (Browser) - but the alarms need to be handled at the server (just consider that you potentially will not have any client active). So it would require to re-implement this computation at the server side.

kdschmidt1 commented 3 years ago

Using the signalk plugin one could use the signalk-derived-data app to activate a notification for configurable closest approach. i was able to catch the notification in the plugin, but i have no idea how to initiate the alarm out of the plugin. any idea?

wellenvogel commented 3 years ago

Not possible (yet).

wellenvogel commented 2 years ago

The next release will have an integration with the signalk notifications. So you can display and handle SignalK notifications in AvNav. Current dailies already contain this function.

Fietsenwiel commented 2 years ago

@kdschmidt1, can you share the way you calculate the closed approach with the signalk-derived-data app? This is a very welcome feature!

Thanks in advance

kdschmidt1 commented 2 years ago

In the Plugin-Config for the Derived-Data-Plugin you have to activate under "Traffic" the Dangerous targets notification zone (CPA limit / TCPA limit => Notification level) with the "+"button and then edit the CPA and TCPA limit, select the Notification level and by checking the "Send notification for this zone" you will receive notifications from SignalK