News:

The Latest electronic and computer Tips that work!

Main Menu

Quick Raspberry Pi webcam for Webpage

Started by branx86, April 28, 2022, 09:56:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

branx86

1st -  apt-get install python3-flask


In the /home/pi/Documents/camWebServer

To Install: Create directory "Documents" - "camWebServer" , "camWebServer" - "templates" , "camWebServer"- "static"
   in the camWebServer folder put "camera_pi.py" and "appCam.py"
   in the templates folder put "index.html"
   in the static folder put "style.css"

Now, run the python script on the Terminal:

sudo python3 appCam.py

To make it auto start at boot Edit:  /etc/rc.local  Put sudo python3 /home/pi/Documents/camWebServer/appCam.py &

Go to any browser in your network and enter with https://YOUR_Raspberry_IP (for example, 192.168.1.137)

NOTE: If you are not sure about your Raspberry Pi Ip address, run on your terminal:

ifconfig