Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-25 Thread RobbeD
TheD6Bel wrote: Hello RobbeD your script work perfectly! i change ip 127.0.0.1 to my nas ip (lms run on my synology) and and change GPIO.output(18, True) to GPIO.output(18, False) and GPIO.output(18, False) to GPIO.output(18, True) for work with my relay. Thanks ;) That's very good

Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-25 Thread RobbeD
That's weird, I don't have those problems here.. Are you using the web user interface or another controller? You can run the script and check the output.. Maybe it has something to do with LMS settings? RobbeD's

Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-20 Thread RobbeD
Hi! That's strange, I thought the script would run without problems.. I am thinking if I did install something extra on the raspberry.. It's also weird that the script doesn't understand the import command.. I run the script like this: python relay.py Can you try that?

Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2014-11-18 Thread RobbeD
Hey guys, I recently changed the script so it now works with the XPL plugin.. This makes the script more smooth and lightweight! It also now reacts instant! :-) To make the script run you'll need to install the xPL plugin in LMS. After that you just change the name of the player in the script

[slim] Squeezeplay - Choose Player - Turn off player issue

2014-02-17 Thread RobbeD
Hi! I have 2 vintage radio's with raspberry pi's inside running squeezeplug. I also have a joggler with SqueezePlayOS that i use to control these two radio's. So I use the Choose Player function on the joggler a lot. The thing is, when I choose a player in the Choose Player menu, and I want to

Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-05-08 Thread RobbeD
TheD6Bel, that's great news! :-) I have added another piece of code that checks every two seconds if the server is online. If the server is online, then the status of the player is checked, otherwise not. The file is in attachment. 14795 For your problem that the relay is on when LMS is turned

Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-05-03 Thread RobbeD
Hi, indeed, the python script is indentation-sensitive. For me, the script works the way I copied it here on the forum.. But i'm aware that maybe the lay-out is not that good.. I'll add my script here in attachment.. 14774 I now did the indentation with WING-IDE and it looks correct.. Hope it

Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-05-01 Thread RobbeD
Hi, I'll tell you what I did to make it work: I saved the script as relay.py and ran it just with python relay.py (as root). Later I made a service script in etc\init.d to run it at boot.. Maybe you should try to add :9000 behind the ip adress of your server? Maybe that can be the problem. My

Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-04-30 Thread RobbeD
Hello, Sorry for bumping this thread, but for people who are still searching for an easy script to trigger a relay i've created a python script that runs at boot. The script checks the powerstate of the player every second (script runs on a raspberry pi where squeezelite is installed), and if

Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2013-04-30 Thread RobbeD
Ok! :-) Let me know if it works or not.. RobbeD's Profile: http://forums.slimdevices.com/member.php?userid=56967 View this thread: http://forums.slimdevices.com/showthread.php?t=71077

Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2012-10-22 Thread RobbeD
Hi, Could someone help me to modify the Power Switch plugin to control the gpio pins on the raspberry pi? I think this could be easier than using an USB-relay.. How do I start with this? I have no experience with squeezebox plugins.. Thanks in advance!

Re: [slim] Squeezebox Server with Squeezeslave to turn on speakers when playing

2012-08-29 Thread RobbeD
Hi! I know your post is almost three years old, but you never know.. I also would like to use a relay for this purpose! My idea is to let a script run in the background that checks the powerstate of the player (squeezeplay) on the server via CLI. If the powerstate of the player is on, the relax