1. Install the 'motion' package (http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome):
Code: Select all
sudo apt-get install motion
Code: Select all
sudo apt-get install ffmpeg
Code: Select all
webcam_localhost off
Code: Select all
control_localhost off
Code: Select all
width 640
height 640
7. Find out the IP Address of your Pi and make a note of it for step 10:
Code: Select all
ifconfig
Code: Select all
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.32.47 Bcast:192.168.32.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fe40:357a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31800 errors:0 dropped:0 overruns:0 frame:0
TX packets:27108 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20174919 (19.2 MiB) TX bytes:29838750 (28.4 MiB)
8. Start up the motion application. Note that it has no GUI and can be run from the command line when you first start up the Pi. It doesn't need to run within startx:
Code: Select all
motion -n
10. If everything has worked okay, you should be able to go to another computer on your network and browse to your Pi's address to see the camera output:
Code: Select all
http://192.168.32.47:8081
11. You can also browse to the feed on the Pi itself, although this will only work in Chrome and not Midori.
12. If you browse to the 'control port' address below, you also get rudimentary control over the motion software:
Code: Select all
http://192.168.32.47:8080
Code: Select all
/tmp/motion
Scratching the Surface...
The above instructions should be enough to get you going, but the Motion package seems to be capable of a great deal more, so it's worth having a good read of the Motion website (http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) to see what else it can do.
Some things you could have a play with:
* Baby/Pet monitor
* Security camera
* Automatically email pictures of movement to you (catch the thief who is stealing from your chocolate stash!)
* Time lapse camera (plants growing, weather, sunrise, etc)
Please post any interesting configurations/uses here!
Edit 1:
I should have pointed out that Motion will work with other USB cameras not just the PS Eye. I couldn't say which ones, but if anyone gets others working then again post the results here.