CCTV camera image proxy
What's that
You have CCTV camera which gives you image snapshot and want to add it somewhere e.g. to your internal web page, refreshing periodically.
Problem: camera is password protected and you don't want to be continuously prompted for the credentials
Problem 2: sometimes your camera may die and you want to display some pretty error image.
Solution:
pip3 install cctvproxy
# put this string somewhere to your system startup
cctv-proxy.sh start
Usage
http://cctv-proxy-ip:port/ci?_id=CAM_ID&.....
Params:
- _id camera id
- _return if "raw" - return raw response from camera, if "test" - test camera and return OK (or FAILED)
All other params are passed to CCTV camera as-is.
CCTV Proxy was made for AXIS cameras but you can configure it for almost any.
Config file
Default config file path: /usr/local/etc/cctv_proxy.yml
You can specify alternative location with -f option.
#bind-host: 127.0.0.1
#bind-port: 8781
#pool: 30
login: axisusername
password: axispassword
# change for non-AXIS cameras
#uri: /axis-cgi/jpg/image.cgi
cams:
cam1: 192.168.55.1
cam2: 192.168.55.1
cam3: 192.168.55.1
timeout: 5
#user: nobody
#group: nogroup
# change for each instance
#pid: /tmp/cctv-proxy.pid
# if no image available
#no-image: /data/nocam.jpg
Don't forget to set 600 permissions on a config file.
Debug
cctv-proxy.sh launch [-f config_file]
# or
python3 -m cctvproxy.proxy [-f config_file] -D
TODO
Image processing. Sometime later. I don't need it - EVA ICS has built-in.
Metadata
Release files for cctvproxy 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cctvproxy-0.1.1.tar.gz | 48.9 kB | Without provenance | Details |
Release files / cctvproxy-0.1.1.tar.gz
| Download URL | cctvproxy-0.1.1.tar.gz |
|---|---|
| Size | 48.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70cccf7e1d16bbf246a67d2f1b4db6a68fcfeaae149c2e65a56b1d16dc1138a7
|
|
BLAKE2b-256 checksum How to use checksums |
706fe5bc2f37b34964f36d72e484b8a65126f8ce95d233be78eb045ee01afe65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.8
|
Security for cctvproxy 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.