Skip to content

Commit

Permalink
v1.6a
Browse files Browse the repository at this point in the history
  • Loading branch information
FredBardin committed Sep 30, 2017
1 parent 56eca3d commit 7c2fe6b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions include/hueapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,6 @@ function loadInfo($action){

// Store info array with action result
$ar_action = explode("/",$action);

//==> hack for msl lights and groups
switch ($ar_action[0]) {
case "lights" :
$json_info = file_get_contents("include/lights.json.txt");
break;
case "groups" :
$json_info = file_get_contents("include/groups.json.txt");
break;
}
if (isset($ar_action[1])){ // if id requested : returns only selected id
$array_temp = json_decode($json_info,true);
$json_info = json_encode($array_temp[$ar_action[1]]);
}
//=============

$current_info = &$this->info;
foreach($ar_action as $key){
$current_info = &$current_info[$key];
Expand Down
2 changes: 1 addition & 1 deletion include/hueeffect.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// <setcolor /> : put a saved on+color on a given light (default) or group id (+[transitiontime])
//----------------------------------------------------
// F. Bardin 14/11/2015
// 11/07/2015 : add 'on' state to getcolor/setcolor
// 11/07/2016 : add 'on' state to getcolor/setcolor
//====================================================
// Anti-hack
if (! defined('ANTI_HACK')){exit;}
Expand Down

0 comments on commit 7c2fe6b

Please sign in to comment.