Свойства класса:
Методы класса:
$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']." процентов");
Объекты класса:
$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); }
say("Отключено питание");
Свойства класса:
Методы класса:
//$params["USER_OBJECT"]
//$params["USER_OBJECT"]
Объекты класса:
Свойства класса:
Методы класса:
require(DIR_MODULES.'devices/processHomebridgeMQTT.inc.php');
Объекты класса:
Свойства класса:
Объекты класса:
Свойства класса:
Методы класса:
$this->setProperty("updated",time()); $this->setProperty("updatedTime",date('H:i')); if ($this->getProperty('active')) { say("Режим ".$this->getProperty('title')." активирован."); } else { say("Режим ".$this->getProperty('title')." выключен."); }
$this->setProperty('active',1);
$this->setProperty('active',0);
Объекты класса:
setGlobal('minMsgLevel','1'); /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/nightmode_deactivate.php'); /* end injection of {SDevices} */
setGlobal('minMsgLevel','2'); /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/nightmode_activate.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/darknessmode_activate.php'); /* end injection of {SDevices} */
$objects=getObjectsByProperty('groupSunrise','=','1'); if (is_array($objects)) { foreach($objects as $obj) { callMethod($obj.'.turnOff'); } } /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/darknessmode_deactivate.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/nobodyhomemode_activate.php'); /* end injection of {SDevices} */
if (gg('DarknessMode.active')) { $objects=getObjectsByProperty('greetingOnGroup','=','1'); if (is_array($objects)) { foreach($objects as $obj) { callMethod($obj.'.turnOn'); } } } /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/econommode_deactivate.php'); /* end injection of {SDevices} */
$objects=getObjectsByProperty('groupEco','=','1'); if (is_array($objects)) { foreach($objects as $obj) { callMethod($obj.'.turnOff'); } } $objects=getObjectsByProperty('allOffGroup','=','1'); if (is_array($objects)) { foreach($objects as $obj) { callMethod($obj.'.turnOff'); } } /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/econommode_activate.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
$latestActivity=$this->getProperty('LatestActivity'); $this->setProperty('LatestActivity',time()); $this->setProperty('LatestActivityTime',date('H:i')); $this->setProperty('SomebodyHere',1); $ot=$this->object_title; if ($this->getProperty("IdleDelay")) { $activity_timeout=(int)$this->getProperty("IdleDelay"); } else { $activity_timeout=10*60; } clearTimeOut($ot."_activity_timeout"); setTimeOut($ot."_activity_timeout","callMethod('".$ot.".onIdle');",$activity_timeout); $this->callMethod("updateActivityStatus"); /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/Rooms_onActivity.php'); /* end injection of {SDevices} */
$this->setProperty('SomebodyHere',0); /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/Rooms_onIdle.php'); /* end injection of {SDevices} */
$rooms=getObjectsByClass("Rooms"); $total=count($rooms); for($i=0;$i<$total;$i++) { $rooms[$i]['room']=getGlobal($rooms[$i]['TITLE'].'.Title'); if (!$rooms[$i]['room']) { $rooms[$i]['room']=$rooms[$i]['TITLE']; } $rooms[$i]['active']=getGlobal($rooms[$i]['TITLE'].'.SomebodyHere'); $rooms[$i]['time']=getGlobal($rooms[$i]['TITLE'].'.LatestActivity'); $rooms[$i]['diff']=time()-$rooms[$i]['time']; } function cmp($a, $b) { if ($a['diff'] == $b['diff']) { return 0; } return ($a['diff'] < $b['diff']) ? -1 : 1; } usort($rooms,"cmp"); if (!$rooms[0]['active']) { $somebodyHomeText="Никого нет дома. Были в ".date('H:i',$rooms[0]['time'])." (".$rooms[0]['room'].")"; } else { $res_rooms=array(); for($i=0;$i<$total;$i++) { if ($rooms[$i]['active']) { $res_rooms[]=$rooms[$i]['room']; } } $somebodyHomeText="Кто-то дома: ".implode(", ",$res_rooms); } setGlobal('somebodyHomeText',$somebodyHomeText); //echo "Updated"; /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/Rooms_updateActivityStatus.php'); /* end injection of {SDevices} */
Объекты класса:
Свойства класса:
Методы класса:
$ColorBorder; $ColorBorder = $this->getProperty('ColorBorder'); $this->setProperty('SomebodyHereColor', $ColorBorder);
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('backgroundBlocks') == 'Spal\'nya') { $this->setProperty('backgroundBlocks', 'Spalnya'); } else if ($this->getProperty('backgroundBlocks') == 'Spal\'nya-1') { $this->setProperty('backgroundBlocks', 'Spalnya-1'); } else if ($this->getProperty('backgroundBlocks') == 'Spal\'nya-2') { $this->setProperty('backgroundBlocks', 'Spalnya-2'); }
Объекты класса:
sg('InformationBlock10.backgroundBlocks',transliterate(gg('InformationBlock10.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock09.backgroundBlocks',transliterate(gg('InformationBlock09.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock06.backgroundBlocks',transliterate(gg('InformationBlock06.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock07.backgroundBlocks',transliterate(gg('InformationBlock07.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock08.backgroundBlocks',transliterate(gg('InformationBlock08.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock02.backgroundBlocks',transliterate(gg('InformationBlock02.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock03.backgroundBlocks',transliterate(gg('InformationBlock03.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock04.backgroundBlocks',transliterate(gg('InformationBlock04.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock05.backgroundBlocks',transliterate(gg('InformationBlock05.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
$color=hexdec(gg('InformationBlockSettings.colorRGB')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('InformationBlockSettings.ColorBorder',$cmd);
if ($this->getProperty('Hide') == 0) { $this->setProperty('Hide', '1'); } else if ($this->getProperty('Hide') == 1) { $this->setProperty('Hide', '0'); }
sg('InformationBlock01.backgroundBlocks',transliterate(gg('InformationBlock01.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
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('stateWeatherHide') == 0) { $this->setProperty('stateWeatherHide', '1'); } else if ($this->getProperty('stateWeatherHide') == 1) { $this->setProperty('stateWeatherHide', '0'); }
if ($this->getProperty('EventHistoryHide') == 0) { $this->setProperty('EventHistoryHide', '1'); } else if ($this->getProperty('EventHistoryHide') == 1) { $this->setProperty('EventHistoryHide', '0'); }
sg('Button09.IconButton',transliterate(gg('Button09.NameButton')));
sg('Button06.IconButton',transliterate(gg('Button06.NameButton')));
sg('Button07.IconButton',transliterate(gg('Button07.NameButton')));
sg('Button08.IconButton',transliterate(gg('Button08.NameButton')));
sg('Button05.IconButton',transliterate(gg('Button05.NameButton')));
sg('Button04.IconButton',transliterate(gg('Button04.NameButton')));
sg('Button03.IconButton',transliterate(gg('Button03.NameButton')));
if (getGlobal('SideInfoWidget'.'.'.'Mode') >= 2) { clearTimeOut('BackMainScene'); $timerCode=<<<EOT setGlobal('SideInfoWidget'.'.'.'Mode', '1'); EOT; setTimeOut('BackMainScene', $timerCode, (int)('60')); }
if ($this->getProperty('Switch') == 1) { $this->setProperty('Switch', '2'); $this->setProperty('Mode', '2'); } else if ($this->getProperty('Switch') == 2) { $this->setProperty('Switch', '3'); $this->setProperty('Mode', '3'); } else if ($this->getProperty('Switch') == 3) { $this->setProperty('Switch', '4'); $this->setProperty('Mode', '4'); } else if ($this->getProperty('Switch') == 4) { $this->setProperty('Switch', '1'); $this->setProperty('Mode', '1'); }
sg('Button01.IconButton',transliterate(gg('Button01.NameButton')));
sg('Button02.IconButton',transliterate(gg('Button02.NameButton')));
$color=hexdec(gg('ButtonSettings.colorRGB')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('ButtonSettings.ColorBorder',$cmd);
$ColorBorder; $ColorBorder = $this->getProperty('ColorBorder'); $this->setProperty('IndicatorColorNoActive', $ColorBorder);
sg('InformationBlock10.backgroundBlocks',transliterate(gg('InformationBlock10.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock09.backgroundBlocks',transliterate(gg('InformationBlock09.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock08.backgroundBlocks',transliterate(gg('InformationBlock08.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock04.backgroundBlocks',transliterate(gg('InformationBlock04.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock05.backgroundBlocks',transliterate(gg('InformationBlock05.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock06.backgroundBlocks',transliterate(gg('InformationBlock06.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock07.backgroundBlocks',transliterate(gg('InformationBlock07.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
$color=hexdec(gg('InformationBlockSettings.colorRGB')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('InformationBlockSettings.ColorBorder',$cmd);
if ($this->getProperty('Hide') == 0) { $this->setProperty('Hide', '1'); } else if ($this->getProperty('Hide') == 1) { $this->setProperty('Hide', '0'); }
sg('InformationBlock01.backgroundBlocks',transliterate(gg('InformationBlock01.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock02.backgroundBlocks',transliterate(gg('InformationBlock02.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock03.backgroundBlocks',transliterate(gg('InformationBlock03.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
if ($this->getProperty('stateWeatherHide') == 0) { $this->setProperty('stateWeatherHide', '1'); } else if ($this->getProperty('stateWeatherHide') == 1) { $this->setProperty('stateWeatherHide', '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('EventHistoryHide') == 0) { $this->setProperty('EventHistoryHide', '1'); } else if ($this->getProperty('EventHistoryHide') == 1) { $this->setProperty('EventHistoryHide', '0'); }
sg('Button08.IconButton',transliterate(gg('Button08.NameButton')));
sg('Button09.IconButton',transliterate(gg('Button09.NameButton')));
sg('Button07.IconButton',transliterate(gg('Button07.NameButton')));
sg('Button05.IconButton',transliterate(gg('Button05.NameButton')));
sg('Button06.IconButton',transliterate(gg('Button06.NameButton')));
$ColorBorder; $ColorBorder = $this->getProperty('ColorBorder'); $this->setProperty('IndicatorColorNoActive', $ColorBorder);
$color=hexdec(gg('ButtonSettings.colorRGB')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('ButtonSettings.ColorBorder',$cmd);
sg('Button03.IconButton',transliterate(gg('Button03.NameButton')));
sg('Button04.IconButton',transliterate(gg('Button04.NameButton')));
sg('Button02.IconButton',transliterate(gg('Button02.NameButton')));
if (getGlobal('SideInfoWidget'.'.'.'Mode') >= 2) { clearTimeOut('BackMainScene'); $timerCode=<<<EOT setGlobal('SideInfoWidget'.'.'.'Mode', '1'); EOT; setTimeOut('BackMainScene', $timerCode, (int)('60')); }
if ($this->getProperty('Switch') == 1) { $this->setProperty('Switch', '2'); $this->setProperty('Mode', '2'); } else if ($this->getProperty('Switch') == 2) { $this->setProperty('Switch', '3'); $this->setProperty('Mode', '3'); } else if ($this->getProperty('Switch') == 3) { $this->setProperty('Switch', '4'); $this->setProperty('Mode', '4'); } else if ($this->getProperty('Switch') == 4) { $this->setProperty('Switch', '1'); $this->setProperty('Mode', '1'); }
sg('Button01.IconButton',transliterate(gg('Button01.NameButton')));
sg('InformationBlock07.backgroundBlocks',transliterate(gg('InformationBlock07.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock08.backgroundBlocks',transliterate(gg('InformationBlock08.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock10.backgroundBlocks',transliterate(gg('InformationBlock10.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock09.backgroundBlocks',transliterate(gg('InformationBlock09.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock06.backgroundBlocks',transliterate(gg('InformationBlock06.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock03.backgroundBlocks',transliterate(gg('InformationBlock03.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock05.backgroundBlocks',transliterate(gg('InformationBlock05.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock04.backgroundBlocks',transliterate(gg('InformationBlock04.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock02.backgroundBlocks',transliterate(gg('InformationBlock02.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
sg('InformationBlock01.backgroundBlocks',transliterate(gg('InformationBlock01.NameButton'))); if ($this->getProperty('NameButton') != '') { $this->setProperty('Hide', '0'); } else if ($this->getProperty('NameButton') == '') { $this->setProperty('Hide', '1'); }
$color=hexdec(gg('InformationBlockSettings.colorRGB')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('InformationBlockSettings.ColorBorder',$cmd);
if ($this->getProperty('Hide') == 0) { $this->setProperty('Hide', '1'); } else if ($this->getProperty('Hide') == 1) { $this->setProperty('Hide', '0'); }
if ($this->getProperty('EventHistoryHide') == 0) { $this->setProperty('EventHistoryHide', '1'); } else if ($this->getProperty('EventHistoryHide') == 1) { $this->setProperty('EventHistoryHide', '0'); }
if ($this->getProperty('stateWeatherHide') == 0) { $this->setProperty('stateWeatherHide', '1'); } else if ($this->getProperty('stateWeatherHide') == 1) { $this->setProperty('stateWeatherHide', '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'); }
sg('Button09.IconButton',transliterate(gg('Button09.NameButton')));
sg('Button08.IconButton',transliterate(gg('Button08.NameButton')));
sg('Button07.IconButton',transliterate(gg('Button07.NameButton')));
sg('Button06.IconButton',transliterate(gg('Button06.NameButton')));
sg('Button05.IconButton',transliterate(gg('Button05.NameButton')));
sg('Button03.IconButton',transliterate(gg('Button03.NameButton')));
sg('Button04.IconButton',transliterate(gg('Button04.NameButton')));
$color=hexdec(gg('ButtonSettings.colorRGB')); $red = $color >> 16 & 0xFF; $green = $color >> 8 & 0xFF; $blue = $color & 0xFF; $cmd=''.$red.','.$green.','.$blue.''; sg('ButtonSettings.ColorBorder',$cmd);
$ColorBorder; $ColorBorder = $this->getProperty('ColorBorder'); $this->setProperty('IndicatorColorNoActive', $ColorBorder);
sg('Button02.IconButton',transliterate(gg('Button02.NameButton')));
if (getGlobal('SideInfoWidget'.'.'.'Mode') >= 2) { clearTimeOut('BackMainScene'); $timerCode=<<<EOT setGlobal('SideInfoWidget'.'.'.'Mode', '1'); EOT; setTimeOut('BackMainScene', $timerCode, (int)('60')); }
if ($this->getProperty('Switch') == 1) { $this->setProperty('Switch', '2'); $this->setProperty('Mode', '2'); } else if ($this->getProperty('Switch') == 2) { $this->setProperty('Switch', '3'); $this->setProperty('Mode', '3'); } else if ($this->getProperty('Switch') == 3) { $this->setProperty('Switch', '4'); $this->setProperty('Mode', '4'); } else if ($this->getProperty('Switch') == 4) { $this->setProperty('Switch', '1'); $this->setProperty('Mode', '1'); }
sg('Button01.IconButton',transliterate(gg('Button01.NameButton')));
Свойства класса:
Методы класса:
$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('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'); }
if ($this->getProperty('Background') == 'Image') { $this->setProperty('IconButton', ''); } else if ($this->getProperty('Background') == 'Icon') { $this->setProperty('BackgroundImage', ''); }
Объекты класса:
$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('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('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('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
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('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('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
$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('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('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', '%'); }
$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('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('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', ''); }
$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', '%'); }
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('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', '%'); }
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('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('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
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('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); }
$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('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
sg('Button08.IconButton',transliterate(gg('Button08.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); }
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('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', '%'); }
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')));
if ($this->getProperty('Temperature')) { $this->setProperty('temperatureSymbol', '°С'); $this->setProperty('IconTemperature', 'Temperature'); } else if ($this->getProperty('Temperature') == '') { $this->setProperty('temperatureSymbol', ''); $this->setProperty('IconTemperature', ''); }
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('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('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('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('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('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('EventHistoryHide') == 0) { $this->setProperty('EventHistoryHide', '1'); } else if ($this->getProperty('EventHistoryHide') == 1) { $this->setProperty('EventHistoryHide', '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('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('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', '%'); }
if ($this->getProperty('Humidity') == '') { $this->setProperty('IconHumidity', ''); $this->setProperty('humiditySymbol', ''); } else if ($this->getProperty('Humidity') >= 0) { $this->setProperty('IconHumidity', 'Humidity'); $this->setProperty('humiditySymbol', '%'); }
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); }
$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('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('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'); }
$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); }
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('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('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', '%'); }
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', '%'); }
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', '%'); }
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', '%'); }
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'); }
$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', ''); }
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); }
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('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); }
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('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', ''); }
$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('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); }
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'); }
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SDevices_setUpdatedText.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SDevices_keepAlive.php'); /* end injection of {SDevices} */
require(DIR_MODULES.'devices/SDevices_logicAction.php');
require(DIR_MODULES.'devices/SDevices_statusUpdated.php');
Свойства класса:
Методы класса:
require(DIR_MODULES.'devices/SButtons_pressed.php');
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SCameras_motionDetected.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_takeSeries.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
require(DIR_MODULES.'devices/SControllers_turnOn.php');
require(DIR_MODULES.'devices/SControllers_turnOff.php');
require(DIR_MODULES.'devices/SControllers_switch.php');
Свойства класса:
Методы класса:
/* 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/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_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_thermostatUpdated.php'); /* end injection of {SDevices} */
Объекты класса:
Свойства класса:
Методы класса:
require(DIR_MODULES.'devices/SDimmers_levelUpdated.php');
require(DIR_MODULES.'devices/SDimmers_turnOn.php');
require(DIR_MODULES.'devices/SDimmers_turnOff.php');
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SDimmers_levelWorkUpdated.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_setLevel.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/SGroups_switch.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SGroups_statusUpdated.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} */
Методы класса:
callMethod('Relay04.turnon');
Объекты класса:
if (getGlobal("Relay07.status")) { callMethod("Relay06.turnOn"); }
callMethod('Relay06.turnon');
callMethod('Relay07.turnoff');
callMethod('Relay04.turnon');
if (getGlobal("Relay05.status")) { callMethod("Relay04.turnOn"); }
Свойства класса:
Методы класса:
/* 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} */
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SThermostats_valueUpdated.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_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_setTargetTemperature.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_enable.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_turnOn.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/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/STVs_setVolume.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/SCounters_refreshStats.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_valueWorkUpdated.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_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_alert.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
require(DIR_MODULES.'devices/SMotions_motionDetected.php');
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SMotions_unblockSensor.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/SOpenable_close.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_switch.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenable_levelUpdated.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_statusUpdated.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
require(DIR_MODULES.'devices/SOpenClose_statusUpdated.php');
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenClose_unblockSensor.php'); /* end injection of {SDevices} */
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SOpenClose_blockSensor.php'); /* end injection of {SDevices} */
Свойства класса:
Методы класса:
require(DIR_MODULES.'devices/SSensors_valueUpdated.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} */
Свойства класса:
Свойства класса:
Свойства класса:
Методы класса:
/* begin injection of {SDevices} */ require(DIR_MODULES.'devices/SPowerSensors_loadStatusChanged.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/SSmoke_statusUpdated.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} */
Свойства класса:
Методы класса:
Объекты класса:
$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; $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."."; } } /* $objects=array('MotionSensor1'=>'Датчик движения 1','MotionSensor2'=>'Датчик движения 2','TempSensor01'=>'Датчик температуры','HumSensor01'=>'Датчик влажности'); foreach($objects as $k=>$v) { if (!gg($k.'.alive')) { $yellow_state=1; $details[]="Не обновляется ".$v.'.'; } } */ if ((int)gg('ThisComputer.SpaceProblems')>0) { $red_state=1; $details[]="Недостаточно места на диске (".gg('ThisComputer.SpaceProblems_Details').').'; } 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'); } /* begin injection of {SDevices} */ require(DIR_MODULES.'devices/system_checkstate.php'); /* end injection of {SDevices} */
$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'); }
Свойства класса:
Методы класса:
$days=array('воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'); $months=array(1=>'январь','февраль','март','апрель','май','июнь','июль','август','сентябрь','октябрь','ноябрь','декабрь'); $months2=array(1=>'января','февраля','марта','апреля','мая','июня','июля','августа','сентября','октября','ноября','декабря'); $daymonth=array(1=>'первое','второе','третье','четвертое','пятое','шестое','седьмое','восьмое','девятое','десятое','одинадцатое','двенадцатое','тринадцатое','четырнадцатое','пятнадцатое','шестнадцатое','семнадцатое','восемнадцатое','девятнадцатое','двадцатое','двадцать первое','двадцать второе','двадцать третье','двадцать четвертое','двадцать пятое','двадцать шестое','двадцать седьмое','двадцать восьмое','двадцать девятое','тридцатое','тридцать первое'); $day_num=(int)date('w'); $month_num=(int)date('m'); $day_month=(int)date('j'); $day_of_month=$daymonth[$day_month]; $day_of_week=$days[$day_num]; $month_txt1=$months[$month_num]; $month_txt2=$months2[$month_num]; setGlobal('MonthNum',$month_num); setGlobal('MonthTXT',$month_txt1); setGlobal('MonthTXTalt',$month_txt2); setGlobal('DayOfMonthNum',$day_month); setGlobal('DayOfMonthTXT',$day_of_month); setGlobal('DayOfWeekTXT',$day_of_week); setGlobal('DayOfWeekNum',$day_num); // ================= раскидываем дату и время если изменилось в Windows ========================================= $h=(int)date('G',time()); if (gg('Time.DateD') != date("d", time())) { $day = array( 'воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота' ); $month = array( 1 => 'января', 2 => 'февраля', 3 => 'марта', 4 => 'апреля', 5 => 'мая', 6 => 'июня', 7 => 'июля', 8 => 'августа', 9 => 'сентября', 10 => 'октября', 11 => 'ноября', 12 => 'декабря' ); $monthAlt = array( 1 => 'ЯНВАРЬ', 2 => 'ФЕВРАЛЬ', 3 => 'МАРТ', 4 => 'АПРЕЛЬ', 5 => 'МАЙ', 6 => 'ИЮНЬ', 7 => 'ИЮЛЬ', 8 => 'АВГУСТ', 9 => 'СЕНТЯБРЬ', 10 => 'ОКТЯБРЬ', 11 => 'НОЯБРЬ', 12 => 'ДЕКАБРЬ' ); // раскидываем дату по свойствам sg("DateD",date( "d", time())); sg("DateM",date( "m", time())); sg("DateY",date( "Y", time())); sg("Date",date( "d.m.Y", time())); sg("Day",$day[date("w")]); sg("Month",$month[date("n")]); sg("MonthAlt",$monthAlt[date("n")]); }
Объекты класса:
$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');
$days=array('воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'); $months=array(1=>'январь','февраль','март','апрель','май','июнь','июль','август','сентябрь','октябрь','ноябрь','декабрь'); $months2=array(1=>'января','февраля','марта','апреля','мая','июня','июля','августа','сентября','октября','ноября','декабря'); $daymonth=array(1=>'первое','второе','третье','четвертое','пятое','шестое','седьмое','восьмое','девятое','десятое','одинадцатое','двенадцатое','тринадцатое','четырнадцатое','пятнадцатое','шестнадцатое','семнадцатое','восемнадцатое','девятнадцатое','двадцатое','двадцать первое','двадцать второе','двадцать третье','двадцать четвертое','двадцать пятое','двадцать шестое','двадцать седьмое','двадцать восьмое','двадцать девятое','тридцатое','тридцать первое'); $day_num=(int)date('w'); $month_num=(int)date('m'); $day_month=(int)date('j'); $day_of_month=$daymonth[$day_month]; $day_of_week=$days[$day_num]; $month_txt1=$months[$month_num]; $month_txt2=$months2[$month_num]; setGlobal('MonthNum',$month_num); setGlobal('MonthTXT',$month_txt1); setGlobal('MonthTXTalt',$month_txt2); setGlobal('DayOfMonthNum',$day_month); setGlobal('DayOfMonthTXT',$day_of_month); setGlobal('DayOfWeekTXT',$day_of_week); setGlobal('DayOfWeekNum',$day_num); // ================= раскидываем дату и время если изменилось в Windows ========================================= $h=(int)date('G',time()); if (gg('Time.DateD') != date("d", time())) { $day = array( 'воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота' ); $month = array( 1 => 'января', 2 => 'февраля', 3 => 'марта', 4 => 'апреля', 5 => 'мая', 6 => 'июня', 7 => 'июля', 8 => 'августа', 9 => 'сентября', 10 => 'октября', 11 => 'ноября', 12 => 'декабря' ); $monthAlt = array( 1 => 'ЯНВАРЬ', 2 => 'ФЕВРАЛЬ', 3 => 'МАРТ', 4 => 'АПРЕЛЬ', 5 => 'МАЙ', 6 => 'ИЮНЬ', 7 => 'ИЮЛЬ', 8 => 'АВГУСТ', 9 => 'СЕНТЯБРЬ', 10 => 'ОКТЯБРЬ', 11 => 'НОЯБРЬ', 12 => 'ДЕКАБРЬ' ); // раскидываем дату по свойствам sg("DateD",date( "d", time())); sg("DateM",date( "m", time())); sg("DateY",date( "Y", time())); sg("Date",date( "d.m.Y", time())); sg("Day",$day[date("w")]); sg("Month",$month[date("n")]); sg("MonthAlt",$monthAlt[date("n")]); }
Свойства класса:
Методы класса:
Свойства класса:
Объекты класса:
Свойства класса:
Методы класса:
//$params["LOCATION_OBJECT"], $params["LOCATION"]
//$params["LOCATION_OBJECT"], $params["LOCATION"]
Объекты класса:
Свойства класса:
Методы класса:
///
require(DIR_MODULES."yandexweather/changetemp.php");
$sqlQuery = "SELECT pvalues.*, objects.TITLE as OBJECT_TITLE, properties.TITLE as PROPERTY_TITLE FROM pvalues JOIN objects ON pvalues.OBJECT_ID = objects.id JOIN properties ON pvalues.PROPERTY_ID = properties.id WHERE pvalues.PROPERTY_NAME != CONCAT_WS('.', objects.TITLE, properties.TITLE)"; $data = SQLSelect($sqlQuery); $total = count($data); for ($i = 0; $i < $total; $i++) { $objectProperty = $data[$i]["OBJECT_TITLE"] . "." . $data[$i]["PROPERTY_TITLE"]; $sqlQuery = "SELECT * FROM pvalues WHERE ID =".$data[$i]['ID'] ; $rec = SQLSelectOne($sqlQuery); $rec['PROPERTY_NAME'] = $data[$i]["OBJECT_TITLE"] . "." . $data[$i]["PROPERTY_TITLE"]; SQLUpdate("pvalues", $rec); } $data = SQLSelect($sqlQuery); $total = count($data); for ($i = 0; $i < $total; $i++) { $objectProperty = $data[$i]["OBJECT_TITLE"] . "." . $data[$i]["PROPERTY_TITLE"]; $sqlQuery = "SELECT * FROM pvalues WHERE ID =".$data[$i]["ID"] ; $rec = SQLSelectOne($sqlQuery); $rec["PROPERTY_NAME"] = $data[$i]["OBJECT_TITLE"] . "." . $data[$i]["PROPERTY_TITLE"]; SQLUpdate("pvalues", $rec); }
include_once(DIR_MODULES . "yandexweather/yandexweather.class.php"); $yw = new yandexweather(); $yw->sayweather();
include_once(DIR_MODULES . "yandexweather/yandexweather.class.php"); $yw = new yandexweather(); $yw->sayforecast();
SQLUpdate("objects", array("ID"=>$this->id, "DESCRIPTION"=>gg("sysdate")." ".gg("timenow")));
Объекты класса:
if(($this->object_title=="yw_mycity") and ($this->getProperty("condition")<>"")) { //require(DIR_MODULES."yandexweather/ywext.inc.php"); include_once(DIR_MODULES."yandexweather/ywext.inc.php"); $lastcondition=gg("yw_mycity.lastcondition"); $conditioneng=gg("yw_mycity.condition"); $condition1eng=gg("yw_mycity.forecast_0_daycondition"); $condition2eng=gg("yw_mycity.forecast_1_daycondition"); $condition3eng=gg("yw_mycity.forecast_2_daycondition"); $condition=getconditionrusincl($conditioneng); $condition1=getconditionrusincl($condition1eng); $condition2=getconditionrusincl($condition2eng); $condition3=getconditionrusincl($condition3eng); sg("yw_mycity.conditionrus",$condition); sg("yw_mycity.condition1rus",$condition1) ; sg("yw_mycity.condition2rus",$condition2) ; sg("yw_mycity.condition3rus",$condition3) ; $cmd_rec = SQLSelectOne("SELECT VALUE FROM yaweather_config where parametr='ENABLE_EVENTS'"); $ee=$cmd_rec['VALUE']; $cmd_rec = SQLSelectOne("SELECT VALUE FROM yaweather_config where parametr='MSG_LEVEL'"); $msglevel=$cmd_rec['VALUE']; $cmd_rec = SQLSelectOne("SELECT VALUE FROM yaweather_config where parametr='LASTCONDITION'"); $lastcondition=$cmd_rec['VALUE']; //say($ee.":".$this->getProperty("condition").':'.$lastcondition,$msglevel); //say($ee.":".getObject('yw_mycity')->getProperty('condition').':'.$lastcondition,$msglevel); // say($ee.":".$params['NEW_VALUE'].':'.$lastcondition,$msglevel); //getObject('yw_mycity')->getProperty('condition'); //if (($ee=="1") && ($this->getProperty("condition")!=$lastcondition)) { if (($ee=="1") && ($params['NEW_VALUE']!=$lastcondition) && ($condition!="0")) { say(" На улице ".$condition,$msglevel); } } sg("yw_mycity.lastcondition",$this->getProperty("condition")); //$cmd_rec = SQLSelectOne("update yaweather_config set value='".$this->getProperty("condition")."' where parametr='LASTCONDITION'"); SQLexec("update yaweather_config set value='".$params['NEW_VALUE']."' where parametr='LASTCONDITION'");
Свойства класса:
Методы класса:
Объекты класса:
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 ($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'); }
if (getGlobal('PinCode'.'.'.'pincode_visible') == 1 && getGlobal('PinCode'.'.'.'unlocked') == 0) { $timerCode=<<<EOT setGlobal('PinCode'.'.'.'pincode_visible', '0'); EOT; setTimeOut('PinCodeVisibleOn', $timerCode, (int)('20')); }
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'); }
, Россия
© 2025 - Site Built By SergeJey | Реквизиты: Курицын С. С. ИНН 762001394609 | Контакты | Публичный договор
SmartLiving