$temp2[0]) { $out = "Fallande"; } else{ // If the last and second last readings are the same. $out = "Oförändrad"; } // If the last reading of the outside temp is warmer than second last. if ($temp1[1] < $temp2[1]){ $in = "Stigande"; } // If the last reading of the outside temp is coulder than second last. elseif ($temp1[1] > $temp2[1]){ $in = "Fallande"; } else { // If the last and second last readings are the same. $in = "Oförändrad"; } // Because everybody does not have data for past three years the line above can be commented out. include ("vuositilasto.php"); // =========================================================== // Dynamically changing temperature color procedure (C) Boozeman 23.07.2001 // =========================================================== // Function withch change decimal number to hexadesimal. function RGB($color) { return sprintf("#%02X%02X%02X",$color[0], $color[1], $color[2]); } // Coloring of the last readings. if ($temp2[0] < -0.00) { $blue = 175 - (35 + $temp2[0] * 4 * -1); $colout[0] = $blue; $colout[1] = $blue; $colout[2] = 210; $out_font_color = RGB($colout); } if ($temp2[0] >=0.00) { $red = 175 - (35 + $temp2[0] * 4); $colout[0] = 210; $colout[1] = $red; $colout[2] = $red; $out_font_color = RGB($colout); } if ($temp2[1] > 0.00) { $inred = 175 - (35 + $temp2[1] * 4); $colin[0] = 210; $colin[1] = $inred; $colin[2] = $inred; $in_font_color = RGB($colin); } // Coloring of the second last readings. if ($temp1[0] < -0.00) { $blue2 = 175 - (35 + $temp1[0] * 4 * -1); $colout[0] = $blue2; $colout[1] = $blue2; $colout[2] = 210; $out2_font_color = RGB($colout); } if ($temp1[0] >=0.00) { $red2 = 175 - (35 + $temp1[0] * 4); $colout[0] = 210; $colout[1] = $red2; $colout[2] = $red2; $out2_font_color = RGB($colout); } if ($temp1[1] > 0.00) { $inred2 = 175 - (35 + $temp1[1] * 4); $colin[0] = 210; $colin[1] = $inred2; $colin[2] = $inred2; $in2_font_color = RGB($colin); } // Coloring of the readings a year ago. if ($one_year[0] < -0.00) { $blue3 = 175 - (35 + $one_year[0] * 4 * -1); $year_col_out[0] = $blue3; $year_col_out[1] = $blue3; $year_col_out[2] = 210; $year_out_font_color = RGB($year_col_out); } if ($one_year[0] >=0.00) { $red3 = 175 - (35 + $one_year[0] * 4); $year_col_out[0] = 210; $year_col_out[1] = $red3; $year_col_out[2] = $red3; $year_out_font_color = RGB($year_col_out); } if ($one_year[1] > 0.00) { $inred3 = 175 - (35 + $one_year[1] * 4); $year_col_in[0] = 210; $year_col_in[1] = $inred3; $year_col_in[2] = $inred3; $year_in_font_color = RGB($year_col_in); } // Coloring of the readings for 2 years ago. if ($two_year[0] < -0.00) { $blue3 = 175 - (35 + $two_year[0] * 4 * -1); $two_year_col_out[0] = $blue3; $two_year_col_out[1] = $blue3; $two_year_col_out[2] = 210; $two_year_out_font_color = RGB($two_year_col_out); } if ($two_year[0] >=0.00) { $red3 = 175 - (35 + $two_year[0] * 4); $two_year_col_out[0] = 210; $two_year_col_out[1] = $red3; $two_year_col_out[2] = $red3; $two_year_out_font_color = RGB($two_year_col_out); } if ($two_year[1] > 0.00) { $inred3 = 175 - (35 + $two_year[1] * 4); $two_year_col_in[0] = 210; $two_year_col_in[1] = $inred3; $two_year_col_in[2] = $inred3; $two_year_in_font_color = RGB($two_year_col_in); } // Coloring of the readings for 3 year ago. if ($three_year[0] < -0.00) { $blue3 = 175 - (35 + $three_year[0] * 4 * -1); $three_year_col_out[0] = $blue3; $three_year_col_out[1] = $blue3; $three_year_col_out[2] = 210; $three_year_out_font_color = RGB($three_year_col_out); } if ($three_year[0] >=0.00) { $red3 = 175 - (35 + $three_year[0] * 4); $three_year_col_out[0] = 210; $three_year_col_out[1] = $red3; $three_year_col_out[2] = $red3; $three_year_out_font_color = RGB($three_year_col_out); } if ($three_year[1] > 0.00) { $inred3 = 175 - (35 + $three_year[1] * 4); $three_year_col_in[0] = 210; $three_year_col_incolpastin[1] = $inred3; $three_year_col_incolpastin[2] = $inred3; $three_year_in_font_color = RGB($three_year_col_in); } // Above of this point you see the html-code of Temp'O Matic 2.1 layout ?>
» Tillbaka till webbserverns huvudsida. Exportera till pdf]"; ?>
 
Senaste avläsningen skedde: . Avläsning sker med 30 minuters mellanrum. Hittills har avläsningar gjorts. Tyvärr är sensorn inte skyddad från solen så ibland kan den visa nån grad för mycket.
Innan augusti 2004 gjordes mätningarna på T1 i Linköping. Avläsningar från augusti 2004 till juni 2005 är gjorda i Vasastan i Linköping och mätningar därefter är utförda i Göteborg.
 
°C °C °C °C °C  
°C °C °C °C °C  
 
°C °C °C        
°C °C °C        
 
°C °C
°C °C
 
 
 
Senaste 24h utomhus Max: °C Min: °C
Senaste 24h inomhus Max: °C Min: °C
 
Senaste 7 dagarna utomhus Max: °C Min: °C
 
Senaste 30 dagarna utomhus Max: °C Min: °C
 
Temperaturserverstatistik .
Första avläsningen skedde .