Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update snapshot on view #6

Closed
MWDelaney opened this issue May 25, 2019 · 2 comments
Closed

Update snapshot on view #6

MWDelaney opened this issue May 25, 2019 · 2 comments

Comments

@MWDelaney
Copy link

This tool is a great alternative to other Homebridge based options, but one thing the Homebridge alternatives seem to do that this one doesn’t is update the Home app’s preview snapshot of the camera when look at it in the Room or House screen. Is this a possible future feature for hkcam?

Thanks again.

@brutella
Copy link
Owner

This should actually work.

Apple's Home app periodically (every 10 seconds) requests a new snapshot by calling POST /resource. hkcam then records an image of the camera stream using ffmpeg, stores it as a jpeg image in a temporary folder, reads the bytes of the temporary image from disk and responds to the http request.

@MWDelaney
Copy link
Author

You’re absolutely right. For some reason it wasn’t happening when I first set up the camera but after a power outage, once everything came back up, snapshots were working correctly. Sorry to clutter up your inbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants