Help us shape the future of Go! Take the 2026 Go Developer Survey

huexe

module
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2017 License: MIT

README

Huexe

A group of executables to turn On / Off (switch) and Dim (dimmer) / Bright (brighter) a specific Philips Hue Lamp.

Installation

  1. Download the package of your Operating System at hue/releases and extract it where you prefer.

  2. Use the setup executable to generate a config.yml.

    It will search for the Philips Hue Bridge in your network using meethue.com/api/nupnp. All the others executables use this same config.yml.

  3. You will need to open this file in a text editor and configure manualy the rest.

If you want to control other lamps, create a copy of this installation and edit the id to the desired one.

Configurations
id

Refers to the Lamp ID from the Philips Hue Bridge API. When requesting the API for all Lamps it's the key refering the JSON object, with state, type, etc..

It's is not the uniqueid, modelid nor luminaireuniqueid.

address

The Philips Hue Bridge IP Address.

username

It's a Hash Key / Token generated from the Philips Hue Bridge API when registered a Device / User.

Follow the official Getting Started Guide to get the username.

steps

Refers to how much one execution of dimmer / brighter will dim / bright.

The Brightness of a Hue lamp goes from 1 to 254, and it just accept integer values. In this way the default value of steps is 25, to a total of 10 executions from minimum to maximum bright.

Example
id: 1
address: 192.168.1.2
username: 249ba36000029bbe97499c03db5a9001f6b734ec
steps: 25

Code Status

Go Report Card Build Status

License

Huexe is released under the MIT License.

Directories

Path Synopsis
cmd
brighter command
dimmer command
setup command
switch command
lib
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL