Temperature in Matojärvi IP, Kiruna
"; ?> "; $dblink = new mysqli("localhost", "ifk", "taavaskaite", "ifk"); $sql_query_west = "SELECT DATETIME, temperature FROM tempmatto2 ORDER BY DATETIME DESC LIMIT 1"; $sql_query = "SELECT DATETIME, temperature FROM tempmatto1 ORDER BY DATETIME DESC LIMIT 1"; $sql_query_hum = "SELECT DATETIME, humidity FROM humiditymatto ORDER BY DATETIME DESC LIMIT 1"; $res = $dblink->query($sql_query); if ($res->num_rows) { while ($myrow = $res->fetch_assoc()){ $timestr = $myrow['DATETIME']; $temp = $myrow['temperature']; } } $date_time = explode(" ", $timestr); $date = explode("-", $date_time[0]); $time = explode(":", $date_time[1]); $res = $dblink->query($sql_query_west); if ($res->num_rows) { while ($myrow = $res->fetch_assoc()){ $timestr_west = $myrow['DATETIME']; $temp_west = $myrow['temperature']; } } $date_time_west = explode(" ", $timestr_west); $date_west = explode("-", $date_time_west[0]); $time_west = explode(":", $date_time_west[1]); $res = $dblink->query($sql_query_hum); if ($res->num_rows) { while ($myrow = $res->fetch_assoc()){ $timestr_hum = $myrow['DATETIME']; $humidity = $myrow['humidity']; } } $date_time_hum = explode(" ", $timestr_hum); $date_hum = explode("-", $date_time_hum[0]); $time_hum = explode(":", $date_time_hum[1]); //echo $date_time[0]." ".$date_time[1]."
\n"; $gmmktime = gmmktime($time[0], $time[1], $time[2], $date[1], $date[2], $date[0]); $txtdate = date("Y-m-d H:i", $gmmktime); $gmmktime_west = gmmktime($time_west[0], $time_west[1], $time_west[2], $date_west[1], $date_west[2], $date_west[0]); $txtdate_west = date("Y-m-d H:i", $gmmktime_west); $gmmktime_hum = gmmktime($time_hum[0], $time_hum[1], $time_hum[2], $date_hum[1], $date_hum[2], $date_hum[0]); $txtdate_hum = date("Y-m-d H:i", $gmmktime_hum); /* $todays_mpg = date("Y/m/Y-m-d", $gmmktime).".mpg"; //$todays_motion_mpg = "/motion-images-matto/".date("Y/m/", $gmmktime)."motion-".date("Y-m-d", $gmmktime).".mpg"; $todays_motion_mpg = "../motion-images-matto/".date("Y/m/")."motion-".date("Y-m-d").".mpg"; //$todays_motion_dir = "/home/org/ifk/public_html/motion-images-matto/".date("Y/m/", $gmmktime); $todays_motion_dir = "/home/org/ifk/public_html/motion-images-matto/".date("Y/m/"); $stat_motion_dir = stat($todays_motion_dir); //$datetime = new DateTime($myrow['DATETIME']); //echo "Time is ".$datetime->format('Y-m-d H:i')."
\n"; //echo "

Temperaturen på Matojärvi IP, Kiruna ".$datetime->format('Y-m-d H:i')."
"; //echo "

Temperaturen på Matojärvi IP, Kiruna ".$txtdate."
"; */ echo "

Temperature in Matojärvi Stadium, Kiruna

"; ?>

The temperature is measured in two directions. To west and to east
The temperature on other places in Kiruna
Specific page for cross country skiers
The temperature at the western house wall: "; if ($temp_west > 0) //printf("%.1f°C (%.1f°F)", round($temp*10)/10, round(10*((1.8*$temp)+32))/10); printf("%.1f°C (%s)", round($temp_west*10)/10, $txtdate_west); if ($temp_west < 0) //printf("%.1f°C (%.1f°F)", round($temp_west*10)/10, round(10*((1.8*$temp)+32))/10); printf("%.1f°C (%s)", round($temp_west*10)/10, $txtdate_west); if ($temp_west == 0) printf("%.1f°C (%s)", round($temp_west*10)/10, $txtdate_west); echo "
The temperature at eastern house wall (against stadium): "; if ($temp > 0) //printf("%.1f°C (%.1f°F)", round($temp*10)/10, round(10*((1.8*$temp)+32))/10); printf("%.1f°C (%s)", round($temp*10)/10, $txtdate); if ($temp < 0) //printf("%.1f°C (%.1f°F)", round($temp*10)/10, round(10*((1.8*$temp)+32))/10); printf("%.1f°C (%s)", round($temp*10)/10, $txtdate); if ($temp == 0) printf("%.1f°C (%s)", round($temp*10)/10, $txtdate); //echo "
Relative humidity (placed on western wall): "; //printf("%d%% (%s)", round($humidity), $txtdate_hum); //echo ""; //echo ""; /*$file_mpg = "/home/org/ifk/public_html/temp/webcam/".$todays_mpg; $mpg_size = round(filesize($file_mpg)/(1024*1024),1); $file_motion_mpg = "/home/org/ifk/public_html/motion-images-matto/".date("Y/m/")."motion-".date("Y-m-d").".mpg"; $stat_motion_dir = stat("/home/org/ifk/public_html/motion-images-matto/".date("Y/m/", $gmmktime)); $mpg_motion_size = round(filesize($file_motion_mpg)/(1024*1024),1); //echo "

Dagens film (en minut upplösning) [".$mpg_size."MB] (senast uppdaterad: ".date("H:i", filemtime($file_mpg)).")"; $d = fopen("/home/org/ifk/public_html/motion-images-matto/last_movement","r"); if ($d) { $dstr = fgets($d); list($dt, $dtime) = explode(" ", $dstr); } if (file_exists($file_motion_mpg)) //echo "

Dagens rörelse-film [".$mpg_motion_size."MB] [arkiv] (senast uppdaterad: ".date("H:i", filemtime($file_motion_mpg))." (uppdateras en gång i timmen och fångar nästan alla rörelser (spårmaskinen missas dock inte)))"; echo "

Dagens rörelse-film [".$mpg_motion_size."MB] [arkiv] (senaste rörelsen: ".$dtime." [uppdaterad ".date("H:i:s", filemtime($file_motion_mpg))."] (uppdateras en gång i timmen och fångar nästan alla rörelser (spårmaskinen missas dock inte)))"; else echo "

Dagens rörelse-film [ingen film] [arkiv] (fångar nästan alla rörelser (spårmaskinen missas dock inte))"; echo '
Vilka spår har pistats?'; */ ?>
Vinter 2011 -> Vinter 2012 [uppdaterad ".date("Y-m-d H:i:s", filemtime("/home/org/ifk/public_html/motion-images-matto/winter-to-summer.mpg"))."]"; //echo "

\"Karta "; ?>




Search for data
Jämför Centrum med IRF (Institutet för rymdfysik) ett par km från flygplatsen

"; ?>