This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RPI, OpenCPN and buzzer
#11
Is there an actual NMEA string for an AIS event that should generate an alarm? If not, this might be more difficult than I thought.
Reply
#12
yes abarrow its !AIVDM

http://www.bosunsmate.org/ais/#nmea

seems like a lot of work for something that opencpn already does.

   
Reply
#13
Yes, but I think he wants to have some sort of remote buzzer. I guess you could just remote the speaker and play the alert sounds that OpenCPN generates.
Reply
#14
I only wanted Opencpn to switch on a GPIO pin instead of opening a wav file.
It seems to be more difficult than I thought.
I'm going to abort...
Reply
#15
Don't bury your head in the sand. It can be done with the help of node-red.
Connect node-red to signalK and watch for the ais alert. Use the gpio node and trigger your your favourite pin. Hook the pin up to an relay, mosfet, optocoupler, whatever and connect it to your signal-horn.
Get blown away when the alarm triggers Big Grin
Reply
#16
Thank you. I'll try to do that.
...but I'm a noob, and not sure to succeed
Reply
#17
(2018-03-16, 02:06 PM)shark24 Wrote: Connect node-red to signalK and watch for the ais alert.

Does such a thing exist?

Sent from my SGP511 using Tapatalk
Reply
#18
Tbh I don't know. It was a wild guess... Because Jim said there was a NMEA sentence I assumed SignalK could handle it too.
I'm currently not at home and just running a pi zero here so I can't test.
Reply
#19
(2018-03-17, 11:07 AM)shark24 Wrote: Tbh I don't know. It was a wild guess... Because Jim said there was a NMEA sentence I assumed SignalK could handle it too.
I'm currently not at home and just running a pi zero here so I can't test.

Not sure there's any ais 'Alarm' messages , they'd be local events anyway to the program?
Reply
#20
I thought OpenCPN could trigger this 'alarm'. Douz wrote about 'AIS Alarm' so I assumed there is some sort of alarm.

What about the geofence node ( https://www.npmjs.com/package/node-red-node-geofence ). Haven't looked into it but this might be an option to check if an AIS target is in your 'alarm' area.

I guess you can calculate the CPA with node-red but it's not that simple Smile
https://sci-hub.tw/https://doi.org/10.10...3316000229
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)