support multiple bridges
Opened this issue · 2 comments
shokai commented
detect bridges by id
% curl https://www.meethue.com/api/nupnp
[{"id":"001788abcdef123","internalipaddress":"192.168.0.102"}]
shokai commented
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"
}
}
}
- key is ID
- get reachable bridge's ID from https://www.meethue.com/api/nupnp
shokai commented
those methods should be static
- Hue#generateUserName()
- Hue#auth(bridge)
- Hue#getBridges()