Hardware Reference
In-Depth Information
4.
That's it! Fire up Motion and observe the startup messages.
Motion starting up with multiple camera threads
Now visit
http://[IP address]:7070
and you'll see that the initial web admin
menu makes more sense. The feed of camera one is available at
http://[IP
address]:8081
, and camera two at
http://[IP address]:8082
.
Building a security monitoring wall
The only thing missing from our motion detection system is a proper villain's lair
security monitoring wall! We can easily throw one together using basic HTML, and
serve the page with the tiny HTTP server already running with MJPG-streamer.
Let's add and edit our custom HTML document with the following command:
pi@raspberrypi ~ $ sudo nano /usr/www/camwall.html
Use this code template and replace
[IP address]
with the IP address of your
Raspberry Pi:
<!DOCTYPE html>
<html>
<head>
<title>Motion Camera Wall</title>
<style>
img{border:black solid 1px; float:left; margin:0.5%;}
br{clear:both;}
</style>
</head>
<body>
<img src="http://[IP address]:8081/" width="320" height="240"/>
<img src="http://[IP address]:8082/" width="320" height="240"/>