Skip to content

Commit

Permalink
v1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
FredBardin committed Dec 16, 2017
1 parent a531955 commit e896b49
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Everyone can contribute to this project.

Before pushing a merge request, contact me via an Issue (for an improvement or a bug correction) or by mail.

Depending on the functionnality or bug, it could be taken into account directly in the project or thru a merge request.
1 change: 1 addition & 0 deletions histo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ WIP - Display now color and brightness of a lamp in details tab even if turned
WIP - Lights details tab now always displays changes immediately for color or brightness
- Add choose language function in 'about' tab for updatable config file
(depend on your installation)
- Scenes and rules tabs are now always displayed even with some strict type mode activated
v1.5 - 11/09/2016 :
- Add Sensors Rules management
- Update color conversion with new formulas from meethue
Expand Down
3 changes: 2 additions & 1 deletion include/effects.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
if (! isset($descri[$i]['name'])){$descri[$i]['name'] = $effects[$i];}
echo "\n<TR CLASS=radio>";
echo "<TD><SPAN CLASS=\"ui-icon ui-icon-radio-off\"><INPUT TYPE=radio NAME=efradio ID=".$effects[$i]."></SPAN>";
echo "<TD CLASS=sname><LABEL FOR=".$effects[$i].">".$descri[$i]['name']."</LABEL>";
echo "<TD CLASS=sname><LABEL FOR=".$effects[$i]."><BUTTON CLASS=fx fx=".$effects[$i].">".$descri[$i]['name']."</BUTTON></LABEL>";
echo "<TD><LABEL FOR=".$effects[$i].">";
if (isset($descri[$i]['comment'])){echo $descri[$i]['comment'];}
echo "</LABEL>";
Expand All @@ -37,6 +37,7 @@
<SCRIPT TYPE="text/javascript" SRC="js/effects.js"></SCRIPT>
<SCRIPT language="javascript">
$('#detail').hide("slide");
$('#tabs button.fx').button();
effectsTab();
</SCRIPT>

8 changes: 4 additions & 4 deletions include/rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<?php

// Create id->name array
$a_sname="";
foreach ($HueAPI->info['sensors'] as $sensorid => $sval){
$a_sname[$sensorid] = $sval['name'];
}
$a_sname = array();
//foreach ($HueAPI->info['sensors'] as $sensorid => $sval){
// $a_sname[$sensorid] = $sval['name'];
//}
asort($a_sname);

// Display sensors
Expand Down
2 changes: 1 addition & 1 deletion include/scenes.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<?php

// Create id->name array
$a_sname="";
$a_sname = array();
foreach ($HueAPI->info['scenes'] as $sceneid => $sval){
$a_sname[$sceneid] = $sval['name'];
}
Expand Down

0 comments on commit e896b49

Please sign in to comment.