CornerBit / HikSink

Converts Hikvision camera events to MQTT
MIT License
70 stars 7 forks source link

TriggersInvalid EventTypeInvalid facedetection-1 #8

Open eckinga opened 2 years ago

eckinga commented 2 years ago

Hello,

i have the following errors when run the binary. 3 cams, one DS-2CD2083G2-IU and 2 DS-2CD2183G2-IU, Firmware V5.7.3 build 220112

2022-04-25T22:52:42.922215Z INFO hik_sink: HikSink MQTT bridge running 2022-04-25T22:52:42.922579Z INFO Camera coms{camera=AU Kamera id=au_kamera}: hik_sink::hikapi::camera: Initiating camera connection... 2022-04-25T22:52:42.922624Z INFO Camera coms{camera=KB Kamera id=kb_kamera}: hik_sink::hikapi::camera: Initiating camera connection... 2022-04-25T22:52:42.922635Z INFO Camera coms{camera=ST Kamera id=st_kamera}: hik_sink::hikapi::camera: Initiating camera connection... 2022-04-25T22:52:42.925910Z INFO hik_sink::mqtt::connection: Connected to MQTT broker. 2022-04-25T22:52:42.959623Z ERROR Camera coms{camera=ST Kamera id=st_kamera}: hik_sink::hikapi::camera: Error reconnecting to camera TriggersInvalid(EventTypeInvalid("facedetection-1", "Event type contained non-alphabetic or non-numeric characters")) 2022-04-25T22:52:42.960823Z ERROR Camera coms{camera=AU Kamera id=au_kamera}: hik_sink::hikapi::camera: Error reconnecting to camera TriggersInvalid(EventTypeInvalid("facedetection-1", "Event type contained non-alphabetic or non-numeric characters")) 2022-04-25T22:52:42.969189Z ERROR Camera coms{camera=KB Kamera id=kb_kamera}: hik_sink::hikapi::camera: Error reconnecting to camera TriggersInvalid(EventTypeInvalid("facedetection-1", "Event type contained non-alphabetic or non-numeric characters")) 2022-04-25T22:52:45.994230Z ERROR Camera coms{camera=ST Kamera id=st_kamera}: hik_sink::hikapi::camera: Error reconnecting to camera TriggersInvalid(EventTypeInvalid("facedetection-1", "Event type contained non-alphabetic or non-numeric characters")) 2022-04-25T22:52:46.007562Z ERROR Camera coms{camera=KB Kamera id=kb_kamera}: hik_sink::hikapi::camera: Error reconnecting to camera TriggersInvalid(EventTypeInvalid("facedetection-1", "Event type contained non-alphabetic or non-numeric characters")) 2022-04-25T22:52:46.007644Z ERROR Camera coms{camera=AU Kamera id=au_kamera}: hik_sink::hikapi::camera: Error reconnecting to camera TriggersInvalid(EventTypeInvalid("facedetection-1", "Event type contained non-alphabetic or non-numeric characters"))

thanks Christian

CornerBit commented 2 years ago

Sorry for the delay in getting to this. Seems like Hikvision have changed their format again! Unfortunately I don't have the new series of cameras to test, but I've pushed a change to make the parser more lenient. Are you able to give the master branch a go? Please let me know if there are any errors or warnings in the logs.

robotsflo commented 2 years ago

hello,

I have the same error.

I have test to compile it on a fresh install debian and i have a lot of error.

Can you compile it and post a compiled release or best option for me, push a new version on dockerhub ?

Thanks

CornerBit commented 2 years ago

I've pushed a build to docker. Try the image cornerbit/hiksink:nightly.

robotsflo commented 2 years ago

I have try it today, this error has disapeared : [TriggersInvalid EventTypeInvalid facedetection-1]. I think this issue is solved in nightly build.

CornerBit commented 2 years ago

Great to hear! Can you confirm all the other events are working?