News for hackers. Stuff that matters.
Re:A Python script that will Slack a room if a Sonos speaker... by mulmen on Friday September 27, 2024 @04:43PM (#41675347)
Why would I want to know that?
Re:A Python script that will Slack a room if a Sonos speaker... by shakna on Friday September 27, 2024 @04:58PM (#41675452)
To answer the question, "Wait, why did my computer just do that!?", that pops up every time it does something unexpected.
Re:A Python script that will Slack a room if a Sonos speaker... by mulmen on Friday September 27, 2024 @05:09PM (#41675558)
A Sonos speaker isn’t my computer though. This program only does one thing. Turn down Sonos speakers. Why would I want to know that worked?

Notifications should be actionable.

“The Sonos speaker is too loud” is a sort-of helpful message. I can infer the action.

Better is “the Sonos speaker is too loud, you should turn it down”.

Even better is “the Sonos speaker is too loud, click here to go to the volume settings”.

And better yet is “the Sonos speaker is too loud, should I turn it down?”

But best is the program just doing it and shutting up about it.

And best of all is just setting the volume limit on the speaker: https://support.sonos.com/en-us/article/setting-a-volume-lim....

Re:A Python script that will Slack a room if a Sonos speaker... by csallen on Friday September 27, 2024 @05:34PM (#41675775)
Agree that setting a volume limit on the speaker is the best solution. It gives the person operating the speaker immediate feedback: "It doesn't get any louder than this."

A program that turns the volume down once a speaker gets too loud is, functionally, the same thing? Assuming the feedback is instant, i.e. it instantly decreases the volume.

If there's a delay, however, I can see how a notification might be helpful, if only to alert people, "Hey, this isn't just magically getting quieter. There's a program we've set up that does it."

Re:A Python script that will Slack a room if a Sonos speaker... by mulmen on Friday September 27, 2024 @05:42PM (#41675840)
With API latency there’s a zero percent chance this program responds instantly. According to the README it polls the volume setting every CHECK_INTERVAL seconds. It’s not like this program hooks the volume input event and blocks anything over the max, which is what the actual Sonos setting does.

What would be cool is an ambient noise sensor that can turn down the music if a room gets too loud, say from people talking over the music.

Re:A Python script that will Slack a room if a Sonos speaker... by shakna on Friday September 27, 2024 @06:37PM (#41676210)
You want to know, because someone in management has decided its a problem, and are intentionally taking choice away from you. It isn't meant to be actionable, but a slap on the wrist.
Re:A Python script that will Slack a room if a Sonos speaker... by mulmen on Friday September 27, 2024 @09:37PM (#41677194)
I have never experienced this. Notification fatigue is always engineering’s fault.

I have faced my share of micromanagers but nobody has ever told me how to set my notifications.

Re:A Python script that will Slack a room if a Sonos speaker... by paxys on Friday September 27, 2024 @05:38PM (#41675810)
You may not. Doesn't mean the same preference applies to everyone else in the world.
Re:A Python script that will Slack a room if a Sonos speaker... by mulmen on Saturday September 28, 2024 @01:09AM (#41678043)
How many notifications is too many? Do you want kernel interrupt notifications? At what point do you just let the computer help you?
Re:A Python script that will Slack a room if a Sonos speaker... by paxys on Saturday September 28, 2024 @08:16AM (#41679765)
Read my above comment again. 0 can be too many or a million can be too less. What's the problem with choice?