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
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
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?
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
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
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
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
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
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
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
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!
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
12 matches
Mail list logo