Changeset 14 for weatherstats
- Timestamp:
- 02/14/11 15:41:35 (15 months ago)
- Location:
- weatherstats
- Files:
-
- 2 modified
-
styles.css (modified) (1 diff)
-
weatherstats (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
weatherstats/styles.css
r7 r14 25 25 } 26 26 27 .wvalue a {27 .wvalue { 28 28 font-size: 2em; 29 29 font-weight: bold; 30 } 31 32 .wvalue a { 30 33 color: black; 31 34 } 32 35 33 .wscale a{36 .wscale { 34 37 font-size: 1em; 38 } 39 40 .wscale a { 35 41 color: black; 36 42 } -
weatherstats/weatherstats
r9 r14 9 9 # WeatherStats 10 10 # 11 # version: 0.6 11 # version: 0.6.2 12 12 # 13 13 # author: Adam Pribyl, covex@lowlevel.cz … … 159 159 $img = $wwwdir.$wname."_".$gtime.".gif"; 160 160 $cmd_arguments = $rrdtoolp." graph ".$img." --start -".$gtimes{$gtime}." --width 550 --height 150 --vertical-label \"".ucfirst($wname)."\" --watermark \"WeatherStats\" \\"; #jak udelat scale?? --vertical-label".$scale\" \\"; 161 if ($wname eq "pressure") { $cmd_arguments = $cmd_arguments."-A \\" } #scale na max a min hodnotu pro tlak 161 162 162 163 # compile the graphs arguments … … 193 194 if ($atribute eq "direction") { 194 195 $scale = ${$hasharray{$atribute}}[2]; 195 if ($gtime ="24h") {196 #if ($gtime eq "24h") { 196 197 $arguments = $arguments."DEF:".$atribute."=".$rrdbp.$wname."_".$atribute.".rrd:".$atribute.":AVERAGE "; 197 } else {198 $arguments = $arguments."DEF:".$atribute."=".$rrdbp.$wname."_".$atribute.".rrd:".$atribute.":MAX ";199 }198 #} else { 199 # $arguments = $arguments."DEF:".$atribute."=".$rrdbp.$wname."_".$atribute.".rrd:".$atribute.":MAX "; 200 #} 200 201 $arguments = $arguments."CDEF:North=".$atribute.",0,GE,-4,* "; 201 202 $arguments = $arguments."CDEF:NNE=".$atribute.",1,GE,-4,* "; … … 474 475 if ($rrdbn eq "interval") { next }; 475 476 477 #The only difference if the order of words in wwsr output changes is, that the description of values in graphs is different. Values are processed correctly anyway. 476 478 &insertdb($rrdbn,$value,$scale,$aline[0]); 477 479 # &print_page($rrdbn,$aline[0]);