chriscareycode / nagiostv-react

Monitor your Nagios server on a wall mounted TV (or a phone or desktop). Installation instructions are below in the README.md
https://nagiostv.com
GNU General Public License v2.0
69 stars 13 forks source link

Sounds #4

Closed presleyd closed 5 years ago

presleyd commented 5 years ago

We're big fans here. Thanks for all your work! We'd like to request a feature and I'd be happy to sponsor it if it's not too crazy to do. Could we have an option to play a ding or noise on a new item being added? We made a custom JS to do this using mutationobservers scanning for objects with the 'border-red' or 'border-yellow' classes being added to the dom and playing a wav file for each one. Our TV sits behind our tech bench and they love having the audio alerts. It works fine for our purposes but it's a clugey way to do it. Would you consider adding something similar?

chriscareycode commented 5 years ago

Thanks Christian! I love the idea, this sounds like a lot of fun. Hopefully can whip something up this weekend.

I'd like to have the ability to have one sound for WARNING, one for CRITICAL, one for UP/OK. But also to have the ability to support multiple sounds for each one, where NagiosTV will pick a random sound from each list to keep things fresh and unpredictable.

chriscareycode commented 5 years ago

@presleyd Here you go! https://github.com/chriscareycode/nagiostv-react/releases/tag/v0.3.3

presleyd commented 5 years ago

This is awesome! Thanks so much? Do you have a link or place to contribute?

chriscareycode commented 5 years ago

That's a kind gesture, but not necessary. Nagios doesn't charge us, at least for their open source offering, so this is my small part in paying it forward.

chriscareycode commented 5 years ago

I have a small update ready that will allow multiple sounds for each state that will be chosen at random. It's pretty simple config where you just put a semicolon between the multiple sound URLs to enable it. This feature will drop in 0.3.4