Streaming ipcam from Raspberry PI using Python/Flask -


i trying stream internal ip camera home using flask in raspberry pi (os raspbian).

in python side cameras.py, used

from camera_pi import camera @app.route('/cameras/') def index_cameras():     """video streaming home page"""     return render_template('cameras.html') 

and in cameras.hmtl side used

        <img src='http://192.168.10.1/videostream.cgi?stream=1'> 

inside internal network, worked perfectly. however, outside not stream. not allowed use ddns. also, requirement streaming handled flask application.

how should in order stream outside?

you'll need setup dynamic dns 192.168.10.1 device (or device, on pc, if it's behind same router mentioned device) , open firewall rules communicate dynamic dns provider.

once have dynamic dns url, you'll need replace 192.168.10.1 uri 1 dynamic dns in cameras.html file.

here's instructions rolling own dynamic dns service using aws:

http://willwarren.com/2014/07/03/roll-dynamic-dns-service-using-amazon-route53/


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -