brutella / hkcam

Open-Source HomeKit Surveillance Camera
https://hochgatterer.me/hkcam/
Apache License 2.0
925 stars 141 forks source link

v0.0.7 doesn't fix the no response #15

Closed baseship closed 5 years ago

baseship commented 5 years ago

After i make the compilation new at the closed issue, the camera worked around for 2 hours. But now there's no connection recevied, then i downloaded the new Version of HKCam 0.0.7 and flash it with etcher, that's the result... IMG_1CC7A31B9DFD-1

RaymondMouthaan commented 5 years ago

Did you remove the camera first and re-added it?

brutella commented 5 years ago

Sorry that v0.0.7 doesn't fully resolve this issue. I think this issue only happens when the iOS devices connects with an IPv6 address. Still investigatingā€¦

brutella commented 5 years ago

Fingers crossed that 488f2c7 fixes this issue.

Would be great if somebody could verify that by compiling and updating the hkcam binary. https://github.com/brutella/hkcam/wiki/How-To-Update#update-from-source

RaymondMouthaan commented 5 years ago

@brutella, I will... However I am running 0.0.7 from this morning and until now it still works. Any idea how to reproduce the issue faster?

brutella commented 5 years ago

@RaymondMouthaan This issue only seems to affects incoming IPv6 connections. Maybe you can reproduce the issue when you are on an IPv6 only WiFi network.

RaymondMouthaan commented 5 years ago

@RaymondMouthaan This issue only seems to affects incoming IPv6 connections. Maybe you can reproduce the issue when you are on an IPv6 only WiFi network.

as far as I know I don't have an IPv6 network, so I guess we have to be patience until it occurs or even better if it will not :-)

RaymondMouthaan commented 5 years ago

@brutella, just build, installed and started 488f2c7, fingers crossed it works šŸ‘

dfbills commented 5 years ago

I'm on a IPv6 network and cannot connect after updating to 0.0.7 on both Mac and PI.

brutella commented 5 years ago

@dfbills Could you please try the above mentioned fix?

brutella commented 5 years ago

Please everybody update to 3a825f0

dfbills commented 5 years ago

I compiled 3a825f0, ran on the PI, and was able to successfully add to HomeKit. Running on the Mac build is still not working and does not show up in "Add Accessory."

Log shows:

Warlock:hkcam dfbills$ make run go run cmd/hkcam/main.go DEBUG 2019/06/01 13:59:42 camera_control.go:153: add: 3102379.jpg DEBUG 2019/06/01 13:59:42 camera_control.go:194: {"assets":[{"id":"3102379.jpg","date":"2019-05-06T17:46:18-04:00"}]} INFO 2019/06/01 13:59:42 ip_transport.go:186: Listening on port 61758

No additional info appears after many minutes.

brutella commented 5 years ago

You don't have to add the camera again to HomeKit if you just replaced the binary.

If you want that the camera appears as a new device, you have to delete the contents of the folder /var/lib/hkcam/data.

dfbills commented 5 years ago

@brutella - Thanks! For those following this thread, on the Mac, this is the data contents of the "Camera" folder at the root level of the hkcam project.

I finally have both Mac and Pi versions up and streaming again.

Screenshot 2019-06-01 15 07 36
brutella commented 5 years ago

Does it work now for everybody with the changes in 3a825f0?

RaymondMouthaan commented 5 years ago

@brutella, running 3a825f0 for two days now and it works!

baseship commented 5 years ago

The changes now work. Thanks. Is the Raspian Image also fixed?

brutella commented 5 years ago

@baseship v0.0.8, which includes the fix, will be released tomorrow.

brutella commented 5 years ago

Should be fixed in v0.0.8