Using a Sick WS15-D1130 Infrared Diode pair to act as a hardware motion detection sensor for Zoneminder. Also testing out an Omrom photo electric sensor, the E3F2-R2C4. This is a tripwire alarm sensor. When the beam is blocked, the alarm is activated.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
306 B

5 years ago
  1. #!/bin/bash
  2. IPADDRESS=192.168.78.50
  3. CAMERAMODECTLOC=bay4hfs
  4. TMPFILE=bay4tmp
  5. TELNETSERVER=127.0.0.1
  6. PORT=6802
  7. MONITORNUMBER=12
  8. wget $IPADDRESS -O $CAMERAMODECTLOC && cat $CAMERAMODECTLOC | grep Temp > $TMPFILE
  9. RESULT=$(cat $TMPFILE)
  10. telnet $TELNETSERVER $PORT <<EOF
  11. $MONITORNUMBER|show||||$RESULT
  12. EOF