André,
Ich (und waerscheinlich anderen auch) habe hir das gleiche problem.
Wenn es dir interessiert habe ich ein logging script angefertigd.
<?
/*
*******************************
IP-SYNCOM Event Scripting
*******************************
*/
//File: test_programm.ips.php
include_once("scripts/GlobalDefines.ips.php");
//logfilepath
$logfilepath=__myhome."log/temp.txt";
// ********** END OF USER SETTINGS ************************************
//debug
//$IPS_VARIABLE = "tliv_bur1";
$ldebug = GetValueBoolean("__debug");
FS20_SwitchDuration(okel_ch4,true,5);
$thistime = time();
echo $thistime;
if ($IPS_VARIABLE == "vliv_temp_ist") {
SetValueInteger("vliv_temp_lrx_ist", $thistime);
} elseif ($IPS_VARIABLE == "vliv_temp_perc") {
SetValueInteger("vliv_temp_lrx_perc", $thistime);
} else {
echo "UNDEFINED IPS_VARIABLE : $IPS_VARIABLE";
}
if ($ldebug) $handle=fopen("$logfilepath", "a");
//END DEBUG
$isttemp=GetValueFloat("vliv_temp_ist");
$tempperc=GetValueFloat("vliv_temp_perc");
if ($ldebug) echo("isttemp: $isttemp tempperc: $tempperc");
if (($tempperc+0) > 0){
//brander en pompen activeren
FS20_SwitchDuration(okel_ch1,true,60);
FS20_SwitchMode(okel_ch2,true);
$action="pompen AAN";
} else {
FS20_SwitchMode(okel_ch1,false);
FS20_SwitchMode(okel_ch2,false);
$action="pompen UIT";
}
$lastperc = GetValueInteger("vliv_temp_lrx_perc");
$lastist = GetValueInteger("vliv_temp_lrx_ist");
if ($lastperc + 1200 < $thistime) {
if ($ldebug) fwrite($handle, date("d.m.y")." ". date("H:i:s")." ALARM: 'Last Rx of perc value too old'"."
");
TTS_Speak(oTTS,"ALARM ALARM last P E R C time is too old");
}
if ($lastist + 1200 < $thistime) {
if ($ldebug) fwrite($handle, date("d.m.y")." ". date("H:i:s")." ALARM: 'Last Rx of ist- value too old'"."
");
TTS_Speak(oTTS,"ALARM ALARM last I S T time is too old");
}
if ($ldebug) fwrite($handle, date("d.m.y")." ". date("H:i:s")." ".$IPS_VARIABLE." ist : $isttemp"." "."perc : $tempperc"."
");
if ($ldebug) fwrite($handle, date("d.m.y")." ". date("H:i:s")." "."action : $action"."
");
if ($ldebug) fclose($handle);
?>
dieser script gibt eine text aussage wenn nach 20 minuten keine durchsage von die FHT % oder IST wert gekommen ist.
Das script soll unbedingt fuer deine Anlage angepasst werden. Ich habe es mit copy & paste hier eingetragen. Also Instanzen und Variabele änderen in werte die deine installation kennt.
Bei Probleme einfach antworten.
Grusse,
Fredje