diff --git a/core/api/mobile.api.php b/core/api/mobile.api.php index a185608b..d1acfc21 100755 --- a/core/api/mobile.api.php +++ b/core/api/mobile.api.php @@ -622,19 +622,9 @@ function saveMenuFromAppV2($menu, $mobile) $jsonrpc->makeSuccess(); } -/** - * coming soon - * - * @return - */ -if ($jsonrpc->getMethod() == "syncBella") { - log::add('mobile', 'debug', '┌──────────▶︎ syncBella ─────────────────────'); - log::add('mobile', 'debug', '| JeedomApp ─▶︎ syncBella'); - log::add('mobile', 'debug', '└───────────────────────────────────────────'); -} /** - * get notifiactions present in json file + * get notifications present in json file * * @return array */ diff --git a/core/class/bellaMobile.class.php b/core/class/bellaMobile.class.php deleted file mode 100644 index bf7bee0d..00000000 --- a/core/class/bellaMobile.class.php +++ /dev/null @@ -1,150 +0,0 @@ -. - */ - -/* * ***************************Includes********************************* */ -require_once dirname(__FILE__) . '/../../../../core/php/core.inc.php'; - -class bellaMobile extends eqLogic -{ - function recupAllCmd($jeeObject_id) - { - $arrayBella = array(); - $jeeObject = jeeObject::byId(); - $eqLogics = $jeeObject->getEqLogic(); - foreach ($eqLogics as $eqLogic) { - $cmds = $eqLogic->getCmd(); - foreach ($cmds as $cmd) { - $arrayBella[$cmd->getId()] = array(); - $arrayBella[$cmd->getId()]['options'] = array(); - $arrayBella[$cmd->getId()]['options']['name'] = $cmd->getName(); - $arrayBella[$cmd->getId()]['options']['value'] = $cmd->getDisplay('value'); - $arrayBella[$cmd->getId()]['options']['genericType'] = $cmd->getGenericType(); - } - } - } - - function syncBella() {} - - public static function jsonBella() - { - $arrayBella = array( - 0 => array( - 0 => array( - 'size' => 1, - 'type' => 'onOff', - 'idEvent' => [7], - 'options' => array( - 'on' => 0, - 'title' => "Prise", - 'value' => null, - 'icons' => array( - 'on' => array('type' => "jeedomapp", 'name' => "prise", 'color' => "#f7d959"), - 'off' => array('type' => "jeedomapp", 'name' => "prise-off", 'color' => "#a4a4a3") - ), - 'actions' => array( - 'on' => array( - 'id' => 8 - ), - 'off' => array( - 'id' => 9 - ) - ), - 'iconBlur' => false - ) - ), - 1 => array( - 'size' => 1, - 'type' => 'onOff', - 'options' => array( - 'on' => 0, - 'title' => "Lumière salon", - 'value' => null, - 'icons' => array( - 'on' => array('type' => "jeedomapp", 'name' => "ampoule-on", 'color' => "#f7d959"), - 'off' => array('type' => "jeedomapp", 'name' => "ampoule-off", 'color' => "#a4a4a3") - ), - 'iconBlur' => false - ) - ), - 2 => array( - 'size' => 1, - 'type' => 'info', - 'options' => array( - 'on' => 0, - 'title' => "Température", - 'value' => null, - 'icons' => array( - 'on' => array('type' => "jeedomapp", 'name' => "temperature", 'color' => "#00ff00"), - 'off' => array('type' => "jeedomapp", 'name' => "temperature", 'color' => "#a4a4a3") - ), - 'iconBlur' => false - ) - ), - 4 => array( - 'size' => 1, - 'type' => 'info', - 'options' => array( - 'on' => 0, - 'title' => "Présence", - 'value' => null, - 'icons' => array( - 'on' => array('type' => "jeedom", 'name' => "mouvement", 'color' => "#FF0000"), - 'off' => array('type' => "jeedom", 'name' => "mouvement", 'color' => "#a4a4a3") - ), - 'iconBlur' => true - ) - ) - ), - 1 => array( - 5 => array( - 'size' => 2, - 'type' => 'meteo', - 'options' => array( - 'on' => 0, - 'title' => "Météo", - 'value' => null, - 'icons' => array( - 'on' => array('type' => "jeedomapp", 'name' => "meteo", 'color' => "#FF0000"), - 'off' => array('type' => "jeedomapp", 'name' => "meteo", 'color' => "#a4a4a3") - ), - 'iconBlur' => true - ) - ), - 6 => array( - 'size' => 1, - 'type' => 'test', - 'options' => array() - ), - 7 => array( - 'size' => 1, - 'type' => 'test', - 'options' => array() - ) - ), - 2 => array( - 8 => array( - 'size' => 4, - 'type' => 'test', - 'options' => array() - ) - ) - ); - - return json_encode($arrayBella); - } -} diff --git a/core/class/mobile.class.php b/core/class/mobile.class.php index 0fdaf818..3c873be2 100755 --- a/core/class/mobile.class.php +++ b/core/class/mobile.class.php @@ -19,7 +19,6 @@ /* * ***************************Includes********************************* */ require_once dirname(__FILE__) . '/../../../../core/php/core.inc.php'; error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); -include_file('core', 'bellaMobile', 'class', 'mobile'); class mobile extends eqLogic { diff --git a/desktop/php/panelWebApp.php b/desktop/php/panelWebApp.php deleted file mode 100755 index e85008e1..00000000 --- a/desktop/php/panelWebApp.php +++ /dev/null @@ -1,467 +0,0 @@ - -