At least one new picture per hour for userdefs (gnuplot picture)

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@106 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinhaas
2007-10-24 20:08:43 +00:00
parent 9d14e0c996
commit b33d49722a
3 changed files with 4 additions and 4 deletions

View File

@@ -40,9 +40,9 @@ include "functions.php";
$parts = explode(" ", $tail1[0]);
$today= date("d");
$today= date("H");
$savefile=$AbsolutPath."/tmp/USERDEF.".$drawuserdef.".log.".$parts[0].".png";
$fmtime=date ("d", filemtime($savefile)); #at least one new graphic per day (gnuplot)
$fmtime=date ("H", filemtime($savefile)); #at least one new graphic per hour (gnuplot)
if ((file_exists($savefile)) and ($fmtime == $today)) {
$im2 = @ImageCreateFromPNG($savefile);