Plugin Motion4fon Configuration
From FON Wiki Beta
FON is not the author of this plugin and will not grant any support for its use.
This software is distributed as-is with no warranty. Use of this program is entirely at
your own risk.
This software is distributed as-is with no warranty. Use of this program is entirely at
your own risk.
Features
With the application installed and a webcam connected to your Fonera 2.0, you will be able to trigger events when motion is detected. A built in functionality is for example to save the images captured by the webcam when motion occurs. Needless to say with a bit of scripting the possibilities are endless.
Installation
- Make sure that your Fonera 2.0 is in Developer Mode so you can install plugins from external sources.
- Remove the FON's webcam plugin if it is installed.
- Download & install the OpkgFix on the Fonera 2.0n (NOT for 2.0g)
- Download Motion4fon plugin (do not unzip the .tar.gz file)
- Install the plugin from the Applications menu clicking on 'upload file'
Download link:
- Fonera 2.0g : Motion4fon_0.1beta.tar.gz
- Fonera 2.0n : Motion4Fon2N.tar.gz
Tested on firmware version: 2.2.6.0 RC5, 2.2.6.0 RC2, 2.3.0, 2.3.5 , 2.3.6
Configuration
- http://fonera:81 Motion maintenance interface (settings, reset, etc.)
- http://fonera:82 Motion live stream of your webcam (doesn't work in IE)
- http://fonera:83 Last movement detected by motion (works in IE)
Allowing access to webcam from WAN (internet)
- make sure your ISP allows port 81-83/tcp
- Don't forget to forward the ports on your internet modem/router as well towards the wan-ip of your fonera
echo "iptables -A input_rule -p tcp --dport 81 -j zone_wan_ACCEPT" > /etc/firewall.motion echo "iptables -A input_rule -p tcp --dport 82 -j zone_wan_ACCEPT" >> /etc/firewall.motion echo "iptables -A input_rule -p tcp --dport 83 -j zone_wan_ACCEPT" >> /etc/firewall.motion uci add firewall include uci set firewall.@include[-1].path=/etc/firewall.motion uci commit firewall
To save the pictures
With your browser go to 192.168.10.1:81 >> All >> config >> list >> Change: target_dir to: /tmp/run/mountd/sda1/picasa and Change: on_picture_save to: sleep 10 ; cp %f /tmp/webcam/motion.jpg Save the changes with 192.168.10.1:81 >> All >> config >> write >>
External links
- Tested Webcams or Webcam compatibility List
- FON boards discussion thread
- Motion Guide Basic Features
| Language: |
English |


