Volume Monitor

53 views
Skip to first unread message

John Chowanec

unread,
May 10, 2016, 12:04:05 PM5/10/16
to sonospy-devel
With the help of Mark, I've got something new that I would love to get some feedback on.  Right now it is only for Windows users (from the GUI perspective).

I added a Volume Monitor since I have a bunch of outdoor zones that need to be checked on -- as to not create problems with my neighbors.  When Sonos notices a change in volume past a threshold, it will force the volume to limit itself AT that threshold.

There's options for quiet hours and mute hours as well, so, for instance, if you want to drop the volume to 25% after 10:00PM (22:00), it will do that if you a) change the volume after 10PM > 25% or b) a new track plays.  It needs an event to trigger, so it will trigger based on one of those two.

Same thing for mute hours.  If you want to silence the zone between the hours of x and y, it should support that.

You can limit volume, enable quiet and/or enable mute... they don't depend on each other.  All times are in military format for the INI files or in the GUI.

If you are running from the command line in the sonospy/sonospy folder:

Windows: pythonw event.py
Linux: python event.py

If you are running from the GUI:

Double click the sonospyGUI.py file and run the GUI.
Click on the volume monitor tab
You will see a bunch of checkboxes that say "run the monitor once and restart"
Click "Enable Monitor"
Click "Disable Monitor"
Close the app
Double click the sonospyGUI.py file
Click on the volume monitor tab
Configure to your heart's content.  Don't forget to press "Update Monitor" after you make changes.

Mark -- I couldn't get the GUI to access event.py, so it is using ConfigParser to pass the values back and forth between event.py and GUIpref.ini... There's likely a far more elegant way, but it works for now and didn't seem to affect speed.

All of this is in msrefactor5.

Would love to know if it is acting up on you guys -- after some light testing here it seemed to work fine.

Bartolome Soriano

unread,
May 10, 2016, 12:52:21 PM5/10/16
to sonosp...@googlegroups.com
As part of my re-testing the GUI, I will test all of this as well.  Thanks Chow!

Regards,

Bart

--
You received this message because you are subscribed to the Google Groups "Sonospy Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonospy-deve...@googlegroups.com.
To post to this group, send email to sonosp...@googlegroups.com.
Visit this group at https://groups.google.com/group/sonospy-devel.
For more options, visit https://groups.google.com/d/optout.

chow

unread,
May 12, 2016, 11:43:57 PM5/12/16
to Sonospy Development
I've made some quick changes -- namely it should scan for default zones on first run and save those out.  Please repull from MSREFACTOR5 if you did pull it originally.
Reply all
Reply to author
Forward
0 new messages