This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make it executable `chmod +x ddns-update` | |
# move it path `mv ddns-update /usr/bin/` | |
# setup cronjob for every 15 minutes `crontab -e` | |
# */15 * * * * ddns-update >/dev/null 2>&1 | |
# dont forget to change your own domain & password | |
# uncomment if you want internet connection check before running | |
#while ! ping -c 1 -W 1 8.8.8.8; do | |
# echo "DDNS-UPDATE: Waiting internet connection.." | |
# sleep 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /bin/sh | |
# ./record.sh -i 192.168.0.47:554 -v 11 -r 1280x720 | |
# Some sane defaults for the environment. | |
DATE=`date +%Y-%m-%d` | |
TIME=`date +%H-%M-%S` | |
CAMERA_USER='admin' | |
CAMERA_PASS='admin' | |
CAMERA_IP='10.10.10.1' | |
CAMERA_NAME='cam1' |