Hi Rafael
Well I never used motion however according to this site http://www.palebluedot.nl/jml/computer-stuff/33-webcam-streaming-with-raspberry-pi.html it appears that once you have set everything you get the stream much the same way as jpg-streamer, just point your browser at ***.***.*.***:8001 or 8**** whatever you set your camera host address, so when you have that working just put the code below into your webiopi index.html and it will appear on your page (the action=stream part is probably required only for mjpg-streamer)
<body> |
<div id="content" align="center"> |
Home Alarm System Interface |
<div id="middle"></div> |
</div> |
|
<p> <w> Webcam-1 Webcam-2 </p></w> |
<img width="320" height="240" src="http://192.168.1.76:8082/?action=stream" align="left"> |
<img width="320" height="240" src="http://192.168.1.76:8081/?action=stream" align="center"><br/> |
</body> |
So the result would look something like the following, note you need to check the code as I am on holiday at the moment and doing this on a iPad from memory so there may be errors but you should get the idea.....
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content = "height = device-height, width = 420, user-scalable = no" />
<title>WebIOPi | Demo</title>
<script type="text/javascript" src="/webiopi.js"></script>
<script type="text/javascript">
webiopi().ready(function() {
webiopi().setFunction(25, "out");
var content, button;
content = $("#content");
button = webiopi().createButton("macro","",Screen_show_hide);
$("content").append(button);
webiopi().refreshGPIO(true);
)};