OPNsense Forum

English Forums => 25.7 Series => Topic started by: fctr on August 22, 2025, 09:19:54 AM

Title: Startup and Stop beeps
Post by: fctr on August 22, 2025, 09:19:54 AM
Attached, I've created the Pac-man, Ms. Pac-man, AC/DC's Thunderstruck, and Super Mario Bros. Victory tunes.

Drop 'em in the /usr/local/etc/opnsense-beep.d directory and, if you're like me, you can rename the start and stop beep tunes to these to have OPNSense play a nifty tune instead of the usual ones.
Title: Re: Startup and Stop beeps
Post by: sopex8260 on August 22, 2025, 09:33:58 AM
Make a simple plugin
Title: Re: Startup and Stop beeps
Post by: fctr on August 22, 2025, 04:21:31 PM
That is entirely too much work for me to take on right now, but I'll keep it in mind for the future.
Title: Re: Startup and Stop beeps
Post by: sopex8260 on August 22, 2025, 05:24:17 PM
Quote from: fctr on August 22, 2025, 04:21:31 PMThat is entirely too much work for me to take on right now, but I'll keep it in mind for the future.

Would you mind if I did it?
Title: Re: Startup and Stop beeps
Post by: fctr on August 23, 2025, 06:13:18 AM
Mind? I would LOVE if you did it! As a token of my appreciation, here's a bunch more I made.
Title: Re: Startup and Stop beeps
Post by: fctr on August 23, 2025, 06:13:58 AM
And a few more
Title: Re: Startup and Stop beeps
Post by: fctr on August 23, 2025, 06:14:44 AM
And finally, my favorite...I'm such a nerd...
Title: Re: Startup and Stop beeps
Post by: fctr on August 23, 2025, 06:22:46 AM
Who says technology has to be boring? And I'll leave y'alls with a little anecdote:

A good friend of mine's father was a repairman for hospital equipment and traveled all over the world fixing specialty equipment no one else would touch. He got a call that this one particular ultrasonic wave maker (for breaking up kidney stones and such) was randomly making weird noises. Every time he went to look at it, it was working fine. He spent DAYS sitting with the machine, trying to get it to make "weird noises", but nothing. After 2 weeks of sitting with the machine from 9am to 9pm, he decided he was going to sleep next to the d*mn machine and catch it in the act. After 14 hours of continuous non-use (wouldn't you know it?) it actually misbehaved! The programmers of the machine (who were from the Netherlands) thought it would be HYSTERICAL to have the machine "hum out" the Netherlands' national anthem after 14 hours of not being in use. Not a bug, but a feature. No way to disable it.
Title: Re: Startup and Stop beeps
Post by: sopex8260 on August 23, 2025, 07:16:28 AM
Quote from: fctr on August 23, 2025, 06:22:46 AMWho says technology has to be boring? And I'll leave y'alls with a little anecdote:

A good friend of mine's father was a repairman for hospital equipment and traveled all over the world fixing specialty equipment no one else would touch. He got a call that this one particular ultrasonic wave maker (for breaking up kidney stones and such) was randomly making weird noises. Every time he went to look at it, it was working fine. He spent DAYS sitting with the machine, trying to get it to make "weird noises", but nothing. After 2 weeks of sitting with the machine from 9am to 9pm, he decided he was going to sleep next to the d*mn machine and catch it in the act. After 14 hours of continuous non-use (wouldn't you know it?) it actually misbehaved! The programmers of the machine (who were from the Netherlands) thought it would be HYSTERICAL to have the machine "hum out" the Netherlands' national anthem after 14 hours of not being in use. Not a bug, but a feature. No way to disable it.

Haha, cool story. Probably something like that should happen with opnsense too.
Title: Re: Startup and Stop beeps
Post by: tofflock on August 23, 2025, 11:43:50 PM
Quote from: fctr on August 22, 2025, 09:19:54 AMAttached, I've created the Pac-man, Ms. Pac-man, AC/DC's Thunderstruck, and Super Mario Bros. Victory tunes.

Drop 'em in the /usr/local/etc/opnsense-beep.d directory and, if you're like me, you can rename the start and stop beep tunes to these to have OPNSense play a nifty tune instead of the usual ones.

I've taken the liberty of putting all your fun beeps into a single tar archive to make it easier to sample all your work.
Many thanks for publishing these, I've changed my "start" beep already.

PeterF
Title: Re: Startup and Stop beeps
Post by: franco on August 25, 2025, 10:04:43 AM
> Make a simple plugin

Someone: provides a plugin

Everyone: can you add 1000 configuration options and a cron schedule for it?


:)

Nice work, BTW, thanks!
Title: Re: Startup and Stop beeps
Post by: sopex8260 on August 25, 2025, 10:26:47 AM
Quote from: franco on August 25, 2025, 10:04:43 AM> Make a simple plugin

Someone: provides a plugin

Everyone: can you add 1000 configuration options and a cron schedule for it?


:)

Nice work, BTW, thanks!

I am very good at saying NO!
Title: Re: Startup and Stop beeps
Post by: fctr on August 26, 2025, 08:23:24 AM
And here's a few more for y'alls! This is fun!
Title: Re: Startup and Stop beeps
Post by: fctr on August 26, 2025, 08:24:06 AM
And a few more.
Title: Re: Startup and Stop beeps
Post by: fctr on August 26, 2025, 08:26:01 AM
I just KNOW I'm going to regret asking this, BUT, any requests?

Keep in mind we're dealing with a single note speaker. Most songs and stuff won't sound good on a single note speaker without serious work, and unless I'm a huge fan of the song, I probably won't bother with it.
Title: Re: Startup and Stop beeps
Post by: Netlearn on August 27, 2025, 12:15:35 AM
This idea deserves not only a plugin, but also a pull request!!!

;-)
Title: Re: Startup and Stop beeps
Post by: fctr on August 27, 2025, 02:14:29 AM
I LOVE that y'alls love the custom beeps, but for most people (at least my clients), the OPNSense hardware resides deep inside a closet, or a basement, or some other non-populated room. I made custom beeps for my own amusement. Do you think a pull request for custom beeps is really worth the developer's time?
Title: Re: Startup and Stop beeps
Post by: Netlearn on August 27, 2025, 02:36:12 AM
It was half (or less...) a joke, but a PR as a plugin could probably be taken into account, if it satisfies the plugin requirements and structure (https://docs.opnsense.org/development/examples/helloworld.html#create-an-installable-plugin) and here (https://docs.opnsense.org/development/backend/legacy.html) too.

I think it should have a button to play the selected item, as rebooting the machine is rarely done. It would just call the "beep" script, I suppose.

I can't code, but would have already built it for my own use, at least.
Title: Re: Startup and Stop beeps
Post by: fctr on August 27, 2025, 02:37:31 AM
Quote from: Netlearn on August 27, 2025, 02:36:12 AMIt was half (or less...) a joke, but a PR as a plugin could probably be taken into account, if it satisfies the plugin requirements and structure (https://docs.opnsense.org/development/examples/helloworld.html#create-an-installable-plugin) and here (https://docs.opnsense.org/development/backend/legacy.html) too.

I think it should have a button to play the selected item, as rebooting the machine is rarely done. It would just call the "beep" script, I suppose.

I can't code, but would have already built it for my own use, at least.

If I had the spare time, I would have most definitely written a plug-in for this. I love customizing audio stuff. Maybe down the road...