shokai / node-philips-hue

Node.js library for Philips Hue bridge API
http://npmjs.org/package/philips-hue
17 stars 7 forks source link

support multiple bridges #6

Open shokai opened 9 years ago

shokai commented 9 years ago

detect bridges by id

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

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"
    }
  }
}
shokai commented 8 years ago

those methods should be static