Commit 4b01e6f5 authored by Florence Guitton's avatar Florence Guitton

display meteo data

parent c12f7c48
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -13,6 +13,9 @@ global $lastValue_meteo;
//
global $datedeb;
global $datefin;
////////////////////////////
// dates debut et fin de nuit :
// $jour="2018-04-26";
......@@ -25,7 +28,7 @@ global $datefin;
$cpt = 0;
$value="null";
//echo "<br>";
//echo $sql."<br> ".$datedeb." -> ".$datefin."<br>";
//echo $sql." <br> ".$datedeb." -> ".$datefin." </br>";
$req = mysqli_query($db,$sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysqli_error());
while ($data = mysqli_fetch_assoc($req)) {
......@@ -214,6 +217,7 @@ global $datefin;
$db = mysqli_connect($host_meteo, $login_meteo, $pass_meteo,'weewx');
if ($db) {
//echo'<p> get_meteo_data </p>';
$tab_name_meteo = array ("outHumidity");
$graph22_data= getFinalCurvemeteo($tab_name_meteo);
$tab_name_meteo = array ("windSpeed");
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -6,13 +6,10 @@
//
function getHeader ($image) {
system('/home/renaud/bin/listheader '.$image.' > lines.txt',$return);
//system('/home/renaud/bin/listheader '.$image,$return);
//echo '<p> /home/renaud/bin/listheader '.$image.' > lines.txt </p>';
if ($return==0){
$test=file('lines.txt');
$length=count($test);
//echo '<p> file length: '.$length.'!!</p>';
$i=0;
while ( $i<$length)
{
......@@ -22,15 +19,12 @@ function getHeader ($image) {
}
else{
$line=$test[$i];
//echo '<p> date line:'.$line.' </p>';
break;
}
}
$keywords = preg_split("/[\s,]+/", $line);
//echo '<p> keywords'.$keywords[1].' </p>';
$date=$keywords[1];
if ($date<>''){
//echo '<p> date getHeader function'.$date.'</p>';
return $date;
}
else{
......
......@@ -8,7 +8,7 @@ include "status_allsky.php";
include "status_meteo.php";
include "get_pictures_allsky.php";
include "graph_data.php";
include "stateDisk.php";
include "image.php";
......@@ -27,7 +27,7 @@ include "stateDisk.php";
<body>
<?php //phpinfo(); ?>
<center>CATS (Calern Atmospheric Turbulence Station)
<center>Meteospace
<br><br></center>
<center>
......@@ -45,33 +45,58 @@ include "stateDisk.php";
</center>
</td>
<td rowspan=3>
<center>METEO
<a href="graphMeteo.php?data=Humidity"><div id="graph_humidity" style="width: 175px; height: 105px"></div></a>
<td rowspan=3 > <!-- 3 lignes -->
<center>METEO</center>
<!-- <a href="graphMeteo.php?data=Humidity"><div id="graph_humidity" style="width: 175px; height: 105px"></div></a>
<a href="graphMeteo.php?data=Temperature"><div id="graph_temp" style="width: 175px; height: 105px"></div></a>
<a href="graphMeteo.php?data=Wind"><div id="graph_windspeed" style="width: 175px; height: 105px"></div></a>
<a href="graphMeteo.php?data=Wind"><div id="graph_windspeed" style="width: 175px; height: 105px"></div></a> -->
<center>
<a href="graphMeteo.php?data=Humidity">
<?php echo '<button type="submit"> humidity :'.$notGraph_humidity.' (%) </button>'; ?>
</a>
</center>
<center>
<a href="graphMeteo.php?data=Temperature">
<?php echo '<button type="submit"> temperature :'.$notGraph_temp.' (°C)</button>'; ?>
</a>
</center>
<center>
<a href="graphMeteo.php?data=Wind">
<?php echo '<button type="submit"> wind :'.$notGraph_wind.' (m/s)</button>'; ?>
</a>
</center>
</td>
<td colspan=2>
<td colspan=2> <!-- 2 colonnes -->
<center>IMAGES</center>
<?php $images=getFiles('/home/guitton/');
?>
<center>
<img src="CCD61.png" alt="<?php echo $title1 ?>" style="width:200px;height:200px;">
<?php echo '<img src='.$images[0].' alt="<?php echo $title1 ?>" style="width:200px;height:200px;">'; ?>
</center>
</td>
</tr>
</td></tr>
<tr><td colspan=2>
<center>
<a href="sky_fullpage.html">
<img src="CCD71.png" alt="<?php echo $title1 ?>" style="width:200px;height:200px;">
</a>
<?php echo '<img src='.$images[1].' alt="<?php echo $title1 ?>" style="width:200px;height:200px;">'; ?>
</center>
</td></tr>
<tr><td colspan=2>
<center>
<img src="CCD81.png" alt="<?php echo $title1 ?>" style="width:200px;height:200px;">
<?php echo '<img src='.$images[2].' alt="<?php echo $title1 ?>" style="width:200px;height:200px;">'; ?>
</center>
</td></tr>
<tr>
......@@ -107,8 +132,12 @@ else{
</td></tr>
<tr>
<td><center>actions</center></td>
<td><center>actions toit</center></td>
<td style="border:2px solid red"><center>actions</center></td>
<td style="border:2px solid red"><center>actions toit</center></td>
<td><center>STATUS COM</center></td>
</tr>
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment