diff --git a/black.png b/black.png new file mode 100644 index 0000000000000000000000000000000000000000..4215d79460310c9dedd49cdad64519d05a034e80 Binary files /dev/null and b/black.png differ diff --git a/send.sh b/send.sh new file mode 100755 index 0000000000000000000000000000000000000000..fc19b78339bdc2a88c284e9ca4b649f95ca44325 --- /dev/null +++ b/send.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +convert $1 rgba:image_fifo diff --git a/zone1.png b/zone1.png new file mode 100644 index 0000000000000000000000000000000000000000..ade88d7ea2ab3156c686c5dfde7167ace3ef3f26 Binary files /dev/null and b/zone1.png differ diff --git a/zone2.png b/zone2.png new file mode 100644 index 0000000000000000000000000000000000000000..1f8496744beffc2fb67cfbe9e74d616c8bd1958f Binary files /dev/null and b/zone2.png differ diff --git a/zone3.png b/zone3.png new file mode 100644 index 0000000000000000000000000000000000000000..c1f817b9eb7922d8408969a3a274fef5971771ed Binary files /dev/null and b/zone3.png differ diff --git a/zone4.png b/zone4.png new file mode 100644 index 0000000000000000000000000000000000000000..08892af41c1e0bd7e6e0a9b0705b523cae64add2 Binary files /dev/null and b/zone4.png differ diff --git a/zone5.png b/zone5.png new file mode 100644 index 0000000000000000000000000000000000000000..b804995a60c3923e074a9b4eb4e8dccd536ba21b Binary files /dev/null and b/zone5.png differ diff --git a/zoneminder_controller.sh b/zoneminder_controller.sh new file mode 100755 index 0000000000000000000000000000000000000000..e40f6147ca019489b15dcb1f71352f9c1fa103b8 --- /dev/null +++ b/zoneminder_controller.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +$OLDZONES="" + +while true +do + +ZONES=`wget -O- 'http://localhost/zm/index.php?view=events&page=&reload=0&execute=0&action=&subaction=&line=&fid=&filterName=motion&filter%5Bterms%5D%5B0%5D%5Battr%5D=Cause&filter%5Bterms%5D%5B0%5D%5Bop%5D=%3D&filter%5Bterms%5D%5B0%5D%5Bval%5D=Motion&filter%5Bterms%5D%5B1%5D%5Bcnj%5D=and&filter%5Bterms%5D%5B1%5D%5Battr%5D=DateTime&filter%5Bterms%5D%5B1%5D%5Bop%5D=%3E&filter%5Bterms%5D%5B1%5D%5Bval%5D=15+seconds+ago&sort_field=DateTime&sort_asc=1&limit=1&AutoExecuteCmd=' | grep -o 'zone.'` + + +if [ "$OLDZONES" != "$ZONES" ] +then + OLDZONES="$ZONES" + + COMMAND="composite "; for ZONE in $ZONES; do COMMAND+="-compose plus $ZONE.png "; done + COMMAND+=" -compose plus black.png black.png rgba:image_fifo" + + echo $COMMAND + $COMMAND + + sleep 3 +fi + +sleep 1 + +done