Changeset 14 for weatherstats

Show
Ignore:
Timestamp:
02/14/11 15:41:35 (15 months ago)
Author:
apribyl
Message:

Few small fixes.

Location:
weatherstats
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • weatherstats/styles.css

    r7 r14  
    2525} 
    2626 
    27 .wvalue a {  
     27.wvalue { 
    2828        font-size: 2em; 
    2929        font-weight: bold; 
     30} 
     31 
     32.wvalue a { 
    3033        color: black; 
    3134} 
    3235 
    33 .wscale a {  
     36.wscale {  
    3437        font-size: 1em; 
     38} 
     39 
     40.wscale a { 
    3541        color: black; 
    3642} 
  • weatherstats/weatherstats

    r9 r14  
    99# WeatherStats 
    1010# 
    11 # version:      0.6 
     11# version:      0.6.2 
    1212# 
    1313# author:       Adam Pribyl, covex@lowlevel.cz 
     
    159159                $img = $wwwdir.$wname."_".$gtime.".gif"; 
    160160                $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 
    161162 
    162163                # compile the graphs arguments 
     
    193194                                if ($atribute eq "direction") { 
    194195                                        $scale = ${$hasharray{$atribute}}[2]; 
    195                                         if ($gtime = "24h") { 
     196                                        #if ($gtime eq "24h") { 
    196197                                                $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                                        #} 
    200201                                        $arguments = $arguments."CDEF:North=".$atribute.",0,GE,-4,* "; 
    201202                                        $arguments = $arguments."CDEF:NNE=".$atribute.",1,GE,-4,* "; 
     
    474475                if ($rrdbn eq "interval") { next }; 
    475476 
     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. 
    476478                &insertdb($rrdbn,$value,$scale,$aline[0]); 
    477479#               &print_page($rrdbn,$aline[0]);