| |
In
order to enable the camera to communicate with the EDE system in the
control room each camera must have its individual script files stored
in some directories. The files may be created and edited using a plain
ASCII text editor. Do not use WinWord or WRITE for creating or editing
those files.
The
Task Scheduler (i.e. utask) is used to start programs or scripts
when events occur. The scripts can be shell-scripts or PHP3-scripts,
and can start the buffering of images or the uploading of files via
FTP or SMTP.
The Task Scheduler handles
event detection based on date and time, alarm inputs, motion
detection, can start any task and also handles process management.
At
start-up, utask (the Task Scheduler) reads the configuration file
/etc/task.list and parses it for event entries. If the file does not
exist when utask is started, then utask goes into standby mode. When
/etc/task.list has been created, or modified, a SIGUSR1 needs to be
sent to utask in order for it to re-read /etc/task.list. This can be
done by issuing the command kill -10 <utask-pid>. (The same effect is
also achieved by simply restarting the Axis Server).
The
file ?task.list? has to be stored in the web-camera?s directory /etc
and contains at least the following entries:
// PHP3-Script every minute
[00:00-23:59] date(w(1,2,3,4,5,6,0))
time(m(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,
43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) s(0))
immune once % /bin/sh : -c php
/etc/httpd/html/ics/live_alert.php3
;
// PHP3-Script Input I/O-A Connector
(Input 1 = 0; / = Input is rising; \ = Input is falling)
[00:00-23:59] date(w(1,2,3,4,5,6,0))
pattern((IO0:/)) immune once % /bin/sh : -c php
/etc/httpd/html/ics/input_alert.php3
;
The
following two scripts must reside in a directory of the web-camera
pointed to by the entries in the file task.list; in the example shown
above: /etc/httpd/html/ics/. |
 |