Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

If camera is off, it will no be configured. #49

Open
kikeenrique opened this issue Sep 18, 2017 · 2 comments
Open

If camera is off, it will no be configured. #49

kikeenrique opened this issue Sep 18, 2017 · 2 comments
Assignees
Labels

Comments

@kikeenrique
Copy link

Hi,
If the camera is not powered on, it will never be detected.
Currently I’m having this message:
Sep 18 22:41:17 raspberrypi homebridge[28823]: (node:28823) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): RequestError: Error: connect EHOSTUNREACH 192.168.0.14:589
After this, turning on cam has no effect.
In my workflow, I usually turn on/off camera on demand, using a controlled plug.

@luisiam
Copy link
Owner

luisiam commented Oct 14, 2017

This is the way the plugin works. The camera has to be on all the time.

@luisiam luisiam self-assigned this Oct 14, 2017
@kikeenrique
Copy link
Author

But my point is not only about the cam not being on all the time, any temporal network issue could also be affected by this problem I guess.
I would suggest adding two new config parameters. One for a timer to retry a request in case of any communication error (or no reply), that would retry communication for example after 10 minutes. And a second parameter for the number of retries, for example to 3 attemps (and in my use case it will retry infinitely).
But I think this shall be reported also to plugin dependencies, shall it?

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

No branches or pull requests

2 participants