diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..9014cac --- /dev/null +++ b/CONTRIBUTING.md @@ -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. \ No newline at end of file diff --git a/histo.txt b/histo.txt index bfbf13d..3777aa0 100644 --- a/histo.txt +++ b/histo.txt @@ -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 diff --git a/include/effects.php b/include/effects.php index a71a45b..23977fc 100644 --- a/include/effects.php +++ b/include/effects.php @@ -26,7 +26,7 @@ if (! isset($descri[$i]['name'])){$descri[$i]['name'] = $effects[$i];} echo "\n"; echo ""; - echo ""; + echo ""; echo ""; @@ -37,6 +37,7 @@ diff --git a/include/rules.php b/include/rules.php index 87fdab9..567774b 100644 --- a/include/rules.php +++ b/include/rules.php @@ -16,10 +16,10 @@ 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 diff --git a/include/scenes.php b/include/scenes.php index 902e131..29d78e4 100644 --- a/include/scenes.php +++ b/include/scenes.php @@ -15,7 +15,7 @@ name array -$a_sname=""; +$a_sname = array(); foreach ($HueAPI->info['scenes'] as $sceneid => $sval){ $a_sname[$sceneid] = $sval['name']; }