mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
User defined graphics for FW20 wth full picture.
git-svn-id: https://svn.fhem.de/fhem/trunk@99 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cb82547248
commit
72b261d6aa
@ -133,3 +133,6 @@ It is not necessary to tell fhem that there are other logs.
|
|||||||
|
|
||||||
2007-10-16 (CVS)
|
2007-10-16 (CVS)
|
||||||
-- feature: User defined graphics now for Piri and FS20 too. Everthing is explained in the config.php.
|
-- feature: User defined graphics now for Piri and FS20 too. Everthing is explained in the config.php.
|
||||||
|
|
||||||
|
2007-10-18 (CVS)
|
||||||
|
-- feature: User defined graphics for FS20 now with a full picture.
|
||||||
|
@ -32,3 +32,5 @@
|
|||||||
- User defined logs with several values in one file now supported. Changes in index.php, gnuplot.php, userdefs.php and config.php.
|
- User defined logs with several values in one file now supported. Changes in index.php, gnuplot.php, userdefs.php and config.php.
|
||||||
- Martin 2007-10-16
|
- Martin 2007-10-16
|
||||||
- User defined graphics now for Piri an FS20 too
|
- User defined graphics now for Piri an FS20 too
|
||||||
|
- Martin 2007-10-18
|
||||||
|
- User defined graphics for FS20 improved ("full" picture)
|
||||||
|
@ -11,15 +11,6 @@ include "../config.php";
|
|||||||
include "functions.php";
|
include "functions.php";
|
||||||
|
|
||||||
|
|
||||||
#function normalize($piriarray)
|
|
||||||
#{
|
|
||||||
# print_r($piriarray);
|
|
||||||
# exit;
|
|
||||||
|
|
||||||
#
|
|
||||||
#}
|
|
||||||
|
|
||||||
|
|
||||||
$userdefnr=$_GET['userdefnr'];
|
$userdefnr=$_GET['userdefnr'];
|
||||||
|
|
||||||
$room=$userdef[$userdefnr]['room'];
|
$room=$userdef[$userdefnr]['room'];
|
||||||
@ -39,7 +30,6 @@ include "functions.php";
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if (! in_array($type,$supported_USERDEF)) show_error_type($imgmaxxuserdef,$imgmaxyuserdef,$type);
|
|
||||||
if (! file_exists($file)) show_error($file,$drawuserdef,$imgmaxxuserdef,$imgmaxyuserdef,$type,$userdefnr);
|
if (! file_exists($file)) show_error($file,$drawuserdef,$imgmaxxuserdef,$imgmaxyuserdef,$type,$userdefnr);
|
||||||
|
|
||||||
$_SESSION["arraydata"] = array();
|
$_SESSION["arraydata"] = array();
|
||||||
@ -101,7 +91,6 @@ include "functions.php";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# normalize($_SESSION["arraydata"]);
|
|
||||||
|
|
||||||
$resultreverse = array_reverse($_SESSION["arraydata"]);
|
$resultreverse = array_reverse($_SESSION["arraydata"]);
|
||||||
$xold=$imgmaxxuserdef;
|
$xold=$imgmaxxuserdef;
|
||||||
@ -166,9 +155,23 @@ switch ($gnuplottype):
|
|||||||
EOD;
|
EOD;
|
||||||
break;
|
break;
|
||||||
Case 'fs20':
|
Case 'fs20':
|
||||||
|
$actdate= date("Y-m-d_H:i:s");
|
||||||
|
$newlastline=$actdate." ".$f2." ".$f3." ".$f4." ".$f5." ".$f6;
|
||||||
|
array_push( $array ,$newlastline);
|
||||||
|
$filename=substr($file,strrpos($file, '/')+1);
|
||||||
|
$filename='../tmp/'.$filename.'.tmp';
|
||||||
|
$f1=fopen("$filename","w");
|
||||||
|
for ($x = 0; $x <= count($array); $x++)
|
||||||
|
{
|
||||||
|
fputs($f1,$array[$x]);
|
||||||
|
}
|
||||||
|
fputs($f1,"\n");
|
||||||
|
fclose($f1);
|
||||||
|
|
||||||
|
|
||||||
$messageB=<<<EOD
|
$messageB=<<<EOD
|
||||||
plot "< awk '{print $1, $3==\"on\"? 1 : $3==\"dimup\"? 0.8 : $3==\"dimdown\"? 0.2 : $3==\"off\"? 0 : 0.5;}' \
|
plot "< awk '{print $1, $3==\"on\"? 1 : $3==\"dimup\"? 0.8 : $3==\"dimdown\"? 0.2 : $3==\"off\"? 0 : 0.5;}' \
|
||||||
$file" using 1:2 title '' with steps
|
$filename" using 1:2 title '' with steps
|
||||||
|
|
||||||
EOD;
|
EOD;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user