mezz64

Results 33 comments of mezz64

Are you comfortable editing the pyhik package files to add some more debugging info? In the hikvision.py file i'd like you to change line 497 from: ``` _LOGGING.warning('XML parse error...

Ok, not as helpful as i'd hoped. Can you add a new logging line under that one? This should log the collected XML so I can see what is getting...

Ok, I see the issue, the question is why is it happening and is it something we can fix. For whatever reason messages are getting jumbled together and closing tags...

I'm guessing you have digest rather than basic authentication enabled in the camera. Give this syntax a try: ``` curl --anyauth --user USER:PASS http://YOURCAMIP/ISAPI/Event/notification/alertStream ```

Let that run for a little while, 5-10minutes, then post the log again. In that snippet everything looks OK.

Ok, that log shows the same jumbling of messages so the feed is coming that way from the camera. That being said there isn't much the library can do beyond...

At the moment both events are discarded since the event string is only cleared after an ending event is found. A simple fix would be to clear the event string...

I added a change to the recently release 0.2.4 version that will at least catch the last event when they get jumbled together. I'll leave this issue open for now...

It could be a worthwhile addition. I'll need to play with the expert mode on my own cams to make sure I can debug locally. Not sure when i'll have...

I'm always open to PR's. Feel free to submit one with your changes and i'll make some time to review it.