random-device for one-time at-order (define <randdev> at set ...), better WS300-Support

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@32 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinhaas
2007-03-20 18:46:10 +00:00
parent 7c90ecee0f
commit f01f1ea59b
4 changed files with 83 additions and 60 deletions

View File

@@ -38,4 +38,14 @@ function bft($windspeed) # wind speed in Beaufort
}
function randdefine()
{
$rand1 = rand(500,20000);
$rand2 = rand(500,20000);
$rq = md5($rand1.$rand2);
$randdefine=substr($rq,0,5);
return ($randdefine);
}
?>

View File

@@ -34,6 +34,24 @@ $xrange="set xrange ['$xrange2':'$xrange1']
switch ($gnutyp):
Case WS300_t1: ############################################
$gplotmain="
set ylabel 'Temperature (Celsius)'
set y2label 'Humidity (%)'
plot '$logfile' using 1:4 axes x1y1 title 'Temperature' with lines lw 3,\
'$logfile' using 1:6 axes x1y2 title 'Rel. Humidity (%)' with lines
";
break;
Case WS300_t2: ############################################
$gplotmain=<<<EOD
set ylabel "Air Pressure (hPa)"
set y2label "Willi"
plot "< grep -v avg $logfile" using 1:8 axes x1y1 title 'Air Pressure' with lines, \
"< grep -v avg $logfile" using 1:10 axes x1y2 title 'Willi' with lines
EOD;
break;
Case KS300_t1: ############################################
$gplotmain="
set ylabel 'Temperature (Celsius)'