Skip to content

Instantly share code, notes, and snippets.

@man-oi
Created September 3, 2012 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save man-oi/3613561 to your computer and use it in GitHub Desktop.
Save man-oi/3613561 to your computer and use it in GitHub Desktop.
Untitled
/*HUE API*/
body {
background: #fff;
}
<body>
<ul>
<li><a href="http://developers.meethue.com/howhueworks.html">How it works</a></li>
<li><a href="http://developers.meethue.com/gettingstarted.html">Getting Started</a></li>
<li><a href="http://developers.meethue.com/1_lightsapi.html">Lights API</a></li>
<li><a href="http://rsmck.co.uk/hue">Hack the HUE</a></li>
</ul>
<h4>App anmelden</h4>
<pre>
Adress: http://[bridge ip address]/api
Arguments: {"devicetype":"test user","username":"newdeveloper"}
/*
devicetype: App Name, Description of the type of device associated with this username.
username: optional, If this is not provided, a random key will be generated and returned.
*/
</pre>
<h4>Farbe einer Lampe ändern</h4>
<pre>
Adress: http://[bridge ip address]/api/newdeveloper/lights/1/state
Arguments: {"on":true, "sat":255, "bri":255,"hue":10000}
</pre>
<h4>Name einer Lampe ändern</h4>
<pre>
Adress: http://[bridge ip address]/api/[username]/lights/[id]
Arguments: {"name":"Bedroom Light"}
</body>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment