beepsilver
Getting comfortable
Has anyone successfully found a way (using scripts apparently) to get Dahua IVS events in BI? If so, would mind posting details on how to do this? Thank you.
I've been meaning to email the BI author to see if he could support it directly within BI. BI does appear to support Hikvison's "Smart Events", which are the equivalent of Dahua's IVS events.Has anyone successfully found a way (using scripts apparently) to get Dahua IVS events in BI? If so, would mind posting details on how to do this? Thank you.
@cor35vet any chance you could put together a Dahua python package similar to this Hikvision python package? See here: pyHik/hikvision.py at master · mezz64/pyHik · GitHub I have no idea where to begin but would help.Because nobody writes documentation
Available events:
Source: Alarm tab of camera webui + F12/inspect -> networkCode:VideoMotion CrossLineDetection,CrossRegionDetection,LeftDetection,SceneChange,TakenAwayDetection,FaceDetection,RioterDetection,MoveDetection,WanderDetection,CrossFenceDetection,ParkingDetection,NumberStat,RetrogradeDetection,TrafficJunction VideoBlind AudioAnomaly,AudioMutation VideoAbnormalDetection,SceneChange LoginFailure
Example script to watch cameras on event: https://i.botox.bz/watch.py
Just add the additional ones to the event line if you use those.
for example:You can adapt that script to then trigger the BlueIris record event for that camera.Code:"events": "VideoMotion,VideoBlind,VideoAbnormalDetection,SceneChange,CrossLineDetection,CrossRegionDetection,LeftDetection,SceneChange,TakenAwayDetection,FaceDetection,RioterDetection,MoveDetection,WanderDetection,CrossFenceDetection,ParkingDetection,NumberStat,RetrogradeDetection,TrafficJunction"
I don't have BlueIris so ¯\_(ツ)_/¯ but I did read that it has a JSON API which can do just that.
Example output:
Code:python watch.py [0] OnConnect() [0] ParseAlarm({'Code': 'CrossLineDetection', 'action': 'Start', 'index': '0'}) [0] Alarm triggered! -> ON [0] StartPlayer()
Motion detection in which, cam or BI?I have 20+ different model Dahua cams and there working with ivs in BI I just went in the onivf tab and set up a user the same as the cam login and password. only issue i hd is the cams would turn the motion detection back on everyday then i was getting hundreds of events. I just turned sensitvity to zero and the threshold to 100 to stop any motion events.
I think he means in the camera. After disabling motion detection in the camera, then saving, with the intent to use only IVS for detection, the firmware reenables motion detection once you log out and log back in. Whether or not it's a flaw I don't know, but jaycanter's method of zeroizing the sensitivity and threshold is a valid workaround. I see this in my PTZ.Motion detection in which, cam or BI?
According to jaycantor it works without any workaround...what about setting up a dummy smtp server on the blueiris machine.
Then have Dahua IVS send alert to that smtp server with the latter calling blueiris trigger via the blueiris api.
I have made a quick test and seems to work but not sure about the delays involved.