Variable for volume of announcement

Posted on
Thu Dec 22, 2016 8:09 pm
rapamatic offline
Posts: 276
Joined: Aug 03, 2015
Location: Glencoe, IL

Variable for volume of announcement

I want to have different volumes for sonos announcements (quieter at night when the kids are sleeping). I tried using the standard indigo variable code

Code: Select all
%%v:1807478330%%


but that didn't work, and looking at the logs it looks like its literally interpreting that code snippet, not replacing it with the value of the variable...
Attachments
Screen Shot 2016-12-22 at 8.08.30 PM.png
Screen Shot 2016-12-22 at 8.08.30 PM.png (39.58 KiB) Viewed 3318 times

Posted on
Fri Dec 23, 2016 1:00 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Variable for volume of announcement

You will have this in the next release.

rapamatic wrote:
I want to have different volumes for sonos announcements (quieter at night when the kids are sleeping). I tried using the standard indigo variable code

Code: Select all
%%v:1807478330%%


but that didn't work, and looking at the logs it looks like its literally interpreting that code snippet, not replacing it with the value of the variable...

Posted on
Fri Dec 23, 2016 2:58 pm
rapamatic offline
Posts: 276
Joined: Aug 03, 2015
Location: Glencoe, IL

Re: Variable for volume of announcement

Awesome. Thanks Nick.


Sent from my iPhone using Tapatalk

Posted on
Fri Dec 23, 2016 5:30 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Variable for volume of announcement

Just posted something that should help. You will need to be on Indigo v7.

Download here: http://vulture.lagaros.com:8000/wordpress/home/sonos/

rapamatic wrote:
Awesome. Thanks Nick.


Sent from my iPhone using Tapatalk

Posted on
Fri Dec 23, 2016 8:39 pm
rapamatic offline
Posts: 276
Joined: Aug 03, 2015
Location: Glencoe, IL

Re: Variable for volume of announcement

nlagaros wrote:
Just posted something that should help. You will need to be on Indigo v7.

Download here: http://vulture.lagaros.com:8000/wordpress/home/sonos/

rapamatic wrote:
Awesome. Thanks Nick.


Sent from my iPhone using Tapatalk


Nick - I'm getting a new error message now when I try to play an announcement:

Code: Select all
Dec 23, 2016, 8:37:38 PM
   Sonos                           [Fri Dec 23 20:37:38 2016] Processed plugin preferences.
   Trigger                         Announce: Front Door - Motion
   Sonos Debug                     zoneIP: 192.168.2.35, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
   Sonos Debug                     zoneIP: 192.168.2.35, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
   Sonos Debug                     zoneIP: 192.168.2.32, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
   Sonos Debug                     zoneIP: 192.168.2.32, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
   Sonos Debug                     zoneIP: 192.168.2.31, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
   Sonos Debug                     zoneIP: 192.168.2.31, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
   Sonos Debug                     zoneIP: 192.168.2.36, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
   Sonos Debug                     zoneIP: 192.168.2.36, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
   Sonos Debug                     zoneIP: 192.168.2.34, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
   Sonos Debug                     zoneIP: 192.168.2.34, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
   Sonos Debug                     zoneIP: 192.168.2.41, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
   Sonos Debug                     zoneIP: 192.168.2.41, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
   Sonos Debug                     zoneIP: 192.168.2.33, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
   Sonos Debug                     zoneIP: 192.168.2.33, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
   Sonos Debug                     zoneIP: 192.168.2.45, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
   Sonos Debug                     zoneIP: 192.168.2.45, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
   Sonos Error                     Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 189, in actionZP_announcementMP3
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1617, in actionAnnouncement
NameError: global name 'plugin' is not defined

Posted on
Fri Dec 23, 2016 8:43 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Variable for volume of announcement

crap. i forgot to remove some test code from the build... stand by

Posted on
Fri Dec 23, 2016 8:44 pm
rapamatic offline
Posts: 276
Joined: Aug 03, 2015
Location: Glencoe, IL

Re: Variable for volume of announcement

No worries. Playing with indigo keeps me away from having to wrap presents with my wife ;)


Sent from my iPhone using Tapatalk

Posted on
Fri Dec 23, 2016 8:46 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Variable for volume of announcement

I just updated .. v1.0.1 on the download page. sorry about that. hope that was all.

Posted on
Fri Dec 23, 2016 8:51 pm
rapamatic offline
Posts: 276
Joined: Aug 03, 2015
Location: Glencoe, IL

Re: Variable for volume of announcement

nlagaros wrote:
I just updated .. v1.0.1 on the download page. sorry about that. hope that was all.


That's working great now, thanks!

FYI, it looks like its still v1.0.0 internally, so I had to manually copy over the new plugin code (it wouldn't do the update) - should only be an issue for anyone else who grabbed 1.0.0 in the past few minutes...

Posted on
Fri Dec 23, 2016 9:09 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Variable for volume of announcement

thx. i fixed that too... i am going to stop mucking with this...

Posted on
Fri Dec 23, 2016 9:13 pm
rapamatic offline
Posts: 276
Joined: Aug 03, 2015
Location: Glencoe, IL

Re: Variable for volume of announcement

I updated just to say I had the latest version. Thanks for your quick turnaround on all this, now time for you to relax!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests