mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
design: userdef-gnuplot with transparent background
git-svn-id: https://svn.fhem.de/fhem/trunk@107 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5e8bf7aaeb
commit
8afe3f06dc
@ -142,3 +142,7 @@ It is not necessary to tell fhem that there are other logs.
|
||||
|
||||
2007-10-24 (071024cvs)
|
||||
-- bugfix: at least one new picture per hour for userdefs (gnuplot picture)
|
||||
|
||||
2007-10-25 (071025cvs)
|
||||
-- design: userdef-gnuoplot with transparent background
|
||||
|
||||
|
@ -42,3 +42,6 @@
|
||||
|
||||
- Martin 2007-10-24
|
||||
- Change in userdefs.php. At least one new picture per hour for userdefs (gnuplot picture)
|
||||
|
||||
- Martin 2007-10-25
|
||||
- design: userdef-gnuplot with transparent background (userdef.php)
|
||||
|
@ -167,7 +167,7 @@ if ($gnuplottype=='piri' or $gnuplottype=='fs20')
|
||||
|
||||
$messageA=<<<EOD
|
||||
set output '$AbsolutPath/tmp/$gnuplotpng'
|
||||
set terminal png
|
||||
set terminal png transparent
|
||||
set xdata time
|
||||
set timefmt '%Y-%m-%d_%H:%M:%S'
|
||||
set noytics
|
||||
@ -237,7 +237,6 @@ if ($gnuplottype=='piri' or $gnuplottype=='fs20')
|
||||
$f1=fopen("$AbsolutPath/tmp/$drawuserdef","w+");
|
||||
fputs($f1,$message);
|
||||
fclose($f1);
|
||||
# exit;
|
||||
exec("$gnuplot $AbsolutPath/tmp/$drawuserdef",$output);
|
||||
|
||||
$w = imagesx($im);
|
||||
@ -246,7 +245,7 @@ if ($gnuplottype=='piri' or $gnuplottype=='fs20')
|
||||
$im2 = imagecreatefrompng("$AbsolutPath/tmp/$gnuplotpng");
|
||||
$w2 = imagesx($im2);
|
||||
$h2 = imagesy($im2);
|
||||
ImageCopy($im,$im2,150,0,0,10,$w2-10,$h2);
|
||||
ImageCopy($im,$im2,163,0,0,10,$w2-20,$h2);
|
||||
}
|
||||
|
||||
|
||||
@ -272,7 +271,7 @@ if ($gnuplottype=='piri' or $gnuplottype=='fs20')
|
||||
$text="min= $mintemp max= $maxtemp";
|
||||
ImageTTFText ($im, $fontsize, 0, 67-$XcorrectMainTextUSERDEF, 49, $txtcolor, $fontttf, $text);
|
||||
$text=$resultreverse[0][0];
|
||||
ImageTTFText ($im, $fontsize, 0, $imgmaxxuserdef-127, 13, $txtcolor, $fontttf, $text);
|
||||
ImageTTFText ($im, $fontsize, 0, $imgmaxxuserdef-127, 15, $txtcolor, $fontttf, $text);
|
||||
#############################################################################
|
||||
## general
|
||||
$txtcolor=$bg3p;
|
||||
|
@ -41,7 +41,7 @@ include "include/gnuplot.php";
|
||||
include "include/functions.php";
|
||||
|
||||
|
||||
$pgm3version='071024';
|
||||
$pgm3version='071025';
|
||||
|
||||
|
||||
$Action = $_POST['Action'];
|
||||
|
Loading…
Reference in New Issue
Block a user