1. Raspberry Pi with network / internet connection.
2. Web Cam newer the better
Pre Heat ( software you need to download)
Log into the pi via SSH and run the command sudo apt-get install motion
This is the only bit of extra software you need.
You do need to make some changes to the config files.
sudo nano /etc/motion/motion.conf
**change deamon off to deamon on
**change webcam_localhost on to off
**change control_localhost on to off
save the changes.
sudo nano /etc/default/motion
**change start_motion_daemon=no to yes
Cooking ( adding it all together )
Start the service by running sudo service motion start
Find the IP address of your Pi.
On another machine or phone browse to the address of your PI and add :8081 to the end example 192.168.0.22:8081 .
This should show the live feed from your webcam.
Making it look good
On another machine open notepad and copy the text below in to it :-
<meta content=”text/html; charset=iso-8859-1″ http-equiv=”Content-Type”>
<title>WebCam Stream from Pi</title>
<div id=”apDiv1″> <img style=”-webkit-user-select: none” src=”http://192.168.0.22:8081/”>
Live Stream from my Pi
Save it as webcam.html , then open it in a browser and again you should see the feed . The important bit is in apDiv1 this is the code that displays the stream . Make sure to change the IP address to your PI.
I found you can not have to streams open on the same machine so if the webpage does not load make sure you do not have any other streams open.
<?php echo “Hello World”; ?>