Skip to content
/ hue.sh Public

Shell scripts to control my Philips Hue (using local HTTP API)

Notifications You must be signed in to change notification settings

dtinth/hue.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

hue.sh

Shell scripts to control my Philips Hue (using local HTTP API).

Prerequisites

Set up

  1. Clone repo

    $ git clone git@github.com:dtinth/hue.sh.git ~/Projects/hue.sh
  2. Create file ~/.huerc

    HUE_API=http://192.168.1.3
    HUE_USERNAME=u9lJqgXjhOktRGNOlvujEKXFImE9CZTKybrvfW52
    
  3. Set up PATH to include ~/Projects/hue.sh/bin

Raw CLI (hue)

$ hue get lights
HTTP/1.1 200 OK
(JSON output)

$ hue put lights/1/state hue:=6510 sat:=48 bri:=254
HTTP/1.1 200 OK
(JSON output)

Light presets (lights)

$ lights status
$ lights on
$ lights off
$ lights normal
$ lights dimmed
$ lights white
$ lights colorloop
$ lights nocolorloop

About

Shell scripts to control my Philips Hue (using local HTTP API)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages