Skip to content

Commit 9287eaa

Browse files
committed
code(example): Change get_analytics_list.py script
1 parent 8cda133 commit 9287eaa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎examples/get_analytics_list.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
try:
1919
client = ONVIFClient(HOST, PORT, USERNAME, PASSWORD)
2020
profile = client.media().GetProfiles()[0] # use the first profile
21-
services = client.analytics().GetSupportedAnalyticsModules(
21+
analytics = client.analytics()
22+
23+
analytics_modules = analytics.GetSupportedAnalyticsModules(
2224
ConfigurationToken=profile.VideoAnalyticsConfiguration.token
2325
)
24-
print(services)
26+
print(analytics_modules)
2527
except Exception as e:
2628
print(e)

0 commit comments

Comments
 (0)