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
Need help debugging OpenPlotter crashes
#11
working on it, stay tuned.
Reply
#12
@Sailoog - perhaps worth moving the rest of the convo to github, but I took a brief look at the notifications app and I would be happy to try to work on a pull request if thats ok with you
Reply
#13
Really appreciate that but I am working on a solution that I am already testing. I will need your help to test and debug.
Reply
#14
Ah fantastic - glad I asked Big Grin 

Will keep an eye out on this thread, and will also pm you my email for when you are ready for testing
Reply
#15
Done, test please.

- Uninstall the current openplotter-notifications app

- Download this beta version.

- Install with:

Code:
sudo dpkg -i openplotter-notifications_4.2.4-beta_all.deb

- Open the app to perform post-installations actions:

Code:
openplotter-notifications

- Reboot and test.

You should see a visual notification per Signal k path at first. Each window will show the first time the notification was detected and will update every 2 seconds. If you close the window it will not open again. Obviously these initial windows are annoying, so we should ask the Signal K team if they have plans to remove visual methods for normal and nominal notifications. If not, we can still find a solution. tkurki?

   

This new logic will work for both scenarios, multiple and single notifications for the same state. It should also work for "sound" method.

This change will also impact "Actions", but it is not yet ported, so do not play with Actions or you will get unexpected results.

Thanks
Reply
#16
Hi Sailoog -

Just tested and behaviour is as you described. When engine turns on, I get a bunch of notifications that come up and the pi briefly goes to 100% CPU, but then continues as normal. Once I close the notifications they no longer re-appear.

Seems to have fixed the issue

Thanks
Reply
#17
Thanks!!

More testers are welcome.

I will work on implementing the new logic in Actions while we wait for news from Signal K.

@tkurki, Should I open an issue in github to discuss this? SK server or signalk-to-nmea2000 plugin?
Reply
#18
New beta (release candidate) to download.

- Ready for mass visual and sound notifications.
- Actions is also adapted to the new logic.
- I thought other providers might also have the bad idea of sending normal and nominal mass notifications using visual or sound methods, so I added an "ignore" field to all states:

   

   


Install with:

Code:
sudo dpkg -i openplotter-notifications_4.2.9-beta_all.deb

Open the app to perform post-installations actions:

Code:
openplotter-notifications

Reboot and test please.
Reply
#19
The visual method for normal state is removed in v3.1.1 of https://www.npmjs.com/package/@signalk/n2k-signalk. As I understand this should fix the issue.

Just a note that this is actually not very new, the mapping from N2K 127489 to Signal K has been like this since 2018.

Since NMEA 2000 has no concept of "state" a device on the bus can just send periodically the same normal/alarm state. PGN 127489 has 2x16 individual alarms that can be on or off, so the simplest strategy for mapping to Signal K is that they are mapped to normal and alarm states.

This way also a UI can know that the notification state is still valid - if there were no subsequent updates you could not tell if the state is still as it should be and the communication path from the device to the UI is still working.

I am surprised that this has not come up earlier.
Reply
#20
I have to say how impressed I am by the community response. I have just seen these updates and will install and test in the next few days.
Thanks so much guys.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)