Source

Raspberry Pi GPIO Web Control / cmd.conf.MAY_BE_CHANGED

Full commit
# Copyright 2012 der-bub.de
# http://www.der-bub.de
# Author: Sebastian Bub (sebastian@der-bub.de)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
#
# simple configuration file to define external commands as if it would be a gpio port
#
# In order to integrate anything you want to your GPIO server, you can define external
# processes, e.g. you may send a notification on special conditions or you may integrate
# a script which handles other hardware like the SPI port.
#
# The script is only called when not used in a condition.
# The value for the GET-Parameter is send as first parameter, e.g. CMDsample=1 would call /xxx/sample.sh 1
# The STDOUT and STDERR is only logged on debug level. The return value of the script can be used in coditions.
# The script is only called when not used in a condition. You must call it before, e.g. CMDsample=1&CMDsample==1&...
#
#

# you may define multiple commands, just count up the suffix and specify the maximum to check for
EXTCMD.NO=0

# a name to address, e.g. the name 'date' must be addressed like CMDdate
#EXTCMD.NAME.1=date
# define a full qualified path and name to call the command
#EXTCMD.COMMANDNAME.1=/usr/bin/date
# timeout in milliseconds
#EXTCMD.TIMEOUT.1=200


#EXTCMD.NAME.2=sample
#EXTCMD.COMMANDNAME.2=/xxx/sample.sh
#EXTCMD.TIMEOUT.2=2000