We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1645111 commit 23f0fc5Copy full SHA for 23f0fc5
sample.py
@@ -0,0 +1,17 @@
1
+#!/usr/bin/env python3
2
+
3
+import keyring
4
+from libpyvivotek import VivotekCamera
5
6
+cam = VivotekCamera(host='192.168.2.184', port=80, usr='root',
7
+ pwd=keyring.get_password('camera', 'root'),
8
+ sec_lvl="admin")
9
10
+print(f"Camera model: {cam.model_name}")
11
+print(f"Firmware: {cam.get_param('system_info_firmwareversion')}")
12
+print(f"Network info: {cam.get_param('status_eth_i0')}")
13
+print(f"RTSP port: {cam.get_param('network_rtsp_port')}")
14
+print(f"Serial number: {cam.get_serial()}")
15
+print(f"MAC address: {cam.get_mac()}")
16
+print(f"Date & time: {cam.get_param('system_date')} {cam.get_param('system_time')}")
17
+print(f"Status: {cam.get_param('status_vi_i0')}")
0 commit comments