Calling Sonos users

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: Calling Sonos users

Post by Osler »

EXCELLENT idea to minimize the polling, Victor! I hadn't even thought about polling only when TransportState = Play. I will add this to the script with an option to turn it off via a property value boolean.

Osler
CouchPotatoe
Senior Member
Posts: 103
Joined: Sun Jul 31, 2005 2:43 pm
Location: Yorkshire UK

Re: Calling Sonos users

Post by CouchPotatoe »

Hi ... great news here, as these issues have been recurring for me too but I got a bit diverted onto another project, so I couldn't spend the time here. Anyway back, but still busy.

I may also revisit supporting this with a direct xAP-audio schema - as we previously touched upon...

Thanks for your continued excellent work and support here Osler... going to try the new version, will report back shortly..

Kevin
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: Calling Sonos users

Post by Osler »

CP:

Nice to see you're still kicking across the pond. I'm glad you haven't moved my scripts to your nearest tip.



Find attached the latest script version. Thanks to the suggestion by Victor, I have put polling for track info back into the script but only when the transport value of the ZonePlayer is "Play". The version of the script I used for testing has been stable for the past 48 hours so I'm putting it out there for public consumption.

Additionally, I added a small tweak to the connection routine to ensure that the ZonePlayer object is actually connected before executing the rest of the script. The asynchronous find I switched to creates a thread outside of the script and the script was processing sometimes before the actual objects had been created via the other thread. The fix creates a slight delay in script start-up, but appears to work well overall. The benefit of the asynchronous find that is currently used is that the master script can receive callbacks from the external thread when a ZonePlayer drops off the network. This allows the master script to respond to that situation and do the stuff needed to reestablish a connection.

Osler

EDIT: Latest files moved to very first post.
Last edited by Osler on Fri Oct 17, 2008 10:36 am, edited 1 time in total.
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: Calling Sonos users

Post by Osler »

I have updated the help file so that all device properties have a description. The script itself is unchanged.

Also, I have noted that one of my ZonePlayers was reporting an Update Queue Error quite frequently. This ZonePlayer sits in an enclosure that gets quite hot and I think that the ZP was having some difficulty with UPnP requests as a result. A simple unplug/replug of the ZP without doing anything in HouseBot fixed this issue. This is just an FYI in case users start to see a similar error frequently.

Osler

EDIT: Latest files moved to very first post.
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: Calling Sonos users

Post by Osler »

A little video demonstrating my Sonos system integrated into HouseBot and the use of an Insteon Keypadlinc to control transport state on a ZonePlayer.

http://home.tx.rr.com/crazyrantings/Hou ... _Sonos.wmv

Osler
vcruz777
Member
Posts: 70
Joined: Sun Jul 08, 2007 9:39 pm

Re: Calling Sonos users

Post by vcruz777 »

I wanted to thank you for the great script. It has been working just perfect and I was able to integrate the panels shared by you to my Theme without a lot of effort. I am including two screenshots of how they look.

Thanks again,

Victor
Attachments
Now Playing Panel
Now Playing Panel
Sonos2.png (233.03 KiB) Viewed 10980 times
Zones Menu Panel
Zones Menu Panel
Sonos1.png (243.71 KiB) Viewed 10977 times
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: Calling Sonos users

Post by Osler »

Those look great, Victor! I am glad it is working for you. Let me know if you have any feature requests or little inconsistencies that irk you.

Osler
vcruz777
Member
Posts: 70
Joined: Sun Jul 08, 2007 9:39 pm

Re: Calling Sonos users

Post by vcruz777 »

The only additional feature that will make it even more perfect would be to have the power search feature you have with the sonos handheld so you can browse the music library a little faster. Other than that I think its perfect.

Victor
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: Calling Sonos users

Post by Osler »

That can be added fairly easily as it is exposed via the UPnP interface.

The other option is to actually cache your music in a seperate database external to the ZP. This would bypass the ZP altogether when searching for a song. It has something I had been considering because it would actually allow you to potentially browse your library by album art.

Osler
RonX
Member
Posts: 1
Joined: Mon Aug 18, 2008 4:09 pm

Re: Calling Sonos users

Post by RonX »

The file is not available for download:
The selected attachment does not exist anymore.

The file ./../files/51429_12b9351527acf4e33e0d7beb3320458a does not exist.
Is something related to the forum? or the file was deleted? Could you please re-upload?

Regards
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: Calling Sonos users

Post by ScottBot »

It was something with the forums. Try it again, and let me know if you are still seeing problems.
Scott
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: Calling Sonos users

Post by Osler »

Also Scott....email notifications aren't working for PM's or for subscribed threads. Just an FYI.

Osler
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: Calling Sonos users

Post by ScottBot »

Osler wrote:Also Scott....email notifications aren't working for PM's or for subscribed threads. Just an FYI.

Osler
Thanks for the tip. I think they're working now, and I'll keep an eye on it.

I moved to another hosting service a week ago, so there are still some lingering issues that I missed.
Scott
vcruz777
Member
Posts: 70
Joined: Sun Jul 08, 2007 9:39 pm

Re: Calling Sonos users

Post by vcruz777 »

Hey Osler,

Any plans with incorporating the music services like Rhapsody / Napster to the Sonos Script. Having that I won't even need to access my hard drive library any more.

Saludos,

Victor
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: Calling Sonos users

Post by Osler »

Victor:

That is another can of worms. Once I get the new radio services incorporated I think it will be easier to do the music services, as the data is queried in a similar format.

I have broken out the media services into a seperate device that keeps a database of all available tracks. It is in its infancy, but I had planned on releasing a basic version for power searching by album, artist, track with a realtime filter this weekend. The goal was to integrate the new radio features into this and, eventually, music services. Keep in mind, I do not use music services and listen to radio infrequently. As such I am quite happy with how things currently work. However, I know most aren't as banal as I and will try to incorporate these other features. The only problem is time...

Osler
Post Reply