This is just what I am looking for.. Just needs modding somehow....

When my squeezebox touch is turned on I need to send a JSON command to
my raspberry pi which will in turn switch on both of my amps - and
another command to turn it off again when the touch is turned off. How
would I modify this to send the command? Below is and example command
that needs to be sent:-

On
strCurl=`curl
"http://192.168.1.2:8183/json.htm?type=command&param=switchlight&idx=2&switchcmd=On&level=0


Off
strCurl=`curl
"http://192.168.1.2:8183/json.htm?type=command&param=switchlight&idx=2&switchcmd=Off&level=0

Thank you so much.


------------------------------------------------------------------------
Simon_rb's Profile: http://forums.slimdevices.com/member.php?userid=56871
View this thread: http://forums.slimdevices.com/showthread.php?t=99977

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to