mat/pycam
1
1
Fork
You've already forked pycam
0
No description
  • Python 80.9%
  • Dockerfile 13.7%
  • HTML 2.7%
  • Shell 2.7%
2023年08月01日 18:31:03 +02:00
.woodpecker Updated Dockerfile; deleted woodpecker files 2022年12月10日 14:39:34 +01:00
.flake8 Dateien hochladen nach „" 2022年12月10日 20:05:43 +00:00
docker-compose.yml „docker-compose.yml" ändern 2022年12月15日 12:48:30 +00:00
Dockerfile „Dockerfile" ändern 2022年12月16日 14:33:26 +00:00
index.html initial code base 2022年12月09日 14:01:22 +01:00
LICENSE Initial commit 2022年12月09日 12:58:20 +00:00
ntfy.py Publish text and image to ntfy client 2022年12月20日 13:06:19 +01:00
pyapp.py Updated readme 2023年08月01日 18:29:53 +02:00
pycam.jpg Dateien hochladen nach „" 2022年12月10日 20:00:46 +00:00
pycam.sh „pycam.sh" ändern 2023年01月15日 13:46:18 +00:00
README.md Updated readme 2023年08月01日 18:29:53 +02:00
requirements.txt Updated requirements.txt and Readme 2022年12月18日 15:54:55 +01:00
utils.py Utils fore reading and writing to a json file 2022年12月18日 15:54:35 +01:00

PyCam

PyCam is a Python script to be deployed on a Raspberry Pi for reading a Raspberry Pi camera and stream a image to a URL. The image is embedded into a html website or can be viewed directly. The image stream can be read for example by FritzBox Fon integrated into a door bell system.

Codeberg CI is focusing on code quaility.
status-badge

How to deploy

Prepare the Raspberry Pi for accessing picam from Docker. sudo nano /etc/udev/rules.d/99-camera.rules and insert the following content SUBSYSTEM=="vchiq",MODE="0666".

Activate the camera interface:

sudo raspi-config
-> 3 Interface Options Configure connections to peripherals
-> I1 Legacy Camera Enable/disable legacy camera support
-> yes

Clone the repository to you Raspberry Pi:

git clone https://codeberg.org/mat/pycam.git

sudo apt install python3-virtualenv
virtualenv ./venv_pycam
source venv_pycam/bin/activate
pip install -r requirements.txt
cd pycam
python3 pyapp.py

Navigate to the devices IP address and the port 5000, e.g. http://192.168.178.10:5000/, to open the welcome site and open http://192.168.178.10:5000/image to receive an image.

Install Docker and Docker-compose (not working for now on Raspberry Pi)

curl -fsSL https://get.Docker.com -o get-Docker.sh sudo sh get-Docker.sh

sudo usermod -aG docker $USER newgrp docker

sudo apt install docker-compose

Clone the repository to you Raspberry Pi:
git clone https://codeberg.org/mat/pycam.git

Build the Dockerfile with:
docker build -t pycam .

Start the application from your directory:
docker-compose up