From: vincent Date: Sun, 12 Dec 2021 09:48:59 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=25c0b68a2416b126624a7dc9c6640f74a9e5e980;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 406367f..72f4855 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,65 +2,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/scripts/cron/cron.php b/scripts/cron/cron.php index ac1ddd3..42d0bc7 100644 --- a/scripts/cron/cron.php +++ b/scripts/cron/cron.php @@ -237,9 +237,9 @@ function cronWeather($cronmin) $res['outdoor_temp'] = toNumber(getDomoticzDeviceStatus(1467), 1); $res['outdoor_humidity'] = toNumber(getDomoticzDeviceStatus(1026), true); $res['outdoor_pressure'] = toNumber(getDomoticzDeviceStatus(1027), true); - $res['backyard_temp'] = toNumber(getDomoticzDeviceStatus(1025), 1); - $res['backyard_humidity'] = toNumber(getDomoticzDeviceStatus(1026), true); - $res['backyard_pressure'] = toNumber(getDomoticzDeviceStatus(1027), true); + $res['backyard_temp'] = toNumber(getDomoticzDeviceStatus(6840), 1); + $res['backyard_humidity'] = toNumber(getDomoticzDeviceStatus(6841), true); + $res['backyard_pressure'] = toNumber(getDomoticzDeviceStatus(6842), true); $res['bathroom_temp'] = toNumber(getDomoticzDeviceStatus(1346), 1); $res['bathroom_humidity'] = toNumber(getDomoticzDeviceStatus(1347), true); $res['bedroom_temp'] = toNumber(getDomoticzDeviceStatus(1356), 1); diff --git a/scripts/domoticz_device_event.php b/scripts/domoticz_device_event.php index 5324b71..e3f4bf2 100644 --- a/scripts/domoticz_device_event.php +++ b/scripts/domoticz_device_event.php @@ -3,10 +3,12 @@ define('TIMELIMIT', 1); $_GET['im'] = '5'; +$wcswitch = 6448; + if ($_GET['device'] == 4680 || $_GET['device'] == 1476 || $_GET['device'] == 1478 || $_GET['device'] == 4955) { $forceConfig = 'salon'; } -if ($_GET['device'] == 1695) { +if ($_GET['device'] == $wcswitch) { $forceConfig = 'wc'; } if ($_GET['device'] == 4600) { @@ -18,6 +20,7 @@ if ($_GET['device'] == 4711) { require_once "import.php"; + if ($_GET['device'] == 480) { chambreToggle(); } else if ($_GET['device'] == 4680 || $_GET['device'] == 1476 || $_GET['device'] == 1478 || $_GET['device'] == 4955) { @@ -53,7 +56,7 @@ if ($_GET['device'] == 480) { } } else if ($_GET['device'] == 1451) { domoticzSwitch(1450); -} else if ($_GET['device'] == 1695) { +} else if ($_GET['device'] == $wcswitch) { $forceConfig = 'wc'; switch ($_GET['state']) { case 'Double_Click':