cBrandon Community

General Category => Raspberry Pi => Topic started by: branx86 on April 28, 2022, 09:56:40 PM

Title: Quick Raspberry Pi webcam for Webpage
Post by: branx86 on April 28, 2022, 09:56:40 PM
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