Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleGoal
Excerpt

Build a control loop between sensors and actuators, understand . Understand that the IoT is composed to of different technologies communicating together.

...

Info
titleGeeky detail

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.

...