C-Bus Forums  

Go Back   C-Bus Forums > Logic Code Library > Community Logic Code Examples

The C-Bus Community Forums is place where C-Bus users can share information and help others with C-Bus. From time to time you will see Clipsal staff on the forums, but this is not an official support channel. If you really need help contact the official support services of Clipsal. More information about the purpose of this forum is available here.

Reply
 
Thread Tools Display Modes
  #1  
Old 18 Jul 07, 01:18 PM
Matty Matty is offline
Senior Member
 
Join Date: Oct 2004
Posts: 103
Default SlimServer Control from CTC

Here is some logic code that uses sockets to make a connection to the SlimServer software. This code extracts current album/artist and gives some control of a Squeezebox from HomeGate/CTC.

For more info on SlimServer and SqueezeBox:
www.slimdevices.com

To use this you will first need to enter the constants SqueezeBoxMac, SlimServerIP, SlimServerPort and username/password if used.

The SlimServer command port will need to be changed to 20050. This can be done under the Server Settings, Plugins section of the SlimServer web interface. The port will need to be above 20000 as the CTC firewall only has a certain range that can be opened by the user. The port will need to be opened in the CTC using the network utility in this case I have used port 20050.

Big thanks to NickD for his work on this.

Regards,

Matty
Attached Files
File Type: ctd slimserver interface.ctd (13.5 KB, 145 views)
Reply With Quote
  #2  
Old 18 Jul 07, 02:34 PM
NickD's Avatar
NickD NickD is offline
Senior Member
 
Join Date: Nov 2004
Location: Adelaide
Posts: 651
Default

Just a note :

This project is far from being a fully functional interface, but it serves as an example of how a more fully featured control of the Squeezebox could be easily implemented in the logic engine.

It was really just a product of Matt's and my own initial experiments to get it running.

Nick
Reply With Quote
  #3  
Old 05 Aug 08, 06:45 AM
NickLocke NickLocke is offline
Senior Member
 
Join Date: Oct 2004
Posts: 139
Default Moving on

Guys,

Thanks for the pointers. I have built on your foundation and achieved an interface as shown here:

If anyone wants a copy of the Homegate code etc., just shout.

Nick
Reply With Quote
  #4  
Old 05 Aug 08, 09:20 AM
ashleigh ashleigh is offline
Senior Member
 
Join Date: Aug 2004
Location: Adelaide, South Australia
Posts: 1,809
Default

Hey NickLocke, looks very cool indeed. Why not just post the CTD project file and let an openish-sourcish community spring up to bolt on features and enhancements !!!!
__________________
Ashleigh
Reply With Quote
  #5  
Old 05 Aug 08, 09:58 PM
NickLocke NickLocke is offline
Senior Member
 
Join Date: Oct 2004
Posts: 139
Default

Quote:
Originally Posted by ashleigh
Why not just post the CTD project file and let an openish-sourcish community spring up to bolt on features and enhancements !!!!
Sounds like that could open the flood gates but, hey, why not!

It only searches by Artist (because that's what we always do). So, put in some letters of the artist's name and click Search. The area below the keyboard will show matching artists. Click an artist and the same area will change to show all that artist's tracks. Click a track and it will be inserted as the next track to play in the current playlist. The playlist is shown on the left side (and refreshes every two seconds).

Code wise, I was new to Pascal at the start of this, so am still refining to (eg) pass parameters rather than always using global variables. Lots of error checking still to do. I have tried to use "SS" as a prefix to distinguish from other logic in the same file. You'll see lots of red crosses for missing graphics.

Future plans - use the forthcoming change to how "preset" is handled in HomeGate to show feedback on only the key that has been clicked (at the moment all of the keys where I have put the logic flicker for any key).

Also plan to have some "sub screens" to show some things in more detail. As things stand, I need to do that by making the main screen a theme page. Support for "overlays" or "popups" would be tremendous!!

A way to make buttons "disabled" rather than "still clickable, but do nothing" would be great too - this would need to be able to display a different icon for enabled/disabled (not the same as active/inactive).

I have reported a bug which, sometimes, causes HomeGate to crash when editing SystemIO entries - and it messes up the ones that are already there. Seems to be when an edit is attempted while the logic engine is running - there's no "warning, logic will stop", it just keels over and if you then inadvertantly save, the damage is done.

How about allowing arrays of SystemIO - Playlist(1), Playlist(2) would be much easier to handle (eg within loops) than PlayList1, PlayList2.

Ooops, bit of a wish list there!

All thoughts on the Squeezebox stuff gratefully received.

Nick
Attached Files
File Type: ctd Squeeze.ctd (92.4 KB, 135 views)
Reply With Quote
  #6  
Old 11 Sep 08, 09:09 PM
nickrusanov nickrusanov is offline
Senior Member
 
Join Date: Aug 2004
Location: russia
Posts: 227
Default

thank you! =)
very-very good thing to have
__________________
http://www.c-bus.ru
http://www.clipsal.ru
Reply With Quote
  #7  
Old 09 Nov 08, 05:14 PM
Woody Woody is offline
Member
 
Join Date: Nov 2006
Location: Adelaide Hills
Posts: 34
Thumbs up CTC Squeezebox control

Cheers Nick these Squeezeboxes are great.

I installed your interface the other day & is working perfectly.
Has anyone improved on it by adding internet radio control.
If I could understand the command set, I would try and give it a go.

Shane
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warming to irrigation control in CTC muppets C-Touch/HomeGate/SchedulePlus/PICED 0 31 Jul 08 11:51 AM
Please test Media Center control from Homegate nickrusanov C-Touch/HomeGate/SchedulePlus/PICED 4 26 Feb 07 06:09 PM
General Lighting Control Design EdenLights General Discussion 0 23 Sep 06 04:25 PM
Neo, Support of one application PLUS Trigger Control Duncan C-Bus Toolkit/C-Gate 10 08 Sep 06 09:06 AM
PAC and the serial killer Potemkin C-Touch/HomeGate/SchedulePlus/PICED 18 25 Nov 05 02:24 PM


All times are GMT +10.5. The time now is 11:00 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.