logformat for ks300

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

View File

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

View File

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