This little piece of bad written code allows you to listen for motion events from your Hikvision cameras.
This bad boy will print all events from camera. Please be aware most of those events ate heartbeat and can be ignored,
what you really looking for is event with eventState=active
new HikvisionCamera("192.168.0.276", new HikvisionCameraAuthImpl(
"login", "password"
)).listen(event->{
System.out.println(event);
});
- Hikvision HWI-B121H(C)