diff --git a/include/hueapi.php b/include/hueapi.php index 8f8347f..7e4784a 100644 --- a/include/hueapi.php +++ b/include/hueapi.php @@ -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]; diff --git a/include/hueeffect.php b/include/hueeffect.php index 992c25d..bfcdabe 100644 --- a/include/hueeffect.php +++ b/include/hueeffect.php @@ -28,7 +28,7 @@ // : 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;}