Skip to content
Snippets Groups Projects
Commit 4c1a9d97 authored by dronus's avatar dronus
Browse files

Zoneminder-Polling-Script, Testfiles dazu

parent 3b754475
No related branches found
No related tags found
No related merge requests found
black.png 0 → 100644
black.png

265 B

#!/bin/bash
convert $1 rgba:image_fifo
zone1.png 0 → 100644
zone1.png

5.22 KiB

zone2.png 0 → 100644
zone2.png

2.8 KiB

zone3.png 0 → 100644
zone3.png

4.79 KiB

zone4.png 0 → 100644
zone4.png

8.99 KiB

zone5.png 0 → 100644
zone5.png

144 B

#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment