I also changed from 'ffmpeg' to 'avconv' as it seems ffmpeg has become deprecated as of Ubuntu 14.04 Sh /home/domoticz/domoticz/scripts/bash/deurbel/pushover.sh -u USERTOKEN -a APPLICATIONTOKEN -q "Deurbel galerij" -m "Net aangebeld, plaatje niet beschikbaar omdat cam offline is" #Delete previous taken snapshots older than 7 daysįind /home/domoticz/deurbelsnapshots/ -name '*.jpeg' -mtime +7 -delete Zie bijlage in Gmail voor foto."Įcho "Er is op" $datesubject "aangebeld, zie de bijlage voor de foto." | mail -s "Deurbelfoto" -r "YOUR NAME" -aFrom: -A /home/domoticz/deurbelsnapshots/$today.jpeg Sh /home/domoticz/domoticz/scripts/bash/deurbel/pushover.sh -u USERTOKEN -a APPLICATIONTOKEN -q "Deurbel galerij" -m "Er is aangebeld op de galerij. #Send pushnotification with URL to snapshot usr/bin/avconv -rtsp_transport tcp -i 'rtsp://'$IP'/user=admin&password=&channel=1&stream=0.sdp' -f image2 -vframes 1 -pix_fmt yuvj420p /home/domoticz/deurbelsnapshots/$today.jpeg #Ping IP-address of camera to see if it's online, otherwise we don't have to grab a snapshot Today=`/bin/date '+%d-%m-%Y_%H-%M-%S'` #Used to generate filenameĭatesubject=`/bin/date '+%d-%m-%Y om %T'` #Used to generate timestamp in mailbody
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |