dpjanes / homestar-hue

HomeStar / IOTDB Controller for Philips Hue Lights
Apache License 2.0
0 stars 3 forks source link

After a while, the hue bridge fails and I see ECONNRESET messages in the console #4

Open mcarlson opened 8 years ago

mcarlson commented 8 years ago

{"name":"homestar-hue","module":"HueLightBridge","hostname":"wafer.local","pid":33228,"level":50,"method":"pull","url":"http://192.168.0.18:80/api/hue19ec4dd5bfda33f9/lights/3","result":{"error":{"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}},"msg":"not ok","time":"2016-04-08T03:39:39.743Z","v":0}

dpjanes commented 8 years ago

1) what's a while? 2) does it always happen? 3) does it not normally re-connect?

3 is really the key one. IOTDB can make bridges through away an instance

and start over (most things are awful).

On Thu, Apr 7, 2016 at 11:40 PM, mcarlson notifications@github.com wrote:

{"name":"homestar-hue","module":"HueLightBridge","hostname":"wafer.local","pid":33228,"level":50,"method":"pull","url":" http://192.168.0.18:80/api/hue19ec4dd5bfda33f9/lights/3","result":{"error":{"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}},"msg":"not ok","time":"2016-04-08T03:39:39.743Z","v":0}

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/dpjanes/homestar-hue/issues/4

mcarlson commented 8 years ago

I'm not entirely sure, I haven't found a way to reproduce reliably. I think it might be related to creating many instances of iotdb/things and those piling up somehow. Or perhaps sending in too many updates at once, I might need some debouncing on my end.

dpjanes commented 8 years ago

The code makes a queue for each Hue, so that no more than one communication is happening with it at a time. I'm going to push some reconnect code and we'll see how that works

On Mon, Apr 11, 2016 at 12:29 AM, mcarlson notifications@github.com wrote:

I'm not entirely sure, I haven't found a way to reproduce reliably. I think it might be related to creating many instances of iotdb/things and those piling up somehow. Or perhaps sending in too many updates at once, I might need some debouncing on my end.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/dpjanes/homestar-hue/issues/4#issuecomment-208159726

dpjanes commented 8 years ago

Version is pushed.

On Mon, Apr 11, 2016 at 9:44 AM, David Janes davidjanes@davidjanes.com wrote:

The code makes a queue for each Hue, so that no more than one communication is happening with it at a time. I'm going to push some reconnect code and we'll see how that works

On Mon, Apr 11, 2016 at 12:29 AM, mcarlson notifications@github.com wrote:

I'm not entirely sure, I haven't found a way to reproduce reliably. I think it might be related to creating many instances of iotdb/things and those piling up somehow. Or perhaps sending in too many updates at once, I might need some debouncing on my end.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/dpjanes/homestar-hue/issues/4#issuecomment-208159726

dpjanes commented 8 years ago

Any feedback?