CONFIGURATION
72
4.22. Start-up script
In the window Startup Script it is possible to create own scripts which will be executed
after all initial scripts. This script is not stored or restored when using web interface backup or
restore option.
The changes in settings will apply after pressing the Apply button.
4.22.1.
IO program
Program "io" can be used to set binary outputs (syntax: io set out0|out1 0|1) and get
state of binary inputs (syntax: io get bin0|bin1|bin2|bin3|bin4).
This is an example how to read inputs by using this program:
while true
do
io get bin4
BIN4=$?
if [ "$BIN4" != "$OLD4" ]; then
if [ "$BIN4" = "1" ]; then
gsmsms 739546801 "test SMS bin4-1"
fi
if [ "$BIN4" = "0" ]; then
gsmsms 739546801 "test SMS bin4-0"
fi
OLD4=$BIN4
fi
sleep 2
LUCOM GmbH * Ansbacher Str. 2a * 90513 Zirndorf * Tel. 09127/59 460-10 * Fax. 09127/59 460-20 * www.lucom.de