Fonera
From MioWiki
Motion on the Fonera 2.0
- create a script to be executed when a movement is detected, to:
- upload the picture to our web server
- send an email (or create a script on the web server to send an email when the picture is uploaded)
- create a php script on the web server to access the uploaded pictures
Dropbear + scp + public key authentication - 1
~/.ssh$ dropbearkey -t rsa -f id_rsa ~$ dbclient -y -i ~/.ssh/id_rsa user@ip ~$ scp -S dbclient -i ~/.ssh/id_rsa fileName user@ip:/dir
Dropbear + scp + public key authentication - 2
- !/bin/sh
- on_event_start scp_file "%Y-%m-%d %T"
- change to suit your needs:
SCP="/usb/sbin/scp ....."
- Destination server
TO="root@www"
- Don't change anything below this line
echo -e "This is an automated message generated by motion.\n\nMotion detected: $1\n\n" | $SCP -s "$SUBJECT" $TO