2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

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

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

View File

@ -141,4 +141,4 @@ It is not necessary to tell fhem that there are other logs.
-- 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)
-- bugfix: at least one new picture per hour for userdefs (gnuplot picture)

View File

@ -41,4 +41,4 @@
- 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)
- Change in userdefs.php. At least one new picture per hour for userdefs (gnuplot picture)

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);