(start|play) music
Код
runScript('playFavoriteMusic');
|
(останови|выключи) музыку
Код
getURL("http://localhost/rc/?command=vlc_pause",0);
say(LANG_DONE,1);
|
(поставь|включи) музыку
Код
runScript('playFavoriteMusic');
|
report system state
|
кот(е|ё)л
Код
//$t=gg("sensorTempRemote1.value");
//say('Температура котла '.$t.' градусов');
//say(timeNow().' Температура котла '.$t.' градусов',1);
$t1=gg("sensorTempRemote1.value");
$t2=gg("sensorTempRemote2.value");
$t3=gg("sensorTempRemote3.value");
$lasttime=gg("sensorTempRemote1.updatedTime");
$weather.="Котёл на ".$lasttime.": подача ".$t1." ";
$weather.=". обратка ".$t2." ";
$weather.=". газовый ".$t3." ";
say($weather,1);
|
отч(е|ё)т
Код
$t1=gg("sensorTempRemote1.value");
$t2=gg("sensorTempRemote2.value");
$t3=gg("sensorTempRemote3.value");
$tOut=gg("oregon1.temp");
$hOut=gg("oregon1.humidity");
$tIn=gg("oregon2.temp");
$hIn=gg("oregon2.humidity");
$tDavl=gg("atmPressure.value");
$weather.="На улице: ".$tOut." ";
$weather.=". влажность ".$hOut."%";
$weather.=". давление ".$tDavl."мм.";
$weather.=". В доме: ".$tIn." ";
$weather.=" влажность ".$hIn."%";
$weather.=". Котёл: подача ".$t1." ";
$weather.=". обратка ".$t2." ";
$weather.=". газовый ".$t3." ";
say($weather,1);
//say('Температура котла '.$t.' градусов');
//say(timeNow().' Температура котла '.$t.' градусов',1);
/*
$weather.="Сегодня ожидается ".str_replace('°',' ',getGlobal('weatherToday'));
$weather.=". Завтра ".str_replace('°',' ',getGlobal('weatherTomorrow'));
$weather.=". Сейчас на улице ".getGlobal('TempOutside').'.';
$weather=str_replace('°','',$weather);
say($weather,2);*/
|
погод(а|ы)
|
Релакс
Код
getURL('http://localhost/popup/app_101ru.html?ajax=1&op=playstation&id=175', 0);
say("включено радио Релакс эФэМ",2);
|
сценарий (.+)
Код
say("Запускаю сценарий ".$matches[1]);
runScript($matches[1]);
|