Info | ||
---|---|---|
| ||
|
...
Info | ||
---|---|---|
| ||
The instructor create created three devices of device type "lamp'' on the Watson IoT Platform, one for each lamp in the room. What runs on the instructor's computer is an instance of Node-RED and the Philips HUE drivers. These drivers implement the Philips HUE bridge API. The Node-RED instance connects to the Watson IoT Platform, listens for commands for the three "lamp" devices, and forwards the contents of those commands to the Philips HUE drivers. |
...
First, create a new flow (tab) on your Node-red RED instance. You need to send a JSON command to Bluemix with the following payload:
...
Following the same pattern , try to turn the light off.
Change the light color
...
Control the lamp with a sensor
Instead of clicking on the Node-red input RED manually to trigger control the light requestlights, you will use sensorsuse the sensor input to automate things.
Temperature sensor
Change the color depending on the temperature.
...