camImagesProcess
|
Сортировка изображений с веб-камеры
$src='/var/www/media/webcam'; // откуда брать фотографии
clearTimeout('camImagesTimer');
$base_path='/var/www/dvr/unsorted';
$dst='/var/www/dvr/sorted';
safe_exec('chown pi:pi -Rf '.$base_path.'/*');
safe_exec('chmod 0777 -f '.$base_path.'/*');
setTimeout('camImagesTimer','runScript("camImagesProcess");',10*60);
if (is_dir($base_path)) {
if ($dir = @opendir($base_path)) {
while (($file = readdir($dir)) !== false) {
if ($file!='.' && $file!='..' && is_dir($base_path.'/'.$file)) {
$src=$base_path.'/'.$file;
echo $src.'<br/>';
processLine($src." -> ".$dst."/%Y/%m - %F/%d/".$file);
}
}
closedir($dir);
}
} else {
echo "Cannot open $base_path";
}
processLine("CLEAR ".$dst." 30 DAYS OLD");
|
checkFreeSpace
|
Проверка свободного места на диске
$max_usage=90; //%
$output=array();
exec('df',$output);
//var_dump($output);
$problems=0;
$problems_details='';
foreach($output as $line) {
if (preg_match('/(\d+)% (\/.+)/',$line,$m))
$proc=$m[1];
$path=$m[2];
if ($proc>$max_usage) {
$problems++;
$problems_details.="$path: $proc; ";
}
//echo "$path: $proc%<br/>";
}
sg("ThisComputer.SpaceProblems",$problems);
sg("ThisComputer.SpaceProblems_Details",$problems_details);
setTimeOut('checkFreeSpace','runScript("checkFreeSpace");',5*60);
|
rebootSystem
|
Перезапуск системы
$filename = ROOT . '/database_backup/db.sql';
$mysqlDumpPath = "/usr/bin/mysqldump";
$mysqlDumpParam = " --user=" . DB_USER . " --password=" . DB_PASSWORD;
$mysqlDumpParam .= " --no-create-db --add-drop-table --databases " . DB_NAME;
if (file_exists($filename)) rename($filename, $filename . '.prev');
exec($mysqlDumpPath . $mysqlDumpParam . " > " . $filename);
say("Подготовка к перезагрузке",2);
setTimeout("shutdownTimer","safe_exec('shutdown -r now');",15);
|
shutDown
|
Выключение системы
$filename = ROOT . '/database_backup/db.sql';
$mysqlDumpPath = "/usr/bin/mysqldump";
$mysqlDumpParam = " --user=" . DB_USER . " --password=" . DB_PASSWORD;
$mysqlDumpParam .= " --no-create-db --add-drop-table --databases " . DB_NAME;
if (file_exists($filename)) rename($filename, $filename . '.prev');
exec($mysqlDumpPath . $mysqlDumpParam . " > " . $filename);
say("Подготовка к выключению",2);
setTimeout("shutdownTimer","safe_exec('shutdown -h now');",15);
|
Включи фонари
|
brLinkCommand('fonari');
brLinkCommand('fonari');
say('Включаю фонари',2);
SetTimeOut("синийTimer","runScript('синий');", 45*60);
SetTimeOut("зелёныйTimer","runScript('зелёный');", 90*60);
SetTimeOut("красныйTimer","runScript('красный');", 135*60);
SetTimeOut("синийTimer","runScript('синий');", 180*60);
SetTimeOut("зелёныйTimer","runScript('зелёный');", 225*60);
SetTimeOut("красныйTimer","runScript('красный');", 270*60);
|
Ворота
|
if (getGlobal('Relay13.status')=="1") {
say("да",2);
getURL('http://192.168.1.39/gpio?st=1&pin=14', 0);
sleep(2);
getURL('http://192.168.1.39/gpio?st=0&pin=14', 0);
}
if (getGlobal('Relay13.status')=="0") {
say("да",2);
getURL('http://192.168.1.39/gpio?st=1&pin=14', 0);
sleep(2);
getURL('http://192.168.1.39/gpio?st=0&pin=14', 0);
}
|
Выключи фонари
|
brLinkCommand('fonari0ff');
brLinkCommand('fonari0ff');
say("выключаю фонари",2);
|
зелёный
|
brLinkCommand('green');
say('Включаю зелёный',2);
|
красный
|
brLinkCommand('red');
say('Включаю красный',2);
|
синий
|
brLinkCommand('blue');
say('Включаю синий',2);
|
reboot all
|
getURL('http://192.168.1.39/reboot');
sleep(4);
getURL('http://192.168.1.66/reboot');
sleep(4);
getURL('http://192.168.1.78/reboot');
sleep(6);
runScript('rebootrouter');
|
Reboot plan
|
//https://wifi.planmjd.keenetic.pro/gpio?st=1&pin=16&click=10
getURL('https://wifi.planmjd.keenetic.pro/gpio?st=1&pin=16&click=10');
|
rebootrouter
|
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://192.168.1.1:777/ci');
curl_setopt($ch, CURLOPT_POSTFIELDS, '<request id="0"><command name="system reboot"></command></request>');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/xml']);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
curl_setopt($ch, CURLOPT_USERPWD, 'admin:240577');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
$objectResult = new SimpleXMLElement($data);
|
SayTimeHour
|
if (timeIs("'00:00")) {
say(getRandomLine(says_time).' полночь.пора спасть', 1);
}
if (timeIs("01:00")) {
say(getRandomLine(says_time).' час ночи.', 1);
}
if (timeIs("02:00")) {
say(getRandomLine(says_time).' два часа ночи.', 1);
}
if (timeIs("03:00")) {
say(getRandomLine(says_time).' три часа ночи.', 1);
}
if (timeIs("04:00")) {
say(getRandomLine(says_time).' четыре часа ночи.', 1);
}
if (timeIs("05:00")) {
say(getRandomLine(says_time).' пять часов утра.', 1);
}
if (timeIs("06:00")) {
say(getRandomLine(says_time).' шесть часов утра.', 1);
}
if (timeIs("07:00")) {
say(getRandomLine(says_time).' семь часов утра.', 2);
}
if (timeIs("08:00")) {
say(getRandomLine(says_time).' восемь часов утра.', 2);
}
if (timeIs("09:00")) {
say(getRandomLine(says_time).' девять часов утра.', 2);
}
if (timeIs("10:00")) {
say(getRandomLine(says_time).' десять часов.', 2);
}
if (timeIs("11:00")) {
say(getRandomLine(says_time).' одиннадцать часов.', 2);
}
if (timeIs("12:00")) {
say(getRandomLine(says_time).' полдень.', 2);
}
if (timeIs("13:00")) {
say(getRandomLine(says_time).' час дня.', 2);
}
if (timeIs("14:00")) {
say(getRandomLine(says_time).' два часа дня.', 2);
}
if (timeIs("15:00")) {
say(getRandomLine(says_time).' три часа дня.', 2);
}
if (timeIs("16:00")) {
say(getRandomLine(says_time).' четыре часа дня.', 2);
}
if (timeIs("17:00")) {
say(getRandomLine(says_time).' пять часов вечера.', 2);
}
if (timeIs("18:00")) {
say(getRandomLine(says_time).' шесть часов вечера.', 2);
}
if (timeIs("19:00")) {
say(getRandomLine(says_time).' семь часов вечера.', 2);
}
if (timeIs("20:00")) {
say(getRandomLine(says_time).' восемь часов вечера.', 2);
}
if (timeIs("21:00")) {
say(getRandomLine(says_time).' девять часов вечера.', 2);
}
if (timeIs("22:00")) {
say(getRandomLine(says_time).' десять часов вечера.', 2);
}
if (timeIs("23:00")) {
say(getRandomLine(says_time).' одиннадцать часов вечера.', 2);
}
|
включи фасад
|
sg('Relay11.status', '1');
|
включи фасад на улице
|
sg('Relay12.status', '1');
|
Выключи свет в зале
|
sg('Relay06.status', '0');
|
Выключи свет на кухне
|
sg('Relay24.status', '0');
|
Выключи свет на кухне2
|
sg('Relay23.status', '0');
|
Зал 2 выключить
|
|
звук ПК
|
$val="100";
$volume=round(65535*$val/100);
setGlobal('ThisComputer.volumeLevel',$val);
safe_exec('..\\apps\\nircmd\\nircmdc setsysvolume '.$volume);
|
перезагрузка пк
|
say ('Сейчас буду пробовать перезагрузиться.',2);
say ('Для начала переведу систему в ручной режим.',2);
setGlobal('ManualMode.active', '0');
exec ('shutdown /r');
say ('Перезапуск моей системы займет некоторое время.',2);
say ('Не отдавайте команд, пока я не загружусь.',2);
|
солнце казань
|
$lat=gg('ThisComputer.latitude'); // широта
$long=gg('ThisComputer.longitude'); // долгота
$sun_info = date_sun_info(time(), $lat, $long);
foreach ($sun_info as $key => $val) {
if ($key == 'sunrise') {
$sunrise = $val;
echo 'Восход: '.date("H:i", $sunrise).'<br>';
setGlobal('ThisComputer.SunRiseTime',date("H:i", $sunrise));
}
if ($key == 'sunset') {
$sunset = $val;
$day_length = $sunset - $sunrise;
echo 'Заход: '.date("H:i", $sunset).'<br>';
echo 'Долгота дня: '.gmdate("H:i", $day_length).'<br>';
setGlobal('ThisComputer.SunSetTime',date("H:i", $sunset));
//setGlobal('ThisComputer.LongTag',gmdate("H:i", $day_length));
}
if ($key == 'transit') {
echo 'В зените: '.date("H:i", $val).'<br>';
//setGlobal('ThisComputer.Transit',date("H:i", $val));
}
}
|
Катёл копия
|
$value = $this->getproperty('value');
getURL('https://mjd2.artemon25.keenetic.pro/objects/?op=set&object=Sensor_temp05&p=value&v='.$value) ;
if (gg('Sensor_temp01.value')>35) {
setGlobal("Sensor_temp01.status" ,1);
}
if (gg('Sensor_temp01.value')<35) {
setGlobal("Sensor_temp01.status" ,0);
}
if (gg('Sensor_temp01.value')>50) {
setGlobal("Sensor_temp01.Status2" ,1);
}
if (gg('Sensor_temp01.value')<48) {
setGlobal("Sensor_temp01.Status2" ,0);
}
|
План копия свет
|
$value = $this->getproperty('value');
getURL('https://mjd2.artemon25.keenetic.pro/objects/?op=set&object=Sensor_light01&p=value&v='.$value) ;
if (gg('Sensor_light01.value')>500) {
setGlobal("Sensor_light01.status" ,1);
}
if (gg('Sensor_light01.value')<500) {
setGlobal("Sensor_light01.status" ,0);
}
|
свет +
|
$value = $this->getproperty('value');
getURL('https://mjd2.artemon25.keenetic.pro/objects/?op=set&object=Sensor_light01&p=value&v='.$value) ;
if (gg('Sensor_light01.value')>500) {
setGlobal("Sensor_light01.status" ,1);
}
if (gg('Sensor_light01.value')<500) {
setGlobal("Sensor_light01.status" ,0);
}
//зал
$value = $this->getproperty('value');
getURL('https://mjd2.artemon25.keenetic.pro/objects/?op=set&object=Sensor_temp04&p=value&v='.$value) ;
//катёл
$value = $this->getproperty('value');
getURL('https://mjd2.artemon25.keenetic.pro/objects/?op=set&object=Sensor_temp05&p=value&v='.$value) ;
if (gg('Sensor_temp01.value')>30) {
setGlobal("Sensor_temp01.status" ,1);
}
if (gg('Sensor_temp01.value')<30) {
setGlobal("Sensor_temp01.status" ,0);
}
if (gg('Sensor_temp01.value')>50) {
setGlobal("Sensor_temp01.Status2" ,1);
}
if (gg('Sensor_temp01.value')<48) {
setGlobal("Sensor_temp01.Status2" ,0);
}
|
телеграм
|
//команда
// загружаем данные по температуре и влажности
$temperature = gg("Sensor_temp02.value");
$temperature1 = gg("Sensor_temp01.value");
$temperature2 = gg("Sensor_light01.value");
$strMsg = "датчики" . PHP_EOL . "Темп зал " . $temperature . " °C" . PHP_EOL . "Темп катёл " . $temperature1 . " °C" . PHP_EOL . "свет " . $temperature2 . " k";
$content = array('chat_id' => $chat_id, 'text' => $strMsg, 'reply_markup' => $keyb);
$this->sendContent($content);
//событие
// загружаем данные по температуре и влажности
$temperature = gg("Sensor_temp02.value");
$temperature1 = gg("Sensor_temp01.value");
$temperature2 = gg("Sensor_light01.value");
$strMsg = "<strong>датчики:</strong>" . PHP_EOL . "Темп зал " . $temperature . " °C" . PHP_EOL . "Темп катёл " . $temperature1 . " °C" . PHP_EOL . "свет " . $temperature2 . " °C" ;
$this->editMessage($chat_id,$message_id,$strMsg,$keyb);
|
Автосвет на кухне
|
if (getGlobal('Relay23.status')==1) {
SetTimeOut("Выключи свет на кухнеTimer","runScript('Выключи свет на кухне');", 20*60);
say("выключаю свет на кухне",2);
}
|
Кентрон
|
//setGlobal('Mama.state', 'https://youtube.com/playlist?list=PLIdKbEnBj_B9q2C7L1pXUteynB_y2Af3G');
sg('Mama.command', 'youtube|youtu.be/MSbD1VwCR-A');
|
погода
|
//Получаем данные от Яндекса, region= указывает на код региона
$getYandexPogoda = simplexml_load_string(file_get_contents('https://export.yandex.ru/bar/reginfo.xml?region=10987'));
$getYandexPogoda = json_decode(json_encode($getYandexPogoda), TRUE);
//Меняем некрасивые картинки на красивые, анимированные
$arrayIcon = [
'bkn_d.png' => 'assets/icons/meteoIcon/cloudy-day-3.svg',
'bkn_n.png' => 'assets/icons/meteoIcon/cloudy-night-3.svg',
'ovc.png' => 'assets/icons/meteoIcon/cloudy.svg',
'ovc_-sn.png' => 'assets/icons/meteoIcon/snowy-4.svg',
'ovc_sn.png' => 'assets/icons/meteoIcon/snowy-5.svg',
'ovc_-ra.png' => 'assets/icons/meteoIcon/rainy-4.svg',
'ovc_ra.png' => 'assets/icons/meteoIcon/rainy-5.svg',
'ovc_ts_ra.png' => 'assets/icons/meteoIcon/thunder.svg',
'skc_d.png' => 'assets/icons/meteoIcon/day.svg',
'skc_n.png' => 'assets/icons/meteoIcon/night.svg',
'fg_d.png' => 'assets/icons/meteoIcon/cloudy.svg',
'bl.png' => 'assets/icons/meteoIcon/snowy-6.svg',
'bkn_-ra_d.png' => 'assets/icons/meteoIcon/rainy-2.svg',
'bkn_-ra_n.png' => 'assets/icons/meteoIcon/cloudy-night-3.svg',
'bkn_-sn_d.png' => 'assets/icons/meteoIcon/snowy-2.svg',
'bkn_-sn_n.png' => 'assets/icons/meteoIcon/cloudy-night-3.svg',
'bkn_ra_d.png' => 'assets/icons/meteoIcon/rainy-1.svg',
'bkn_ra_n.png' => 'assets/icons/meteoIcon/rainy-1.svg',
'bkn_sn_d.png' => 'assets/icons/meteoIcon/snowy-1.svg',
'bkn_sn_n.png' => 'assets/icons/meteoIcon/snowy-1.svg',
'ovc_ra_sn.png' => 'assets/icons/meteoIcon/rainy-5.svg',
];
//Цикл для перебора данных
//foreach($getYandexPogoda[weather][day][day_part] as $key => $array) {
foreach($getYandexPogoda['weather']['day']['day_part'] as $key => $array) {
//Самый первый массив - в нем данные о текущей погоде
if($key == 0) {
//Текущая температура
sg(' yw_mycity.now', $array["temperature"]);
//Иконка
$searchIcon = explode('/', $getYandexPogoda["weather"]["day"]["day_part"][$key]["image-v3"]);
sg('System_YandexWeather.nowWeatherIcon', $arrayIcon[$searchIcon[8]]);
//Скорость ветра
sg('System_YandexWeather.nowWindSpeed', $array["wind_speed"]);
//Направление ветра
sg('System_YandexWeather.nowWindDirection', $array["wind_direction"]);
continue;
}
if(isset($getYandexPogoda["weather"]["day"]["day_part"][$key]["temperature"])) {
$searchTemp = $getYandexPogoda["weather"]["day"]["day_part"][$key]["temperature"];
} else {
$searchTemp = $getYandexPogoda["weather"]["day"]["day_part"][$key]["temperature_from"];
}
//Раскидываем данные по принципу temp_1, temp_2, temp_3, temp_4 это утро, день, вечер, ночь
sg('System_YandexWeather.name_'.$key, $getYandexPogoda["weather"]["day"]["day_part"][$key]["@attributes"]["type"]);
sg('System_YandexWeather.temp_'.$key, $searchTemp);
$searchIcon = explode('/', $getYandexPogoda["weather"]["day"]["day_part"][$key]["image-v3"]);
sg('System_YandexWeather.WeatherIcon_'.$key, $arrayIcon[$searchIcon[8]]);
}
//Время обновления
sg('System_YandexWeather.update', date('d.m.Y H:i', time()));
echo 'ok';
|
погода1
|
$url= 'https://yandex.ru/time/sync.json?geo=10987';
$content=getURL($url, 0);
$data=json_decode($content,true);
//$objn=$data[0]['id'];
foreach ($data as $key=> $value)
{
if (is_array($value))
{
foreach ($value as $key1=> $value1)
{
if (is_array($value1))
foreach ($value1 as $key2=> $value2) {
if (is_array($value2))
foreach ($value2 as $key3=> $value3) {
if (is_array($value3))
foreach ($value3 as $key4=> $value4) {
echo 'key4:'.$key4.'='.$value4.'<br>';
}
else echo 'key3:'.$key3.'='.$value3.'<br>';}
echo 'key2:'.$key2.'='.$value2.'<br>'; }
else echo 'key1:'.$key1.'='.$value1.'<br>';
}
}
else
echo 'key:'.$key.'='.$value.'<br>';
}
|
радио 1
|
getURL(BASE_URL.ROOTHTML.'apps/shoutcast.html?mode=playnow&terminal=MAIN&station_id=1842318',0);
|
радио 2
|
getURL(BASE_URL.ROOTHTML.'apps/shoutcast.html?mode=playnow&terminal=MAIN&station_id=733749',0);
|
свобода
|
//setGlobal('Mama.state', 'https://youtube.com/playlist?list=PLIdKbEnBj_B9q2C7L1pXUteynB_y2Af3G');
sg('Mama.command', 'youtube|youtu.be/cmI6yIS2itI');
|
Вычисляем восход и заход солнца
|
Вычисление восхода и захода солнца определяется исходя моего места проживания
$h=(int)date('G',time());
$sun_info = date_sun_info(time(), 44.9892, 41.1234); //Координаты моего места проживания
setGlobal('SunRiseTime',date("H:i", $sun_info['sunrise'])); //Восход
setGlobal('SunSetTime',date("H:i", $sun_info['sunset'])); //Закат
|
Вычисляем фазу луны
|
Вычисление фазы луны
include("./MoonPhase.php");
// create an instance of the class, and use the current time
$moon = new MoonPhase();
//$age = round( $moon->age(), 1 );
$age = round( $moon->age(), 0 );
$stage = $moon->phase() < 0.5 ? 'растущая' : 'убывающая';
$distance = round( $moon->distance(), 2 );
$nextnewtime = gmdate( 'G:i:s', $moon->next_new_moon() );
$nextnewdate = gmdate( 'd.m.Y', $moon->next_new_moon() );
$nextfulltime = gmdate( 'G:i:s', $moon->next_full_moon() );
$nextfulldate = gmdate( 'd.m.Y', $moon->next_full_moon() );
$phasename = $moon->phase_name();
sg('MoonAge',$age); //Возраст луны (лунный день)
sg('MoonStage',$stage); //Стадия луны
sg('MoonDistance',$distance); //Дистанция до луны
sg('MoonNextNewTime',$nextnewtime); //Время следующего полнолуния
sg('MoonNextNewDate',$nextnewdate); //Новолуние
sg('MoonNextFullTime',$nextfulltime); //Длительность лунного дня
sg('MoonNextFullDate',$nextfulldate); //Дата следующего полнолуния
sg('MoonPhaseName',$phasename); //Фаза луны
sg('SysInfo.MoonPhaseName',$phasename);//Передача значении в класс ScenePurple
|
День или ночь
|
if (getGlobal('DarknessMode'.'.'.'active') == 0) {
setGlobal('SysInfo'.'.'.'TimeDay', 'sun');
} else if (getGlobal('DarknessMode'.'.'.'active') == 1) {
setGlobal('SysInfo'.'.'.'TimeDay', 'moon');
}
|
Пин код
|
sg('PinCode.pincode','123456');
sg('PinCode.pincode_mask',"");
sg('PinCode.pincode_text',"");
sg('PinCode.pincode_visible',"0");
sg('PinCode.pincode_url_copy',"");
sg('PinCode.pincode_url',"");
sg('PinCode.pincode_text_final',"");
|
Hourly
|
Выполняется каждый час
|
motionDetected
|
Сработал детектор движения на веб-камере
DebMes("Motion detected: ".serialize($params));
callMethod('MotionSensorCam.motionDetected');
setTimeOut('motionDetectedTimer','runScript("camImagesProcess");',10);
if (getGlobal('ThisComputer'.'.'.'WebCamMotionAuto')) {
setTimeOut('stopWebCamDetection', " runScript('manageWebCamMotion', array('stop'=>'1'));", (int)('60'));
}
|
NobodyHome
|
Срабатывает, когда никого дома нет
say('Включаю режим экономии', 2);
callMethod('EconomMode'.'.'.'activate');
if (getGlobal('ThisComputer'.'.'.'WebCamMotionAuto')) {
runScript('manageWebCamMotion', array('start'=>'1'));
}
|
SomebodyHome
|
Срабатывает в том случае, когда кто-то появился дома
callMethod('EconomMode'.'.'.'deactivate');
say('Здравствуйте!', 2);
runScript('reportStatus', array());
if (getGlobal('ThisComputer'.'.'.'WebCamMotionAuto')) {
setTimeOut('stopWebCamDetection', " runScript('manageWebCamMotion', array('stop'=>'1'));", (int)('60'));
}
|
startUp
|
Система загружена
say('Система загружена', 2);
runScript('tellIPAddress', array());
|
turnOffEverything
|
Выключить все приборы
$objects=array('Switch1','Switch2','Switch3');
foreach($objects as $o) {
callMethod($o.'.turnoff');
}
|
Активация темы Оранжевый бриз 2
|
if (getGlobal('Activate'.'.'.'SceneOrangeBreeze') == '' || getGlobal('Activate'.'.'.'SceneOrangeBreeze') == 0) {
runScript('Вычисляем фазу луны', array());
runScript('Вычисляем восход и заход солнца', array());
runScript('День или ночь', array());
runScript('Стандартные настройки - название кнопок', array());
runScript('Стандартные настройки - История событий (code)', array());
runScript('Стандартные настройки - круглого информационного виджета', array());
runScript('Стандартные настройки - погодный виджет', array());
runScript('Стандартные настройки блока Общая информация по дому', array());
runScript('Стандартные настройки круглых кнопок', array());
runScript('Пин код', array());
setGlobal('Button08'.'.'.'Link', '/admin.php?" target="_parent');
setGlobal('SideInfoWidget'.'.'.'Switch', '1');
setGlobal('SideInfoWidget'.'.'.'Mode', '1');
setGlobal('Activate'.'.'.'SceneOrangeBreeze', '1');
setGlobal('SysInfo'.'.'.'EventHistoryHide', '0');
say('Тема "Оранжевый бриз" активирована', 2);
}
|
Стандартные настройки - История событий (code)
|
setGlobal('SysInfo'.'.'.'Border', '3');
|
Стандартные настройки - круглого информационного виджета
|
setGlobal('SideInfoWidget'.'.'.'Border', '5');
setGlobal('SideInfoWidget'.'.'.'fontWeightDay', 'normal');
setGlobal('SideInfoWidget'.'.'.'fontFamilyDay', 'Candara');
setGlobal('SideInfoWidget'.'.'.'fontSizeDay', '30');
setGlobal('SideInfoWidget'.'.'.'fontStyleDay', 'normal');
setGlobal('SideInfoWidget'.'.'.'colorFontDay', 'ffffff');
setGlobal('SideInfoWidget'.'.'.'fontFamilyDate', 'Candara');
setGlobal('SideInfoWidget'.'.'.'fontSizeDate', '18');
setGlobal('SideInfoWidget'.'.'.'fontStyleDate', 'normal');
setGlobal('SideInfoWidget'.'.'.'fontWeightDate', 'normal');
setGlobal('SideInfoWidget'.'.'.'colorFontDate', 'ffffff');
setGlobal('SideInfoWidget'.'.'.'fontFamilyTimeNow', 'Arial');
setGlobal('SideInfoWidget'.'.'.'fontSizeTimeNow', '40');
setGlobal('SideInfoWidget'.'.'.'fontStyleTimeNow', 'normal');
setGlobal('SideInfoWidget'.'.'.'fontWeightTimeNow', 'normal');
setGlobal('SideInfoWidget'.'.'.'colorFontTimeNow', 'ffffff');
setGlobal('SideInfoWidget'.'.'.'fontFamilySunRiseSunSet', 'Candara');
setGlobal('SideInfoWidget'.'.'.'fontSizeSunRiseSunSet', '18');
setGlobal('SideInfoWidget'.'.'.'fontStyleSunRiseSunSet', 'normal');
setGlobal('SideInfoWidget'.'.'.'fontWeightSunRiseSunSet', 'normal');
setGlobal('SideInfoWidget'.'.'.'colorFontSunRiseSunSet', 'ffffff');
setGlobal('SideInfoWidget'.'.'.'fontFamilyHeader', 'Candara');
setGlobal('SideInfoWidget'.'.'.'fontSizeHeader', '28');
setGlobal('SideInfoWidget'.'.'.'fontStyleHeader', 'normal');
setGlobal('SideInfoWidget'.'.'.'fontWeightHeader', 'normal');
setGlobal('SideInfoWidget'.'.'.'colorFontHeader', 'ffffff');
|
Стандартные настройки - название кнопок
|
setGlobal('Button01'.'.'.'NameButton', 'Охрана');
setGlobal('Button02'.'.'.'NameButton', 'Инфо');
setGlobal('Button03'.'.'.'NameButton', 'Комнаты');
setGlobal('Button04'.'.'.'NameButton', 'Свет');
setGlobal('Button05'.'.'.'NameButton', 'Климат');
setGlobal('Button06'.'.'.'NameButton', 'Уборка');
setGlobal('Button07'.'.'.'NameButton', 'Настройка сцены');
setGlobal('Button08'.'.'.'NameButton', 'Админ');
setGlobal('Button09'.'.'.'NameButton', 'Меню');
|
Стандартные настройки - погодный виджет
|
setGlobal('WeatherWidget'.'.'.'fontFamilyCity', 'Candara');
setGlobal('WeatherWidget'.'.'.'fontSizeCity', '30');
setGlobal('WeatherWidget'.'.'.'fontStyleCity', 'normal');
setGlobal('WeatherWidget'.'.'.'textColorCity', 'fffffff');
setGlobal('WeatherWidget'.'.'.'fontFamilyTemp', 'Veranda');
setGlobal('WeatherWidget'.'.'.'fontSizeTemp', '28');
setGlobal('WeatherWidget'.'.'.'textColorTemp', 'fffffff');
setGlobal('WeatherWidget'.'.'.'fontFamilyCondition', 'Candara');
setGlobal('WeatherWidget'.'.'.'fontSizeCondition', '14');
setGlobal('WeatherWidget'.'.'.'textColorCondition', 'fffffff');
|
Стандартные настройки блока Общая информация по дому
|
setGlobal('InformationBlockSettings'.'.'.'colorRGB', '8d8481');
setGlobal('InformationBlockSettings'.'.'.'fontFamilyHeader', 'Candara');
setGlobal('InformationBlockSettings'.'.'.'fontSizeHeader', '28');
setGlobal('InformationBlockSettings'.'.'.'fontWeightHeader', 'bold');
setGlobal('InformationBlockSettings'.'.'.'textColorHeader', 'eaee2b');
setGlobal('InformationBlockSettings'.'.'.'fontFamilyText', 'Candara');
setGlobal('InformationBlockSettings'.'.'.'fontSizeText', '20');
setGlobal('InformationBlockSettings'.'.'.'textColorText', 'ece70e');
setGlobal('InformationBlockSettings'.'.'.'Border', '3');
setGlobal('InformationBlockSettings'.'.'.'', '');
setGlobal('InformationBlockSettings'.'.'.'', '');
|
Стандартные настройки круглых кнопок
|
setGlobal('ButtonSettings'.'.'.'colorRGB', 'FF4500');
setGlobal('ButtonSettings'.'.'.'Border', '3');
setGlobal('ButtonSettings'.'.'.'fontFamily', 'Candara');
setGlobal('ButtonSettings'.'.'.'fontSize', '20');
setGlobal('ButtonSettings'.'.'.'fontStyle', 'italic');
setGlobal('ButtonSettings'.'.'.'fontWeight', 'normal');
setGlobal('ButtonSettings'.'.'.'textColor', 'ffffff');
|