shokai/node-philips-hue

support multiple bridges

Opened this issue · 2 comments

detect bridges by id

% curl https://www.meethue.com/api/nupnp
[{"id":"001788abcdef123","internalipaddress":"192.168.0.102"}]

new config file format

{
  "bridges": {
    "qpeorujnave9f8": {
      "address": "192.168.0.102",
      "username": "a1b2cdefjklfm",
      "devicetype": "node-philips-hue"
    },
    "2asd9835kgb": {
      "address": "192.168.0.110",
      "username": "oiwerlmbvspodifu92394",
      "devicetype": "node-philips-hue"
    }
  }
}

those methods should be static

  • Hue#generateUserName()
  • Hue#auth(bridge)
  • Hue#getBridges()