Nodejs web app for controlling Philips Hue smart light bulb.
- Set up Philips Hue light bulbs and the Philip Hue bridge, make sure you can control philips hue light with mobile apps (iOS or Android)
- Go to https://www.developers.meethue.com/documentation/getting-started to find out the IP address of the bridge on your network.
- Substitute
<bridge_ip_address>
to the actual ip address and go tohttp://<bridge_ip_address>/debug/clip.html
- Follow all instructions on https://www.developers.meethue.com/documentation/getting-started to obtain a user name
- Be able to use curl commands to control philip hue lights directly.
Open your terminal window, run the following commands:
git clone https://github.com/QianXuX/Nodephilipshue/
npm install
open hue-express-new.js, substitute
urlOri = "http://192.168.1.6/api/cJ23p6wZNUarNRb5Y6SsY5aCyDhVRaIjtg2qC5Xh/lights/";
with your actual hue bridge ip address.
Then, run:
node hue-express-new.js
Open your browser and go to http://localhost:9100/ to start the web app.
- All lights page shows all connected light bulb devices
- Browse a particular light bulb by clicking the associated link
- View detailed information of a single light bulb
- Change the on/off status and the brightness of the light bulb
- Choose different scenes by by clicking the corresponding button