Homegate & Squeezecenter

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by abg, Jul 27, 2009.

  1. abg

    abg

    Joined:
    Dec 25, 2007
    Messages:
    208
    Likes Received:
    2
    Location:
    Sydney
    I am running Squeezecenter on a ReadyNAS Duo, Homegate on a Sahara touch. Squeeze is controlled by the Squeezebox touchscreen interface on the Sahara directed through Amplifiers synchronised in various locations.

    This all works pretty well, but the main use of the Squeeze is selecting specific radio stations and playlists. It would be much more convenient to do this via specific buttons in Homegate (ie: Button for Radio National, button for News Radio or whatever station). This can be done by sending commands through the CLI (command line interface) using sockets. It would allow the selection of a station via one button in Homegate, rather than three of four 'touch' commands via the Squeezebox web interface.

    Just wondered if anyone else has done this as a few simple examples of any type of commands sent to the Squeezebox using Homegates' socket commands will help enormously.

    Thanks

    Andrew
     
    abg, Jul 27, 2009
    #1
  2. abg

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,427
    Likes Received:
    64
    Location:
    Adelaide
    NickD, Jul 27, 2009
    #2
  3. abg

    abg

    Joined:
    Dec 25, 2007
    Messages:
    208
    Likes Received:
    2
    Location:
    Sydney
    Thanks Nick!

    I'll have to learn how to use the search facility a little better.....
     
    abg, Jul 27, 2009
    #3
  4. abg

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,427
    Likes Received:
    64
    Location:
    Adelaide
    No worries...

    How do you find squeezecenter running on the ReadyNAS Duo? I tried it briefly (with a Duet), but it seemed a bit sluggish with a large-ish music library.

    Nick
     
    NickD, Jul 27, 2009
    #4
  5. abg

    abg

    Joined:
    Dec 25, 2007
    Messages:
    208
    Likes Received:
    2
    Location:
    Sydney
    That's one of the reasons I wanted to 'speed' things up by trying to create shortcuts to some of the more common things I do with SqueezeCenter.

    The interface is frustratingly slow at times even though I've upgraded my ReadyNAS to 1GB RAM and 2 1TB disks. I also stream survelliance camera images using Mobotix cameras (motion sensitive) to the NAS but this is not significant traffic.

    I am wondering if the problems I am having are related to the version that runs on the ReadyNAS. I can open the port and send commands and the log shows them arriving correctly, but I am not getting any return information. When I ran the utils from the link you provided I had the same issues. It provided the currently playing song, but not consistently and did not update properly.

    I think I'll have to try the server again on a PC rather than the ReadyNAS. Are you running Squeezecentre at all or did you abandon it?
     
    abg, Jul 27, 2009
    #5
  6. abg

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,398
    Likes Received:
    26
    Location:
    Adelaide, South Australia
    What model ReadyNAS are you using.

    I have a Duo and the processor in that runs at a massive 32 MHz. Running anything involving scripting in it goes like a dog. rrrrrrrrrreeeeeeeeeeeeaaaaaaaaaaaaaalllllllllllllllllllllllll ssssssssssssssllllllllllllllllllllllooooooooooooooooowwwwwwwww.

    Some of the other models are a bit beefier. But it you are running on a little one it may be that you have maxed it out.

    If you use Putty to log into it (as root), and run the command "top", you can watch where the NAS CPU use is going... that might give you some hints about performance.
     
    ashleigh, Jul 27, 2009
    #6
  7. abg

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,427
    Likes Received:
    64
    Location:
    Adelaide
    My issue was with the response time when browsing through the library... it took some time for the duet controller to respond, which I put down to the speed of the ReadyNAS running the database queries.... it should be fine as far as playing tracks or selecting playlists if you know the number to start with.

    It's interesting to hear that the extra RAM didn't make much difference for you... I had been wondering about that myself. It would be interesting to hear how much difference you see when running the same version/library on a PC.

    I have been running slimserver/squeezecenter on a G4 iMac for years, and haven't had any problems... I just tried it out on the ReadyNAS briefly when I first got it.

    Nick
     
    NickD, Jul 27, 2009
    #7
  8. abg

    abg

    Joined:
    Dec 25, 2007
    Messages:
    208
    Likes Received:
    2
    Location:
    Sydney
    Ashleigh, thanks for the info. It's been years since I've used these utils....a walk down memory lane.

    CPU usage seems ok. Squeezecenter-s hovers around the 6% mark mostly and around 6% memory use but jumps up and down to 50-85% CPU every so often, I presume as it buffers and does other stuff. Mysql also jumps in every so often at around 7-10%. This is while playing a randomised playlist of ~50 songs. The network connection is 1000MBit and there's not much else on the network, so that shouldn't be causing any problems.

    I'll try it on a PC just for comparison purposes.

    As an aside (and probably not for a C-Bus forum) have either of you had problems streaming any radio stations using Squeezebox's internet radio list lately? I can't get the following, which used to be fine:

    These are Sydney stations selected from their Sydney local list:

    101.7 WSFM
    2DAY FM 104.1
    Tripple M 104.9

    interestingly ABC, Nova 96.9 and Vega 95.3 work.
     
    abg, Jul 27, 2009
    #8
  9. abg

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,398
    Likes Received:
    26
    Location:
    Adelaide, South Australia
    I don't have any internet radio stuff. My house is quiet :)

    HOWEVER some other work I've been doing leads me to believe that a great many internet radio stations have changed their encoding from MP3 to AAC or AAC+.

    They also change that actual underlying URL sometimes... the method of getting the actual serve-up location from their web sites can be quite obscure.

    You might want to check if those stations have changed to the AAC codec - because without a decoder you'll get silence. Like in my house :)
     
    ashleigh, Jul 27, 2009
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.