tripplehelix/PiCamera
Runs Pi camera and streams to a webserver
- Python 100%
|
|
||
|---|---|---|
| camera.py | Also provide http access & Add more config to the top | |
| LICENSE | Add LICENSE | |
| README.md | Update README.md | |
Raspberry Pi Camera V3 Python Script
This script will run a python web server for a Pi camera and stream video.
I built this to run via https on tailscale.
Usage
To run: sudo python3 ./camera.py
Config options can be found at the top of the .py file.
Dependancies
picamera2 astral pytz simplejpeg
Example system systemd service
/etc/systemd/system/startcam.service
[Unit]
Description=Start camera stream
[Service]
Type=simple
TimeoutStartSec=0
ExecStart=/usr/bin/python3 /home/pi/picamera/camera.py
Restart=always
RestartSec=3
[Install]
WantedBy=default.target
Project icon by: https://github.com/hfg-gmuend/openmoji