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.
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()
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.
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.