brutella / hkcam

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

No response for live video #11

Closed RaymondMouthaan closed 5 years ago

RaymondMouthaan commented 5 years ago

First of all, thanks for this great peace of software!

I have flashed raspbian-stretch-lite-2019-04-08-hkcam-v0.0.6-armv6.img and all seemed to work fine for less than a day, but after that Live shows "No Response" as shown below. Still image remains to work.

Rebooting the Raspberry PI zero w fixes the issue, but comes back in within a day.

IMG_1410

IMG_1411

brutella commented 5 years ago

Could you please paste the content of the log file? You can find instructions on how to access it in the wiki.

RaymondMouthaan commented 5 years ago

Hi Matthias,

I've attached all the log files from /var/log/hkcam because in current I couldn't find anything suspicious. Hope these files help you.

At this very moment hkcam works fine, since I rebooted the PI zero this morning.

hkcam.zip

brutella commented 5 years ago

Thank for the log files. I think I've found the bug.

Please verify that the fix works by compiling hkcam yourself from the fix-ip-search branch.

You can do that with the following.

  1. Make sure that Git and Go are installed.
  2. Clone the project with git clone https://github.com/brutella/hkcam.git
  3. Fetch all branches with git fetch --all
  4. Checkout the fix-ip-search branch with git checkout fix-ip-search
  5. Change directory into the project with cd hkcam
  6. Build hkcam with make build
  7. Copy the new binary onto the raspberry pi with scp build/hkcam-_linux_armhf/usr/bin/hkcam pi@raspberrypi.local:~
  8. SSH into the raspberry pi with ssh pi@raspberrypi.local (password raspberry)
  9. Stop the currently running daemon with sudo sv stop hkcam
  10. Override the old binary with the new one sudo mv ~/hkcam /usr/bin/
  11. Restart hkcam with sudo sv start hkcam
RaymondMouthaan commented 5 years ago

@brutella, great hope it works ..

~Can I do step 1 - 6 on a MAC ?~

Let you know the results

iMartzen commented 5 years ago

I experience the same problems. I will also try this solution. Fingers crossed. I worked for me! I am now able to stream LIVE.

RaymondMouthaan commented 5 years ago

Like @iMartzen, I followed the steps and hkcam seems to work, lets wait a couple of days to see if it remains to work 👍

brutella commented 5 years ago

Thanks all. I will release a new image tomorrow if this fixes the issue.

RaymondMouthaan commented 5 years ago

@brutella, thank you for fixing it so quickly!

I'll keep you updated if tomorrow still runs fine and then you will see an order for enclosures as well! 😇

baseship commented 5 years ago

Back from Nightwork now... followed the steps below - now the stream works!

iMartzen commented 5 years ago

My watch cannot receive a LIVE video. It stays in "Connecting" modi. Does anyone experience this too?

PHOTO-2019-05-30-12-55-50

RaymondMouthaan commented 5 years ago

@brutella, unfortunately same problem re-occurs (after approx. 18 hours)... please find attached the log file.

current.log

brutella commented 5 years ago

hkcam v0.0.7 fixes this issue.

RaymondMouthaan commented 5 years ago

@brutella if 0.0.7 is the same as branch fix-ip-search from yesterday, I am afraid the issue remains ...

brutella commented 5 years ago

This issue is further discussed in #15

RaymondMouthaan commented 5 years ago

@brutella, thank you for fixing it so quickly!

I'll keep you updated if tomorrow still runs fine and then you will see an order for enclosures as well! 😇

@brutella, just curious, did you receive my order?

iMartzen commented 5 years ago

I agree; thank you for fixing so quickly!