Sha256: d398a04b58db5ef7755aadef57f7c9334a073ab12d42787db2932efc8191f881

Contents?: true

Size: 1.12 KB

Versions: 7

Compression:

Stored size: 1.12 KB

Contents

# Connecting to the light bulbs

There are no technical restrictions on the kinds of remote devices or APIs you can connect to with transports. For this lab, we will connect to a Philips HUE hub and make some colourful wireless light bulbs light up. If you (understandably) do not have physical devices available, you can use the Hue Emulator.

## Hue Emulator

Use `java -jar` with the emulator's filename to run it, for example:

```
david@davids:~$ java -jar ~/Downloads/HueEmulator-v0.8.jar
```

It does not produce any output on the command line, but a window pops up with a hub and a few predefined lights:

![](./02-connecting-to-the-lightbulbs-emulator.png)

All you need now is to input a port (the default 8000 is usually fine) and click "Start" to activate the built-in server.

## Connecting to your hub

To connect to an actual hub, you need be able to access the bub on your network and get an API key. See the [Philips Developer docs](http://www.developers.meethue.com/documentation/getting-started) (registration required).


## Next up

Now that you have some lights up, you'll [create a module](./03-creating-a-new-module.md).

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
puppet-resource_api-1.9.0 docs/hands-on-lab/02-connecting-to-the-lightbulbs.md
puppet-resource_api-1.8.18 docs/hands-on-lab/02-connecting-to-the-lightbulbs.md
puppet-resource_api-1.8.14 docs/hands-on-lab/02-connecting-to-the-lightbulbs.md
puppet-resource_api-1.8.13 docs/hands-on-lab/02-connecting-to-the-lightbulbs.md
puppet-resource_api-1.8.12 docs/hands-on-lab/02-connecting-to-the-lightbulbs.md
puppet-resource_api-1.8.11 docs/hands-on-lab/02-connecting-to-the-lightbulbs.md
puppet-resource_api-1.8.10 docs/hands-on-lab/02-connecting-to-the-lightbulbs.md