11 UCW::CGI::parse_args({
12 'g' => { 'var' => \$graph, 'default' => 'temp-12h' },
16 Content-type: text/html
18 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
20 <title>Weather in the Burrow</title>
22 <h1>Weather in the Burrow</h1>
26 my $prefix = shift @_;
33 $out .= " <a href='?g=$y'>$x</a>";
39 print "<p>Temperature:", links("temp-", "quick", "12h", "48h", "month"), "\n";
40 print "<p>Humidity:", links("rh-", "12h", "48h", "month"), "\n";
41 print "<p>Power:", links("power-", "2h", "2h-detail", "day", "day-detail", "month"), "\n";
43 if ($graph =~ /^power-/) {
44 $graph = "http://micac.burrow.ucw.cz/cgi-bin/$graph";
46 print "<p><img src='$graph.cgi'>\n";