2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

logformat for ks300

git-svn-id: https://svn.fhem.de/fhem/trunk@621 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinhaas 2010-04-22 08:52:21 +00:00
parent 121ea36dbe
commit 11c3e6d4a4
2 changed files with 4 additions and 4 deletions

View File

@ -148,8 +148,8 @@
$showdewpointks300='yes'; # Dewpoint (german: taupunkt)
$XcorrectMainTextKS=45; # Text of main text from the right side (Default: 35)
$logrotateKS300lines=2100; # automatic Logrotate; $logrotate must be 'yes'.
# Default:2100
$logrotateKS300lines=13000; # automatic Logrotate; $logrotate must be 'yes'.
# Default: 13000
# read docs/logrotate if you want adjust it manually
# otherwise the system will slow down
# pgm3 (user www-data) needs the rights to write the logs

View File

@ -121,7 +121,6 @@ if ($DBUse=="1") {
$oldmin=$array[$x][14];
$oldhour=$array[$x][12];
array_push( $arraydata,array($date,$temp,$hum,$wind,$rain,$israin));
}
}
#WS300 has Willi instead other things
@ -178,6 +177,7 @@ if ($DBUse=="1") {
$txtcolor=$bg3p;
ImageTTFText ($im, $fontsize, 0, 3, 10, $txtcolor, $fontttf, $text);
$fontsize=9;
$temp=$resultreverse[0][1]; #Martin
$text=$temp." °C";
$tvalue= $temp;
ImageTTFText ($im, $fontsize, 0, 90-$XcorrectMainTextKS, 37, $txtcolor, $fontttfb, $text);
@ -502,7 +502,7 @@ function show_error($file,$draw,$imgmaxx,$imgmaxy)
imagestring($im, 3, 5, 5, "Error, there is no $file", $black);
imagestring($im, 1, 3, 25, "Please add the following to your fhem.cfg", $black);
$logname=$draw."log";
imagestring($im, 1, 3, 35, "define $logname FileLog $file $draw:.*H:.*", $black);
imagestring($im, 1, 3, 35, "define $logname FileLog $file $draw:*", $black);
header("Content-type: image/png");
imagePng($im);
exit;