Metadata-Version: 2.5
Name: webcam-push-service
Version: 0.1.6
Project-URL: Homepage, https://gitlab.com/alda78/webcam-push-service
Author-email: Ales Adamek <alda78@seznam.cz>
License-Expression: GPL-3.0-or-later
Requires-Python: >=3.10
Requires-Dist: flask
Requires-Dist: opencv-python
Requires-Dist: requests
Provides-Extra: dev
Requires-Dist: ruff; extra == 'dev'
Description-Content-Type: text/markdown

# Web camera push service

This package has 2 tools. First tool allows you to get static image from web camera and push it via post request into server part.
Second tool is server part to receive the images and display them in a web interface.

## installation

```bash
pip install webcam-push-service
```
or
```bash
uv tool install webcam-push-service
```

## usage
Push service
```bash
webcam-push-service -i 0 http://localhost:5000?secure=abcdefg
```

Server service
```bash
webcam-push-server /tmp/received-capture.jpg -s abcdefg
```

After push image lets navigate to url http://localhost:5000 to see the result.

### System D for server app
Install `webcam-push-server` as a system service [webcam-push-server.service](webcam_push_service/webcam-push-server.service)
```bash
# if you have app repository cloned
cp ./webcam_push_service/webcam-push-server.service /lib/systemd/system/webcam-push-server.service
# or
cp /usr/local/lib/python3.8/dist-packages/webcam_push_service/webcam-push-server.service /lib/systemd/system/webcam-push-server.service


systemctl enable webcam-push-server.service
systemctl start webcam-push-server.service
```
