jHuery
DOM HOM based library to interact with the Philips HUE lights
A jHuery takes the DOM (or HOM, Home(e) Object Model :) ) API out of the browser, in the Real World (TM). It is possible to turn on all the lights this way:
;
Or, even better, you can put the lamps in the right room, then:
var kitchenLights$ = ; kitchenLights$;kitchenLights$; // red!
SETUP
In order to use the jHuery / HOM API, the HOM script tag must have a data-config attribute containing the bridge address and the user key:
<script src="../dist/hom.js" data-config='{ "ip": "bridge IP address here", "key": "user key here" }'></script> <script src="../src/jhuery.js"></script>
Have fun!
LICENSE
MIT