Install the webcam server
sudo apt-get install motionEdit the configuration file /etc/motion/motion.conf
daemon onEdit /etc/default/motion to enable daemon service
output_normal off
ffmpeg_cap_new off
webcam_localhost off
start_motion_daemon = yesStart motion
sudo service motion startNow you can open the streaming at raspberry address on 8081 port (http://xx.xx.xx.xx:8081)
ATTENTION! Try different browsers since it doesn't work on my laptop's Chrome
HTML EMBEDDED
You can embed the streaming on your custom page adding the following line
<img src="http://xx.xx.xx.xx:8081" />
where xx.xx.xx.xx is the raspi address. (127.0.0.1 doesn't work - I don't know why!)
Nessun commento:
Posta un commento