Skip to content

Commit

Permalink
0.5.4 ver bump and doco lint
Browse files Browse the repository at this point in the history
Signed-off-by: Nic Boet <[email protected]>
  • Loading branch information
nabbi committed Jan 8, 2024
1 parent 4ce2721 commit e6a03ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,18 @@ PASS = "{{pass}}"
SERVER_PATH = "{{path}}"

zm_client = ZoneMinder(
server_host=SERVER_HOST, server_path=SERVER_PATH, username=USER, password=PASS, verify_ssl=False
server_host=SERVER_HOST,
server_path=SERVER_PATH,
username=USER,
password=PASS,
verify_ssl=False
)

#Zoneminder authentication
# Zoneminder authentication
zm_client.login()


#Get all monitors
# Get all monitors
monitors = zm_client.get_monitors()

for monitor in monitors:
Expand All @@ -59,7 +63,7 @@ for monitor in monitors:
>>> Monitor(id='monitor_id', name='monitor_name', controllable='is_controllable')


#Move camera down
# Move camera down
controllable_monitors = [m for m in monitors if m.controllable]

for monitor in controllable_monitors:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "zm-py"
version = "0.5.3"
version = "0.5.4"
description = "A loose python wrapper around the ZoneMinder REST API."
authors = ["Rohan Kapoor <[email protected]>"]
maintainers = ["Nic Boet <[email protected]>"]
Expand Down

0 comments on commit e6a03ef

Please sign in to comment.