Свойства класса:
Методы класса:
$this->setProperty('volumeLevel',$params['VALUE']); if (IsWindowsOs()) { $volume=round(65535*$params['VALUE']/100); safe_exec('..\\apps\\nircmd\\nircmdc setsysvolume '.$volume); } else { safe_exec('amixer sset PCM,0 '.$params['VALUE'].'%'); } say("Изменилась громкость до ".$params['VALUE']." процентов");
Объекты класса:
say("Отключено питание");
$command=$params['command']; $short_command=''; $dt=recognizeTime($command,$short_command); if (preg_match('/скажи сколько врем/uis',$command)) { if ($dt>0) { addScheduledJob("command".$dt,"processCommand('".$short_command."');",$dt); say('Задача принята',2); return; } global $voicemode; $voicemode='on'; say('Сейчас '.timeNow(),2); } elseif (preg_match('/сколько время/uis',$command)) { if ($dt>0) { addScheduledJob("command".$dt,"processCommand('".$short_command."');",$dt); say('Задача принята'); echo $short_command; return; } say('Сейчас '.timeNow()); } elseif (preg_match('/повтори (.+)/uis',$command,$m) || preg_match('/скажи (.+)/uis',$command,$m)) { if ($dt>0) { addScheduledJob("command".$dt,"processCommand('".$short_command."');",$dt); say('Задача принята',2); return; } global $voicemode; $voicemode='on'; say($m[1],2); } else { say('Неизвестная команда...',2); }
Свойства класса:
Методы класса:
require(DIR_MODULES.'devices/processHomebridgeMQTT.inc.php');
Объекты класса:
Свойства класса:
Методы класса:
$this->setProperty('active',0);
$this->setProperty('active',1);
$this->setProperty("updated",time()); $this->setProperty("updatedTime",date('H:i')); if ($this->getProperty('active')) { say(processTitle($this->getProperty('title'))." ".LANG_GENERAL_ACTIVATED."."); } else { say(processTitle($this->getProperty('title'))." ".LANG_GENERAL_DEACTIVATED."."); }
Объекты класса:
setGlobal('minMsgLevel','2'); /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/nightmode_activate.php'); /* end injection of {SDevices} */
setGlobal('minMsgLevel','1'); /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/nightmode_deactivate.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/darknessmode_deactivate.php'); /* end injection of {SDevices} */ // Вызов метода Openable02.open callMethod('Openable02.open'); // Вызов метода Openable02.open callMethod('Openable01.open');
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/darknessmode_activate.php'); /* end injection of {SDevices} */ // Вызов метода Openable02.open callMethod('Openable02.close'); // Вызов метода Openable02.open callMethod('Openable01.close');
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/nobodyhomemode_activate.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/nobodyhomemode_deactivate.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/econommode_activate.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/econommode_deactivate.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/Rooms_updateActivityStatus.php'); /* end injection of {SDevices} */
$this->setProperty('SomebodyHere', 0); /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/Rooms_onIdle.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/Rooms_onActivity.php'); /* end injection of {SDevices} */
Объекты класса:
Свойства класса:
Методы класса:
if ($this->getProperty('Background') == 'Image') { $this->setProperty('IconButton', ''); } else if ($this->getProperty('Background') == 'Icon') { $this->setProperty('BackgroundImage', ''); }
if ($this->getProperty('BackgroundImage') == 'Spal\'nya') { $this->setProperty('BackgroundImage', 'Spalnya'); } else if ($this->getProperty('BackgroundImage') == 'Spal\'nya-1') { $this->setProperty('BackgroundImage', 'Spalnya-1'); } else if ($this->getProperty('BackgroundImage') == 'Spal\'nya-2') { $this->setProperty('BackgroundImage', 'Spalnya-2'); }
$NameButton; $NameButton = $this->getProperty('NameTransliterate'); if ($this->getProperty('Background') == 'Image') { $this->setProperty('BackgroundImage', $NameButton); } else if ($this->getProperty('Background') == 'Icon') { $this->setProperty('IconButton', $NameButton); }
Объекты класса:
if ($this->getProperty('EventHistoryHide') == 0) { $this->setProperty('EventHistoryHide', '1'); } else if ($this->getProperty('EventHistoryHide') == 1) { $this->setProperty('EventHistoryHide', '0'); }
if ($this->getProperty('MoonPhaseName') == 'Новолуние') { $this->setProperty('MoonPhase', 'MoonPhase01'); } else if ($this->getProperty('MoonPhaseName') == 'Растущая Луна') { $this->setProperty('MoonPhase', 'MoonPhase02'); } else if ($this->getProperty('MoonPhaseName') == 'Первый квартал') { $this->setProperty('MoonPhase', 'MoonPhase03'); } else if ($this->getProperty('MoonPhaseName') == 'Растущая Луна') { $this->setProperty('MoonPhase', 'MoonPhase04'); } else if ($this->getProperty('MoonPhaseName') == 'Полнолуние') { $this->setProperty('MoonPhase', 'MoonPhase05'); } else if ($this->getProperty('MoonPhaseName') == 'Убывающая луна') { $this->setProperty('MoonPhase', 'MoonPhase06'); } else if ($this->getProperty('MoonPhaseName') == 'Третий квартал') { $this->setProperty('MoonPhase', 'MoonPhase07'); } else if ($this->getProperty('MoonPhaseName') == 'Убывающий полумесяц') { $this->setProperty('MoonPhase', 'MoonPhase08'); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
sg('Button01.NameTransliterate',transliterate(gg('Button01.NameButton')));
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
$color=hexdec(gg('SetupRightButton.colorRGBBand')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('SetupRightButton.backgroundBand',$cmd);
$color=hexdec(gg('SetupRightButton.colorRGB')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('SetupRightButton.backgroundButton',$cmd);
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
sg('Button11.IconButton',transliterate(gg('Button11.NameButton')));
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
sg('Button07.NameTransliterate',transliterate(gg('Button07.NameButton')));
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
sg('Button10.IconButton',transliterate(gg('Button10.NameButton')));
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
sg('Button09.IconButton',transliterate(gg('Button09.NameButton')));
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
sg('Button08.IconButton',transliterate(gg('Button08.NameButton')));
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
sg('Button03.NameTransliterate',transliterate(gg('Button03.NameButton')));
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
sg('Button02.NameTransliterate',transliterate(gg('Button02.NameButton')));
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
sg('Button06.NameTransliterate',transliterate(gg('Button06.NameButton')));
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
sg('Button05.NameTransliterate',transliterate(gg('Button05.NameButton')));
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
sg('Button04.NameTransliterate',transliterate(gg('Button04.NameButton')));
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
$color=hexdec(gg('SetupButton.colorRGB')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('SetupButton.backgroundButton',$cmd);
if ($this->getProperty('Background') == 'Image') { setGlobal('Button01'.'.'.'Background', 'Image'); setGlobal('Button02'.'.'.'Background', 'Image'); setGlobal('Button03'.'.'.'Background', 'Image'); setGlobal('Button04'.'.'.'Background', 'Image'); setGlobal('Button05'.'.'.'Background', 'Image'); setGlobal('Button06'.'.'.'Background', 'Image'); setGlobal('Button07'.'.'.'Background', 'Image'); } else if ($this->getProperty('Background') == 'Icon') { setGlobal('Button01'.'.'.'Background', 'Icon'); setGlobal('Button02'.'.'.'Background', 'Icon'); setGlobal('Button03'.'.'.'Background', 'Icon'); setGlobal('Button04'.'.'.'Background', 'Icon'); setGlobal('Button05'.'.'.'Background', 'Icon'); setGlobal('Button06'.'.'.'Background', 'Icon'); setGlobal('Button07'.'.'.'Background', 'Icon'); }
if ($this->getProperty('EventHistoryHide') == 0) { $this->setProperty('EventHistoryHide', '1'); } else if ($this->getProperty('EventHistoryHide') == 1) { $this->setProperty('EventHistoryHide', '0'); }
if ($this->getProperty('MoonPhaseName') == 'Новолуние') { $this->setProperty('MoonPhase', 'MoonPhase01'); } else if ($this->getProperty('MoonPhaseName') == 'Растущая Луна') { $this->setProperty('MoonPhase', 'MoonPhase02'); } else if ($this->getProperty('MoonPhaseName') == 'Первый квартал') { $this->setProperty('MoonPhase', 'MoonPhase03'); } else if ($this->getProperty('MoonPhaseName') == 'Растущая Луна') { $this->setProperty('MoonPhase', 'MoonPhase04'); } else if ($this->getProperty('MoonPhaseName') == 'Полнолуние') { $this->setProperty('MoonPhase', 'MoonPhase05'); } else if ($this->getProperty('MoonPhaseName') == 'Убывающая луна') { $this->setProperty('MoonPhase', 'MoonPhase06'); } else if ($this->getProperty('MoonPhaseName') == 'Третий квартал') { $this->setProperty('MoonPhase', 'MoonPhase07'); } else if ($this->getProperty('MoonPhaseName') == 'Убывающий полумесяц') { $this->setProperty('MoonPhase', 'MoonPhase08'); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
sg('Button01.NameTransliterate',transliterate(gg('Button01.NameButton')));
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
sg('Button07.NameTransliterate',transliterate(gg('Button07.NameButton')));
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
$color=hexdec(gg('SetupRightButton.colorRGB')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('SetupRightButton.backgroundButton',$cmd);
$color=hexdec(gg('SetupRightButton.colorRGBBand')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('SetupRightButton.backgroundBand',$cmd);
sg('Button11.IconButton',transliterate(gg('Button11.NameButton')));
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
sg('Button10.IconButton',transliterate(gg('Button10.NameButton')));
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
sg('Button09.IconButton',transliterate(gg('Button09.NameButton')));
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
sg('Button02.NameTransliterate',transliterate(gg('Button02.NameButton')));
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
sg('Button08.IconButton',transliterate(gg('Button08.NameButton')));
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
sg('Button03.NameTransliterate',transliterate(gg('Button03.NameButton')));
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
sg('Button06.NameTransliterate',transliterate(gg('Button06.NameButton')));
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
sg('Button05.NameTransliterate',transliterate(gg('Button05.NameButton')));
sg('Button04.NameTransliterate',transliterate(gg('Button04.NameButton')));
$IndicatorColorActive; $IndicatorColorNoActive; $IndicatorColorActive = getGlobal('SetupButton'.'.'.'IndicatorColorActive'); $IndicatorColorNoActive = getGlobal('SetupButton'.'.'.'IndicatorColorNoActive'); if ($this->getProperty('SomebodyHere') == 0) { $this->setProperty('SomebodyHereColor', $IndicatorColorNoActive); } else if ($this->getProperty('SomebodyHere') == 1) { $this->setProperty('SomebodyHereColor', $IndicatorColorActive); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
if ($this->getProperty('Lighting') == 0) { $this->setProperty('IconLighting', 'LightingOff'); $this->setProperty('lightingSymbol', ''); } else if ($this->getProperty('Lighting') != 0) { $this->setProperty('IconLighting', 'LightingOn'); $this->setProperty('lightingSymbol', '%'); }
if ($this->getProperty('Hiddenbutton') == 0) { $this->setProperty('Hiddenbutton', '1'); } else if ($this->getProperty('Hiddenbutton') == 1) { $this->setProperty('Hiddenbutton', '0'); }
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
$color=hexdec(gg('SetupButton.colorRGB')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('SetupButton.backgroundButton',$cmd);
if ($this->getProperty('Background') == 'Image') { setGlobal('Button01'.'.'.'Background', 'Image'); setGlobal('Button02'.'.'.'Background', 'Image'); setGlobal('Button03'.'.'.'Background', 'Image'); setGlobal('Button04'.'.'.'Background', 'Image'); setGlobal('Button05'.'.'.'Background', 'Image'); setGlobal('Button06'.'.'.'Background', 'Image'); setGlobal('Button07'.'.'.'Background', 'Image'); } else if ($this->getProperty('Background') == 'Icon') { setGlobal('Button01'.'.'.'Background', 'Icon'); setGlobal('Button02'.'.'.'Background', 'Icon'); setGlobal('Button03'.'.'.'Background', 'Icon'); setGlobal('Button04'.'.'.'Background', 'Icon'); setGlobal('Button05'.'.'.'Background', 'Icon'); setGlobal('Button06'.'.'.'Background', 'Icon'); setGlobal('Button07'.'.'.'Background', 'Icon'); }
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SDevices_batteryLevelUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SDevices_keepAlive.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SDevices_setUpdatedText.php'); /* end injection of {SDevices} */
require(DIR_MODULES.'devices/SDevices_statusUpdated.php');
require(DIR_MODULES.'devices/SDevices_logicAction.php');
Свойства класса:
Методы класса:
require(DIR_MODULES.'devices/SButtons_pressed.php');
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SCameras_takeSeries.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SCameras_updatePreview.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SCameras_takeSnapshot.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SCameras_motionDetected.php'); /* end injection of {SDevices} */
Объекты класса:
Свойства класса:
Методы класса:
require(DIR_MODULES.'devices/SControllers_switch.php');
require(DIR_MODULES.'devices/SControllers_turnOff.php');
require(DIR_MODULES.'devices/SControllers_turnOn.php');
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SAirConditioners_valueUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SAirConditioners_tempDown.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SAirConditioners_tempUp.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SAirConditioners_configUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SAirConditioners_fanSpeedUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SAirConditioners_thermostatUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SAirConditioners_setTargetTemperature.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SAirConditioners_setThermostatMode.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SAirConditioners_setFanSpeedMode.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SDimmers_setLevel.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SDimmers_statusUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SDimmers_levelWorkUpdated.php'); /* end injection of {SDevices} */
require(DIR_MODULES.'devices/SDimmers_turnOff.php');
require(DIR_MODULES.'devices/SDimmers_turnOn.php');
require(DIR_MODULES.'devices/SDimmers_levelUpdated.php');
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SGroups_statusUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SGroups_switch.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SGroups_turnOn.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SGroups_turnOff.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SMedias_pause.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SMedias_setSource.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SMedias_setChannel.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SMedias_setVolume.php'); /* end injection of {SDevices} */
Объекты класса:
sayReply(' Включен полив огурцов.', 2);
sayReply(' Полив огурцов завершен.', 2);
sayReply(' Полив редиса завершен.', 2);
sayReply(' Включен полив редиса.', 2);
sayReply(' Включен полив свеклы.', 2);
sayReply(' Полив свеклы завершен.', 2);
sayReply(' Полив томатов и кабачков завершен.', 2);
sayReply(' Включен полив томатов и кабачков.', 2);
say('Наполнение бочки в теплице завершено!', 2);
if (getGlobal('Openclose02.status') == 0) { setGlobal('Relay15.status',0); say('Бочка в теплице полная, налив не возможен!', 2); } else { say('Наполняю бочку в теплице.', 2); }
if (getGlobal('Openclose02.status') == 0) { setGlobal('Relay15.status',0); say('Бочка в теплице полная, налив не возможен!', 2); } else { say('Наполняю бочку в теплице.', 2); }
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SRGB_colorUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SRGB_setColor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SRGB_turnOn.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SRGB_turnOff.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
if ($this->getProperty('disabled') == 1) { $this->setProperty('currentTargetValue', '0'); }
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_setTargetTemperature.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_turnOff.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_turnOn.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_disable.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_enable.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_switchEnable.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_tempUp.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_tempDown.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_statusUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_valueUpdated.php'); /* end injection of {SDevices} */
Объекты класса:
sleep (15); $this->callMethod('disable');
//$this->callMethod('newcurrentTargetValue'); if (getGlobal('$this->.currentTargetValue') < getGlobal('$this->.value')) { setGlobal('$this->.relay_status',0); } else { setGlobal('$this->.relay_status',1); }
sleep (15); $this->callMethod('disable');
sleep (15); $this->callMethod('disable');
//$this->callMethod('newcurrentTargetValue'); if (getGlobal('$this->.currentTargetValue') < getGlobal('$this->.value')) { setGlobal('$this->.relay_status',0); } else { setGlobal('$this->.relay_status',1); }
sleep (15); $this->callMethod('disable');
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/STVs_setVolume.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/STVs_pause.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/STVs_setSource.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/STVs_setChannel.php'); /* end injection of {SDevices} */
Объекты класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SVacuums_pause.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_cycleProc.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_statusUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_presetUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_addPreset.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_delPreset.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_turnOff.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_cycleSwitch.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_cycleOn.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_cycleOff.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_cycleUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_getInfo.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_turnOn.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_switch.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_colorUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_paramsUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SWLED_stateUpdated.php'); /* end injection of {SDevices} */
Объекты класса:
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SCounters_pulseDetected.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SCounters_refreshStats.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SCounters_valueWorkUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SCounters_valueUpdated.php'); /* end injection of {SDevices} */
Свойства класса:
Объекты класса:
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SLeak_unblockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SLeak_blockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SLeak_statusUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SLeak_alert.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SMotions_blockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SMotions_unblockSensor.php'); /* end injection of {SDevices} */
require(DIR_MODULES.'devices/SMotions_motionDetected.php');
Объекты класса:
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SMotions2_blockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SMotions2_unblockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SMotions2_motionDetected.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenable_switch.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenable_open.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenable_close.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenable_statusUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenable_setLevel.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenable_levelUpdated.php'); /* end injection of {SDevices} */
Объекты класса:
include_once(DIR_MODULES . 'zigbee2mqtt/zigbee2mqtt.class.php'); $z2m = new zigbee2mqtt(); $z2m->sendcommand('zigbee2mqtt/0x842712fffeba489f/set', '{"state":"open"}');
include_once(DIR_MODULES . 'zigbee2mqtt/zigbee2mqtt.class.php'); $z2m = new zigbee2mqtt(); $z2m->sendcommand('zigbee2mqtt/0x842712fffeba489f/set', '{"state":"close"}');
include_once(DIR_MODULES . 'zigbee2mqtt/zigbee2mqtt.class.php'); $z2m = new zigbee2mqtt(); $z2m->sendcommand('zigbee2mqtt/0x842712fffeba429a/set', '{"state":"open"}');
include_once(DIR_MODULES . 'zigbee2mqtt/zigbee2mqtt.class.php'); $z2m = new zigbee2mqtt(); $z2m->sendcommand('zigbee2mqtt/0x842712fffeba429a/set', '{"state":"close"}');
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenClose_blockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenClose_unblockSensor.php'); /* end injection of {SDevices} */
require(DIR_MODULES.'devices/SOpenClose_statusUpdated.php');
Объекты класса:
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SSensors_unblockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SSensors_blockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SSensors_alert.php'); /* end injection of {SDevices} */
require(DIR_MODULES.'devices/SSensors_valueUpdated.php');
Свойства класса:
Методы класса:
$titl = $this->object_title; $desc = $this->description; say("$desc ".getGlobal("$titl.value")." %.",2);
Объекты класса:
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SLightSensors_periodMinValueUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SLightSensors_valueUpdated.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SPowerSensors_valueUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SPowerSensors_loadStatusChanged.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/STempHumSensors_valueUpdated.php'); /* end injection of {SDevices} */
Объекты класса:
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SSmoke_unblockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SSmoke_blockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SSmoke_alert.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SSmoke_statusUpdated.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/STv_statusUpdated.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/STv_switch.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/STv_turnOn.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/STv_turnOff.php'); /* end injection of {SDevices} */
Свойства класса:
Свойства класса:
Методы класса:
Объекты класса:
$details=array(); $red_state=0; $yellow_state=0; if (!isOnline('Internet')) { $yellow_state=1; $details[]=LANG_GENERAL_NO_INTERNET_ACCESS; } if ($red_state) { $state='red'; $state_title=LANG_GENERAL_RED; } elseif ($yellow_state) { $state='yellow'; $state_title=LANG_GENERAL_YELLOW; } else { $state='green'; $state_title=LANG_GENERAL_GREEN; } $new_details=implode(". ",$details); if ($this->getProperty("stateDetails")!=$new_details) { $this->setProperty('stateDetails',$new_details); } if ($this->getProperty('stateColor')!=$state) { $this->setProperty('stateColor',$state); $this->setProperty('stateTitle',$state_title); if ($state!='green') { say(LANG_GENERAL_COMMUNICATION_STATE." ".LANG_GENERAL_CHANGED_TO." ".$state_title."."); say(implode(". ",$details)); } else { say(LANG_GENERAL_COMMUNICATION_STATE." ".LANG_GENERAL_RESTORED_TO." ".$state_title); } $this->callMethod('stateChanged'); }
$details=array(); $red_state=0; $yellow_state=0; if ($red_state) { $state='red'; $state_title=LANG_GENERAL_RED; } elseif ($yellow_state) { $state='yellow'; $state_title=LANG_GENERAL_YELLOW; } else { $state='green'; $state_title=LANG_GENERAL_GREEN; } $new_details=implode(". ",$details); if ($this->getProperty("stateDetails")!=$new_details) { $this->setProperty('stateDetails',$new_details); } if ($this->getProperty('stateColor')!=$state) { $this->setProperty('stateColor',$state); $this->setProperty('stateTitle',$state_title); if ($state!='green') { say(LANG_GENERAL_SECURITY_STATE." ".LANG_GENERAL_CHANGED_TO." ".$state_title."."); say(implode(". ",$details)); } else { say(LANG_GENERAL_SECURITY_STATE." ".LANG_GENERAL_RESTORED_TO." ".$state_title); } $this->callMethod('stateChanged'); }
$details=array(); $red_state=0; $yellow_state=0; $cycles=array('states'=>'states','main'=>'main','execs'=>'exec','scheduler'=>'scheduler'); foreach($cycles as $k=>$v) { $tm=getGlobal('ThisComputer.cycle_'.$k.'Run'); if (time()-$tm>5*60) { $red_state=1; $details[]=$v." ".LANG_GENERAL_CYCLE." ".LANG_GENERAL_STOPPED."."; } } $cycles=array('ping'=>'ping','webvars'=>'webvars'); foreach($cycles as $k=>$v) { $tm=getGlobal('ThisComputer.cycle_'.$k.'Run'); if (time()-$tm>10*60) { $yellow_state=1; $details[]=$v." ".LANG_GENERAL_CYCLE." ".LANG_GENERAL_STOPPED."."; } } if ((int)gg('ThisComputer.SpaceProblems')>0) { $red_state=1; $details[]=LANG_GENERAL_RUNNING_OUT_SPACE." (".gg('ThisComputer.SpaceProblems_Details').').'; } /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/system_checkstate.php'); /* end injection of {SDevices} */ if ($red_state) { $state='red'; $state_title=LANG_GENERAL_RED; } elseif ($yellow_state) { $state='yellow'; $state_title=LANG_GENERAL_YELLOW; } else { $state='green'; $state_title=LANG_GENERAL_GREEN; } $new_details=implode(". ",$details); if ($this->getProperty("stateDetails")!=$new_details) { $this->setProperty('stateDetails',$new_details); } if ($this->getProperty('stateColor')!=$state) { $this->setProperty('stateColor',$state); $this->setProperty('stateTitle',$state_title); if ($state!='green') { say(LANG_GENERAL_SYSTEM_STATE." ".LANG_GENERAL_CHANGED_TO." ".$state_title."."); say(implode(". ",$details),2); } else { say(LANG_GENERAL_SYSTEM_STATE." ".LANG_GENERAL_RESTORED_TO." ".$state_title,2); } $this->callMethod('stateChanged'); }
Свойства класса:
Методы класса:
Объекты класса:
$paths=array('/var/log/*.1','/var/log/*.2', '/var/log/*.1.*', '/var/log/*.2.*', '/var/log/*.3.*', '/var/log/*.4.*', '/var/log/*.5.*', '/var/log/*.6.*', '/var/log/*.7.*' ); foreach($paths as $p) { safe_exec('rm '.$p); } runScript('Hourly'); runScript('filesClearOld');
$h=(int)date('G',time()); $m=date('i',time()); if (isWeekDay()) { } sg('ThisComputer.DayOfMonthNum',date('d')); sg('ThisComputer.DayOfWeekTXT',date('l')); sg('ThisComputer.MonthTXTalt',date('F')); if (timeBetween(getGlobal('NightModeEnd'),getGlobal('NightModeStart')) && getGlobal('clockChimeEnabled')) { if ($m=="00") { say(timeNow(),1); } } setGlobal('timeNow',date('H:i')); $homeStatus=date('H:i'); if (getGlobal('NobodyHomeMode.active')) { $homeStatus.=' '.LANG_DEVICES_ROOMS_NOBODYHOME; } else { $homeStatus.=' '.LANG_DEVICES_ROOMS_SOMEBODYHOME; } $homeStatus.=' '.getGlobal('Security.stateDetails'); $homeStatus.=' '.getGlobal('System.stateDetails'); $homeStatus.=' '.getGlobal('Communication.stateDetails'); setGlobal('HomeStatus',$homeStatus); if (timeBetween(getGlobal('SunRiseTime'),getGlobal('SunSetTime')) && getGlobal('isDark')=="1") { setGlobal("isDark",0); callMethod('DarknessMode.deactivate'); } elseif (!timeBetween(getGlobal('SunRiseTime'),getGlobal('SunSetTime')) && getGlobal('isDark')!="1") { setGlobal("isDark",1); callMethod('DarknessMode.activate'); } if (timeIs("23:30") && (gg("EconomMode.active")!="1") && (gg("NobodyHomeMode.active")=="1")) { callMethod('EconomMode.activate'); } if (timeIs(gg('NightModeStart'))) { callMethod('NightMode.activate'); } elseif (timeIs(gg('NightModeEnd'))) { callMethod('NightMode.deactivate'); } if (timeIs("03:00")) { runScript("systemMaintenance"); } if (gg('ThisComputer.AlarmStatus') && timeIs(gg('ThisComputer.AlarmTime'))) { runScript('MorningAlarm'); }
Свойства класса:
Методы класса:
Объекты класса:
if (getGlobal('PinCode'.'.'.'pincode_visible') == 1 && getGlobal('PinCode'.'.'.'unlocked') == 0) { $timerCode=<<<EOT setGlobal('PinCode'.'.'.'pincode_visible', '0'); EOT; setTimeOut('PinCodeVisibleOn', $timerCode, (int)('20')); }
if ($this->getProperty('unlocked') == 0) { $this->setProperty('unlocked_text', 'LockLocked'); } else if ($this->getProperty('unlocked') == 1) { $this->setProperty('unlocked_text', 'LockUnlocked'); }
if (getGlobal('PinCode'.'.'.'pincode_visible') == 1 && getGlobal('PinCode'.'.'.'unlocked') == 0) { $timerCode=<<<EOT setGlobal('PinCode'.'.'.'pincode_visible', '0'); EOT; setTimeOut('PinCodeVisibleOn', $timerCode, (int)('20')); }
if ($this->getProperty('unlocked') == 0) { $this->setProperty('unlocked_text', 'LockLocked'); } else if ($this->getProperty('unlocked') == 1) { $this->setProperty('unlocked_text', 'LockUnlocked'); }
, Россия
© 2024 - Site Built By SergeJey | Реквизиты: Курицын С. С. ИНН 762001394609 | Контакты | Публичный договор
SmartLiving