Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
SONOS Plugin
Re: SONOS Plugin
Thanks! I'll check it out. That should help a lot.
-Chase
-Chase
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Re: SONOS Plugin
SWEET.Jostein wrote:
Hope you dont mind but i put together a plugin with the basic commands using your scripts.
Worked great Jostein.
Play3
It ROCKS... plays and pauses too.
Thanks again J.
eventghost.net
Be there or be square.
Be there or be square.
-
kalinkamaen
- Experienced User
- Posts: 138
- Joined: Wed Dec 26, 2012 9:23 am
Re: SONOS Plugin
Wow you guys rocks.
Jostein thanks for starting this project. And techoguy thank you
so much for making this plugin easy and really good.
Techoguy i wish i had the skillz to help you. Please send me
you paypal adress so i can buy you a beer or two.
Regards Kali
Jostein thanks for starting this project. And techoguy thank you
so much for making this plugin easy and really good.
Techoguy i wish i had the skillz to help you. Please send me
you paypal adress so i can buy you a beer or two.
Regards Kali
Re: SONOS Plugin
Just wanting to give an update...
I've been bogged down by some other priorities so haven't completed the play/pause/stop event updates yet.
What I'm working on now and features I expect to work in the coming releases are:
Let me know what you guys think and hopefully i can have more updates in the coming weeks.
I've been bogged down by some other priorities so haven't completed the play/pause/stop event updates yet.
What I'm working on now and features I expect to work in the coming releases are:
- 1) Notifications over SONOS You'll be able to have text to speech notifications over your sonos speakers.
2) Preset grouping (action to automatically group certain zones)
3) ungroup a specific zone player from what ever group it's a part of
4) receive event notifications for all zone players for rendering events like play/pause/stop and meta data updates
5) receive event notifications for volume changes (this allows you to set max volumes such that if a volume is exceeded it will automatically be reduced, I plan on using this for outdoor speakers after 10pm type thing)
Let me know what you guys think and hopefully i can have more updates in the coming weeks.
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Re: SONOS Plugin
Hi.
Woow, i had only imagened having multiple mp3ˋs with notifications but with the ability to have text to speech ability will make it mutch better.
Just a tought, Would it be more easy to make the notification into a mp3 file and play it from a favorites playlist. Just have the plugin overvrite the mp3 before playing it, or would changing the mp3 make it unvalid for sonos?
Loking forward to the next release,
Regards Jostein
Woow, i had only imagened having multiple mp3ˋs with notifications but with the ability to have text to speech ability will make it mutch better.
Just a tought, Would it be more easy to make the notification into a mp3 file and play it from a favorites playlist. Just have the plugin overvrite the mp3 before playing it, or would changing the mp3 make it unvalid for sonos?
Loking forward to the next release,
Regards Jostein
Re: SONOS Plugin
Hi Jostein,
Currently as a proof of concept, i'm just using the Speech plugin and the PCs audio out to SONOS Aux audio input. This is the easiest method to allow for any spoken notification up front. I currently have my own function that calls the yahoo weather API and speaks the current temperature and the forecast of the day but it can be changes to say what ever I want.
Off hand i'm not sure how I could have text to speech in such a way that it would automatically save a file in a fast manner so that there is no delay to then play it on SONOS. I'm not that familiar with trying to create MP3 files in that way.
Having pre-recorded notifications that play over SONOS would be easy as well but you would have to make all those recordings you want and the MP3s would have to be on a shared network location for SONOS to see. This would not have to be part of any SONOS playlist or queue. I can simply give the address and tell it to play it.
the other option i'm considering is to use a program like VLC that can create a stream of your computers audio cards output. This would allow you to play what ever you want or use text to speech and VLC would simply create the stream of it and SONOS would play the stream. Once the notification is done, the stream is closed and SONOS just starts playing what ever it was playing before. The down side is that it would rely on something like VLC which means it would have to be installed.
My current action is completely enclosed into my own plugin such that you call one action by giving it a string to say and the ZP to play it on and it does everything for you. But, for more flexibility and slightly easier implementation, i'm thinking of breaking it up into 2 actions such that you can run any eventghost action during the notification time:
1) SONOS - Action:Notification (sets selected ZPs to selected Aux input or Audio stream)
2) run what ever action within eventghost you want (Speech action, text to speech might be most common)
3) SONOS - Action:Resume playing ZPs
Currently as a proof of concept, i'm just using the Speech plugin and the PCs audio out to SONOS Aux audio input. This is the easiest method to allow for any spoken notification up front. I currently have my own function that calls the yahoo weather API and speaks the current temperature and the forecast of the day but it can be changes to say what ever I want.
Off hand i'm not sure how I could have text to speech in such a way that it would automatically save a file in a fast manner so that there is no delay to then play it on SONOS. I'm not that familiar with trying to create MP3 files in that way.
Having pre-recorded notifications that play over SONOS would be easy as well but you would have to make all those recordings you want and the MP3s would have to be on a shared network location for SONOS to see. This would not have to be part of any SONOS playlist or queue. I can simply give the address and tell it to play it.
the other option i'm considering is to use a program like VLC that can create a stream of your computers audio cards output. This would allow you to play what ever you want or use text to speech and VLC would simply create the stream of it and SONOS would play the stream. Once the notification is done, the stream is closed and SONOS just starts playing what ever it was playing before. The down side is that it would rely on something like VLC which means it would have to be installed.
My current action is completely enclosed into my own plugin such that you call one action by giving it a string to say and the ZP to play it on and it does everything for you. But, for more flexibility and slightly easier implementation, i'm thinking of breaking it up into 2 actions such that you can run any eventghost action during the notification time:
1) SONOS - Action:Notification (sets selected ZPs to selected Aux input or Audio stream)
2) run what ever action within eventghost you want (Speech action, text to speech might be most common)
3) SONOS - Action:Resume playing ZPs
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Re: SONOS Plugin
This sounds great. maby it is also possible to have the weather info as a seperate action.techoguy wrote: Currently as a proof of concept, i'm just using the Speech plugin and the PCs audio out to SONOS Aux audio input. This is the easiest method to allow for any spoken notification up front. I currently have my own function that calls the yahoo weather API and speaks the current temperature and the forecast of the day but it can be changes to say what ever I want.
I am not sure either. So using the aux input would probarly work just as well.techoguy wrote: Off hand i'm not sure how I could have text to speech in such a way that it would automatically save a file in a fast manner so that there is no delay to then play it on SONOS. I'm not that familiar with trying to create MP3 files in that way.
Do you already have a script for this, if you do i can try to make it into a action myself.techoguy wrote: Having pre-recorded notifications that play over SONOS would be easy as well but you would have to make all those recordings you want and the MP3s would have to be on a shared network location for SONOS to see. This would not have to be part of any SONOS playlist or queue. I can simply give the address and tell it to play it
Sounds like the best way. Would it also be possible to return the grouping back to how it was after?techoguy wrote: My current action is completely enclosed into my own plugin such that you call one action by giving it a string to say and the ZP to play it on and it does everything for you. But, for more flexibility and slightly easier implementation, i'm thinking of breaking it up into 2 actions such that you can run any eventghost action during the notification time:
1) SONOS - Action:Notification (sets selected ZPs to selected Aux input or Audio stream)
2) run what ever action within eventghost you want (Speech action, text to speech might be most common)
3) SONOS - Action:Resume playing ZPs
Re: SONOS Plugin
I do plan on leaving it in as it's own action. you'll put in the zip code and then it'll do it's thing. Is the zip code the right way to get weather or is there a better universal way for anywhere in the world?This sounds great. maby it is also possible to have the weather info as a seperate action.techoguy wrote:
Currently as a proof of concept, i'm just using the Speech plugin and the PCs audio out to SONOS Aux audio input. This is the easiest method to allow for any spoken notification up front. I currently have my own function that calls the yahoo weather API and speaks the current temperature and the forecast of the day but it can be changes to say what ever I want.
I don't. I'll look into adding that once I've completed the other actions and events. I'm pretty much rewriting the plugin to be more efficient and include events for everything.Do you already have a script for this, if you do i can try to make it into a action myself.techoguy wrote:
Having pre-recorded notifications that play over SONOS would be easy as well but you would have to make all those recordings you want and the MP3s would have to be on a shared network location for SONOS to see. This would not have to be part of any SONOS playlist or queue. I can simply give the address and tell it to play it
The notifications won't affect the current group topology so they will be left as is during notifications. Basically i'll play the notification on all zones (or at least the ones you select) and because they won't be all grouped there might be slight delays but for a quick notification that seems to be fine compared to trying to group everything, then ungroup considering the time delay to actually group zps.Sounds like the best way. Would it also be possible to return the grouping back to how it was after?
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309
EventGhost Lets me automate my home the way I want it, I love using it!
Re: SONOS Plugin
Hi,techoguy wrote:
-- I have tested the playlists/stations with Songza, Pandora, Slacker, RadioStations, and Spotify. It should work with any others as long as the station or playlist has been saved to your favorites in SONOS first. Please let know if you have issues with any other services.
This is an awesome plugin og which I've been waiting for ever since i got Sonos. Everything works great, except the StartPlayList feature. If I add the StartPlayList-action, og try to edit/doubleclick on the item, the errors below shows up in the log. Am I doing anything wrong? I installed version 0.3. Haven't tried the previous.
20:23:22 Traceback (most recent call last) (1640):
20:23:22 File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 59, in ProcessingTask
20:23:22 self.Configure(*args, **kwargs)
20:23:22 File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 165, in Configure
20:23:22 treeItem.Configure(*args)
20:23:22 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 101, in Configure
20:23:22 return self.executable.Configure(*args)
20:23:22 File "C:\Program Files (x86)\EventGhost\plugins\EG_Sonos\__init__.py", line 1032, in Configure
20:23:22 presets = getfavlist(self, zpList[zpList.keys()[0]]['ip'])
20:23:22 File "C:\Program Files (x86)\EventGhost\plugins\EG_Sonos\__init__.py", line 167, in getfavlist
20:23:22 res = conn.getresponse()
20:23:22 File "httplib.pyc", line 986, in getresponse
20:23:22 File "httplib.pyc", line 420, in begin
20:23:22 File "mimetools.pyc", line 25, in __init__
20:23:22 File "rfc822.pyc", line 108, in __init__
20:23:22 File "httplib.pyc", line 276, in readheaders
20:23:22 File "socket.pyc", line 397, in readline
20:23:22 error: [Errno 10054] An existing connection was forcibly closed by the remote host
-
kalinkamaen
- Experienced User
- Posts: 138
- Joined: Wed Dec 26, 2012 9:23 am
Re: SONOS Plugin
Are you trying to start a playlist on a unit that is allready bounded to a group?
Re: SONOS Plugin
No. I can't even configure the StartPlayList-action.When i doubleclick to configure i get the error mentioned.kalinkamaen wrote:Are you trying to start a playlist on a unit that is allready bounded to a group?
-
kalinkamaen
- Experienced User
- Posts: 138
- Joined: Wed Dec 26, 2012 9:23 am
Re: SONOS Plugin
Are you sure that you have playlists in sonos favorites and not Sonos playlists?
-
kalinkamaen
- Experienced User
- Posts: 138
- Joined: Wed Dec 26, 2012 9:23 am
Re: SONOS Plugin
Hello techoguy.
In the future, is it possible to implement mute and unmute. I know that it is possible in a way now.
But i want to be able to unmute every unit to same volume as it was when i muted it.
Thanks again.
Kali
In the future, is it possible to implement mute and unmute. I know that it is possible in a way now.
But i want to be able to unmute every unit to same volume as it was when i muted it.
Thanks again.
Kali
Re: SONOS Plugin
Yes. I have 2 Spotify-playlists and 2 radio channels under Sonos Favorites.kalinkamaen wrote:Are you sure that you have playlists in sonos favorites and not Sonos playlists?
-
kalinkamaen
- Experienced User
- Posts: 138
- Joined: Wed Dec 26, 2012 9:23 am
Re: SONOS Plugin
Hmm oki. It is working on my computer, but i am out of suggestions. Lets hope someone else can help you aout with the issue.