peter-murray / node-hue-api

Node.js Library for interacting with the Philips Hue Bridge and Lights
Apache License 2.0
1.19k stars 145 forks source link

Support for designating the http port for the Hue bridge #7

Closed mhodgson closed 10 years ago

mhodgson commented 10 years ago

Also includes a small bug fix for setting HSL values. It was converting from 100 -> 255 twice leading to inflated values.

peter-murray commented 10 years ago

This is now integrated, into release 0.2.2 in npm, thanks.

One question though, what kind of setup requires you to set the port number for your bridge. I cannot find any documentation on the Hue API website that indicates the ability to change the port number...

mhodgson commented 10 years ago

Ha, yeah, it's kind of a unique use case. We wanted to integrate Hue into our Hubot, which is running on Heroku. So we needed to map port 80 on the Hue to a different port externally with our router so we could get access from outside the office. That way we can talk directly to the hue api from anywhere. Not the most secure thing in the world, but if some hacker discovers it and starts playing with our lights, good for him :)