No project description provided
Project description
Zm-py
A loose python wrapper around the ZoneMinder API. As time goes on additional functionality will be added to this API client.
Acknowledgments
Not to be confused with ZoneMinder's Pythonic wrapper pyzm, this zm-py project (with a hyphen) is tailored for the Home Assistant ZoneMinder Integration
zm-py is based on code that was originally part of Home Assistant. Historical sources and authorship information is available as part of the Home Assistant project:
Installation
PyPI
pip install zm-py
Usage
from zoneminder.zm import ZoneMinder
SERVER_HOST = "{{host}}:{{port}}"
USER = "{{user}}"
PASS = "{{pass}}"
SERVER_PATH = "{{path}}"
zm_client = ZoneMinder(
server_host=SERVER_HOST, server_path=SERVER_PATH, username=USER, password=PASS, verify_ssl=False
)
#Zoneminder authentication
zm_client.login()
#Get all monitors
monitors = zm_client.get_monitors()
for monitor in monitors:
print(monitor)
>>> Monitor(id='monitor_id', name='monitor_name', controllable='is_controllable')
#Move camera down
controllable_monitors = [m for m in monitors if m.controllable]
for monitor in controllable_monitors:
zm_client.move_monitor(monitor, "right")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zmha_py-0.5.3.post4.tar.gz
(13.0 kB
view details)
Built Distribution
File details
Details for the file zmha_py-0.5.3.post4.tar.gz
.
File metadata
- Download URL: zmha_py-0.5.3.post4.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.1.57-gentoo-x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c6110b8988626691b989a49eea1d0e7bd6ec7a28754f896771fcaebe28540a2 |
|
MD5 | 972432979171a34fe7574e7aafb4a536 |
|
BLAKE2b-256 | 1ae53873e94a547a1cb91cb3aef7d341a3d2232a83a3bb28f4a0dd0929bcbbad |
File details
Details for the file zmha_py-0.5.3.post4-py3-none-any.whl
.
File metadata
- Download URL: zmha_py-0.5.3.post4-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.1.57-gentoo-x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d0c36b38605eabca3549b1bcd570ebed7a94fed85b53fbbed99d3553476e55e |
|
MD5 | 0d208dfabb7203f9530d07709e1299fe |
|
BLAKE2b-256 | e79ce7ad2378d99121929990400427e2cb0a508512408621a7f9b442152f52ec |