Hello,
I have a problem recognizing the playing or stopped state in order to
set a GPIO.

I studied this http://brianlawes.com/multi-zone-audio-system/

And here is a script used for receiving player status.
At the beginning of this script there a following lines:

> 
> #!/bin/sh
> . /home/tc/www/cgi-bin/pcp-functions
> pcp_variables
> 
> ##############################################
> # Set the following according to your setup
> ##############################################
> MAC_ADDR=ab:cd:ef:12:34:63      # Raspberry Pi MAC address Bad
> LMS_IP=192.168.0.229     # LMS IP address
> INTERVAL=0.5    # Set Poll interval
> GPIO=12 # Set GPIO for relay
> COMMAND="status 0 0"    # LMS player status command
> DELAYOFF=20     # Delay in no. of intervals
> COUNT=0
> DEBUG=0
> TURNED_ON=0
> ##############################################
> 


After
. /home/tc/www/cgi-bin/pcp-functions
pcp_variables

I become an
> 
> sh: 3: unknown operand
> sh: 3: unknown operand
> 

which is coming from:

pcp_config_file
. $CONFIGCFG
pcp_debug_log "$0 - Running pcp-functions..."
pcp_variables

---->

Always executing a function (I think) I become errors.
I think, I have forgotten something in setup or so.

Can anybody help me please?


------------------------------------------------------------------------
papa_arrugada's Profile: http://forums.slimdevices.com/member.php?userid=66821
View this thread: http://forums.slimdevices.com/showthread.php?t=108354

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

Reply via email to