Skip to content

Commit

Permalink
Version 1.2.0
Browse files Browse the repository at this point in the history
Added multiple new Helpers
Added support for new candle hue bulbs
PortalDiscoverLocalBridges and NetworkDiscoverLocalBridges now select a
cached bridge via huepi.prototype._BridgeCacheSelectFromLocalBridges
Removed huepi.HelperHuetoHueAng
  • Loading branch information
ArndBrugman committed Mar 23, 2017
1 parent 6772cec commit f32e5f9
Show file tree
Hide file tree
Showing 10 changed files with 581 additions and 16,542 deletions.
2,070 changes: 0 additions & 2,070 deletions Docs/-_anonymous_-huepi.Lightstate.html

This file was deleted.

1,912 changes: 2 additions & 1,910 deletions Docs/huepi.Lightstate.html

Large diffs are not rendered by default.

12,152 changes: 3 additions & 12,149 deletions Docs/huepi.html

Large diffs are not rendered by default.

486 changes: 284 additions & 202 deletions Docs/huepi.js.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ <h3> </h3>
</div>

<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="-_anonymous_-huepi.Lightstate.html">Lightstate</a></li></ul>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="huepi.html">huepi</a></li><li><a href="huepi.Lightstate.html">Lightstate</a></li></ul>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Mar 02 2017 16:33:17 GMT+0100 (CET)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Mar 23 2017 17:53:09 GMT+0100 (CET)
</footer>

<script> prettyPrint(); </script>
Expand Down
Binary file modified hue Bulbs, Strips and Modules.xlsx
Binary file not shown.
5 changes: 3 additions & 2 deletions hueImage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />

<script src='http://code.jquery.com/jquery-1.11.2.min.js' type='text/javascript' ></script>
<script src='../huepi.js' type='text/javascript'></script>

</head>
Expand All @@ -30,8 +31,8 @@
var XYCanvas = document.getElementById("XYCanvas");
var XYContext = document.getElementById("XYCanvas").getContext("2d");
var size = GetUrlValue('size') || 512;
HueCanvas.width =
CTCanvas.width =
HueCanvas.width =
CTCanvas.width =
XYCanvas.width = size;
HueCanvas.height = HueCanvas.width;
CTCanvas.height = Math.round(CTCanvas.width / 2);
Expand Down
10 changes: 4 additions & 6 deletions hueMediate/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
<body>
<script type='text/javascript' >
var MyHue = new huepi();
// OBSOLETE! May not be set externally, comes from bridge when whitelisting! MyHue.Username = '085efe879ee3ed83c04efc28a0da03d3';
var HeartbeatInterval;
var HueImage = new Image();
HueImage.src = 'images/HUE.png';
Expand All @@ -101,7 +100,7 @@
window.onresize = function() {
Redraw();
}

function Redraw() {
var HueCanvas = document.getElementById('HUECanvas');
var HueContext = document.getElementById('HUECanvas').getContext('2d');
Expand Down Expand Up @@ -145,7 +144,6 @@
window.onresize();
ConnectToHueBridge();
HeartbeatInterval = setInterval(StatusHeartbeat, 2500);
//StatusHeartbeat(); // Execute Immediate Too!
}

function onPause() {
Expand All @@ -158,7 +156,7 @@
$('#HUEBridgeName').text('Bridge Name: ' +MyHue.BridgeName);
$('#HUEStatus').text('Connected');
$('#HUEInfoBar').slideUp(1500);

$('#brightnessslider').val(MyHue.Lights[2].state.bri); // Get brightness of 2nd light for now...
$('#brightnessslider').slider('refresh');
DemoBehaviour();
Expand Down Expand Up @@ -260,7 +258,7 @@
} else if (MyHue.Lights[6].state.colormode === 'ct') {
RGB = huepi.HelperColortemperaturetoRGB(Math.round(1000000.0 / MyHue.Lights[6].state.ct));
}

console.log('\n');
console.log('ColorMode ' + MyHue.Lights[6].state.colormode);
console.log('hue ' + MyHue.Lights[6].state.hue);
Expand All @@ -273,7 +271,7 @@
xy = huepi.HelperRGBtoXY(RGB.Red, RGB.Green, RGB.Blue);
HueAngSatBri = huepi.HelperRGBtoHueAngSatBri(RGB.Red, RGB.Green, RGB.Blue);
HueAngSatBri.Bri = MyHue.Lights[6].state.bri / 255;

console.log(RGB);
console.log(xy);
console.log(HueAngSatBri);
Expand Down
Loading

0 comments on commit f32e5f9

Please sign in to comment.