mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
At least one new picture per day for userdefs (gnuplot picture)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@105 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a067c6bf6d
commit
5176484e76
@ -139,3 +139,6 @@ It is not necessary to tell fhem that there are other logs.
|
|||||||
|
|
||||||
2007-10-23 (071023cvs)
|
2007-10-23 (071023cvs)
|
||||||
-- feature: optimized speed for small devices (more than 50 percent on e.g a NSLU2)
|
-- feature: optimized speed for small devices (more than 50 percent on e.g a NSLU2)
|
||||||
|
|
||||||
|
2007-10-24 (071024cvs)
|
||||||
|
-- bugfix: at least one new picture per day for userdefs (gnuplot picture)
|
||||||
|
@ -39,3 +39,6 @@
|
|||||||
|
|
||||||
- Martin 2007-10-23
|
- Martin 2007-10-23
|
||||||
- every module now checks if a redraw of the picture is really necessary. If not the old picture will be sent. The time to reload the screen now is down to less than 50 percent.
|
- every module now checks if a redraw of the picture is really necessary. If not the old picture will be sent. The time to reload the screen now is down to less than 50 percent.
|
||||||
|
|
||||||
|
- Martin 2007-10-24
|
||||||
|
- Change in userdefs.php. At least one new picture per day for userdefs (gnuplot picture)
|
||||||
|
@ -40,8 +40,10 @@ include "functions.php";
|
|||||||
$parts = explode(" ", $tail1[0]);
|
$parts = explode(" ", $tail1[0]);
|
||||||
|
|
||||||
|
|
||||||
|
$today= date("d");
|
||||||
$savefile=$AbsolutPath."/tmp/USERDEF.".$drawuserdef.".log.".$parts[0].".png";
|
$savefile=$AbsolutPath."/tmp/USERDEF.".$drawuserdef.".log.".$parts[0].".png";
|
||||||
if (file_exists($savefile)) {
|
$fmtime=date ("d", filemtime($savefile)); #at least one new graphic per day (gnuplot)
|
||||||
|
if ((file_exists($savefile)) and ($fmtime == $today)) {
|
||||||
|
|
||||||
$im2 = @ImageCreateFromPNG($savefile);
|
$im2 = @ImageCreateFromPNG($savefile);
|
||||||
header("Content-type: image/png");
|
header("Content-type: image/png");
|
||||||
@ -69,7 +71,6 @@ include "functions.php";
|
|||||||
$mintemp=100;
|
$mintemp=100;
|
||||||
$maxtemp=-100;
|
$maxtemp=-100;
|
||||||
$counter=count($array);
|
$counter=count($array);
|
||||||
#if ($maxcountUSERDEF < $counter) {$counter=$maxcountUSERDEF;};
|
|
||||||
|
|
||||||
#Logrotate
|
#Logrotate
|
||||||
if ((($logrotateUSERDEFlines+100) < $counter) and ($logrotate == 'yes')) LogRotate($array,$file,$logrotateUSERDEFlines);
|
if ((($logrotateUSERDEFlines+100) < $counter) and ($logrotate == 'yes')) LogRotate($array,$file,$logrotateUSERDEFlines);
|
||||||
@ -314,11 +315,6 @@ function show_error($file,$drawuserdef,$imgmaxx,$imgmaxy,$type,$section)
|
|||||||
$txtcolor=$bg3p;
|
$txtcolor=$bg3p;
|
||||||
ImageTTFText ($im, $fontsize, 0, 5, 17, $txtcolor, $fontttf, $text);
|
ImageTTFText ($im, $fontsize, 0, 5, 17, $txtcolor, $fontttf, $text);
|
||||||
$text="Please check the userdef[$section] of <pgm3>/config.php and refresh your browser";
|
$text="Please check the userdef[$section] of <pgm3>/config.php and refresh your browser";
|
||||||
#$fontsize=7;
|
|
||||||
#ImageTTFText ($im, $fontsize, 0, 5, 30, $txtcolor, $fontttf, $text);
|
|
||||||
#$logname=$drawuserdef."log";
|
|
||||||
#$fontsize=9;
|
|
||||||
#$text="define $logname FileLog $file $drawuserdef:.*s:.*";
|
|
||||||
ImageTTFText ($im, $fontsize, 0, 5, 45, $txtcolor, $fontttf, $text);
|
ImageTTFText ($im, $fontsize, 0, 5, 45, $txtcolor, $fontttf, $text);
|
||||||
|
|
||||||
header("Content-type: image/png");
|
header("Content-type: image/png");
|
||||||
|
@ -41,7 +41,7 @@ include "include/gnuplot.php";
|
|||||||
include "include/functions.php";
|
include "include/functions.php";
|
||||||
|
|
||||||
|
|
||||||
$pgm3version='071023cvs';
|
$pgm3version='071024';
|
||||||
|
|
||||||
|
|
||||||
$Action = $_POST['Action'];
|
$Action = $_POST['Action'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user