Fonera

From MioWiki
Revision as of 12:01, 21 September 2009 by Roberto (Talk | contribs)

Jump to: navigation, search

Motion on the Fonera 2.0

Motion installation on Fonera

Motion home page

BusyBox


  • 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

  1. !/bin/sh
  1. on_event_start scp_file "%Y-%m-%d %T"
  1. change to suit your needs:

SCP="/usb/sbin/scp ....."

  1. Destination server

TO="root@www"

  1. 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