tphoney/simple_hue


A puppet module that controls the philips hue. It is designed for teaching purposes.

License: Apache-2.0

Language: Ruby


simple_hue

Table of Contents

  1. Module Description - This module controls the Philips hue
  2. Setup - The basics of getting started with [modulename]
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module

Module description

The philips Hue is a hub that controls wirelessly connected lightbulbs. This module allows you to connect to the hub and control the lightbulbs. The purpose of this module is for teaching, and providing a simple framework to start development with. simple_hue will not get any new features, the smart_hue module exposes more features in the philips hue.

Setup

 What the simple hue affects

-Changes the state of light bulbs connected to the philips hue.

Setup requirements

  • a puppet master
  • a philips hue hub
  • a philips hue light bulb or compatible

Beginning with simple_hue

Grab a developer key from your hue hub, follow the steps here: http://www.developers.meethue.com/documentation/getting-started Find the IP / hostname of your hue hub. Use a uPNP scanner, Nmap, your router / DHCP logs.

Usage

Your puppet config files should look something like: /etc/puppet/manifests/site.pp node 'hampton' { hue_light { '1': on => 'false', } }

/etc/puppet/device.conf [hampton] type hue url http://192.168.0.14/api/AVsa-nKtZOlssVKhBwM9MBVTVVUo11nSsGQPIm55

/etc/hosts 192.168.0.14 hampton

Certs

Setup your certs for puppet to talk to your hue hub. EG:

puppet plugin download --server huemaster puppet device -v --waitforcert 0 --user root --server huemaster puppet cert sign hampton puppet device -v --user root --server huemaster

Query the hue hub

Run the following FACTER_url=http://192.168.0.14/api/AVsa-nKtZOlssVKhBwM9MBVTVVUo11nSsGQPIm55 puppet resource hue_light

Reference

Limitations

There are no known limitations.

Development

This is a simple module designed for teaching, new features should not be added. Fixes or improvements are.

Project Statistics

Sourcerank 4
Repository Size 30.3 KB
Stars 8
Forks 7
Watchers 2
Open issues 0
Dependencies 12
Contributors 1
Tags 3
Created
Last updated
Last pushed

Top Contributors See all

TP Honey

Packages Referencing this Repo

tphoney-simple_hue
A puppet module that controls the philips hue. It is designed for teaching purposes.
Latest release 0.2.0 - Updated - 8 stars

Recent Tags See all

0.2.0 October 03, 2016
0.1.1 September 01, 2016
0.1.0 September 01, 2016

Something wrong with this page? Make a suggestion

Last synced: 2016-06-23 09:26:38 UTC

Login to resync this repository