You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing it with my Dahua N43AJ52 with -v to show debug messages. When I run the command below, I see debug messages that says the event was skipped.
When I look at dahua.py I notice there is a check on line 104 that checks if not index .... I always see index as zero in my debug messages so the check will always go into the skip detection and continue.
I commented out the check to allow the code to keep moving and was able to see motion alerts on my Cloud Key Gen 2.
I'm a noob at python and RTSP API so I don't know why my camera returns the index as 0 all the time or why the code is skipping the event if the index is 0. Maybe someone with more knowledge can help explain what is happening.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm testing it with my Dahua N43AJ52 with -v to show debug messages. When I run the command below, I see debug messages that says the event was skipped.
unifi-cam-proxy -v -H x.x.x.x -i x.x.x.x -c client.pem -t {adoption token} dahua -u {username} -p {password} --c 1 --snapshot-channel 1 --motion-index 2
Debug message:
DEBUG Skipping event ('SmartMotionHuman', {'Code': 'SmartMotionHuman', 'action': 'Start', 'index': '0', 'data': {'RegionName': ['Region1'], 'WindowId': [0], 'object': [{'HumamID': 396, 'Rect': [4840, 4832, 5392, 7136]}]}})
When I look at
dahua.py
I notice there is a check on line 104 that checksif not index ...
. I always seeindex
as zero in my debug messages so the check will always go into the skip detection and continue.I commented out the check to allow the code to keep moving and was able to see motion alerts on my Cloud Key Gen 2.
I'm a noob at python and RTSP API so I don't know why my camera returns the index as 0 all the time or why the code is skipping the event if the index is 0. Maybe someone with more knowledge can help explain what is happening.
Beta Was this translation helpful? Give feedback.
All reactions