| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/projects/isvtgrs/ |
Upload File : |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="15" />
<title>Untitled Document</title>
</head>
<body style = "text-align: ceneter; background-color: beige;"></body>
<body>
<table>
<tr>
<td><img src="img/vtg.png" alt="Vetroing" style="width:100px;hight:120px"></td>
<td style = "text-align: center; font-family: Verdana; font-size: 24px; color: green"><b>VETROINŽENJERING<br>Čačak</br></b></td>
</tr>
</table>
<h1 style="color: green; font-family: Verdana; font-size: 24px; text-align: center">INFORMATION SYSTEM FOR MONITORING<br>IN THE GREEN ENERGY SYSTEMS</br></h1>
<h1 style="color: green; font-family: Verdana; font-size: 36px; text-align: center">ATMOSPHERIC & LIGHT PARAMETERS</h1>
<h1 style="color: green; font-family: Verdana; font-size: 24px; text-align: center">RELATIVE AIR HUMIDITY - Graphic view</h1>
<?php
include "config.php";
include "graph-header.php";
echo "<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='1200' height='425'>";
echo "<rect x = '225' width = '800' height = '415' fill = 'rgb(234,250,241)' stroke-width = '3' stroke = 'rgb(25,111,61)' />";
echo "<g stroke='green' stroke-width='2'>";
$k=0;
for ($x = 225; $x < 1025; $x=$x+12) {
$k++;
$x1=$x;
$x2=$x;
if ($k==2){
$y1=424;
$y2=406;
echo "<line x1=".$x1." y1=".$y1." x2=".$x2." y2='0' />";
$k=0;
}
else{
$y1=424;
$y2=414;
echo "<line x1=".$x1." y1=".$y1." x2=".$x2." y2=".$y2." />";
}
}
echo "</g>";
$t0 =0;
//
$dy=0;
$h=3.5;
$dty=-5;
$dtx=5;
$s1=0;
$s2=25;
$s3=50;
$s4=75;
$s5=100;
//
$dt0=210-($t0-$dy)*$h;
$ds1=210-($s1-$dy)*$h;
$ds2=210-($s2-$dy)*$h;
$ds3=210-($s3-$dy)*$h;
$ds4=210-($s4-$dy)*$h;
$ds5=210-($s5-$dy)*$h;
$ds6=210-($s6-$dy)*$h;
$ds7=210-($s7-$dy)*$h;
//
//echo"<g stroke='blue'>";
//echo "<line x1='225' y1='".$dt0."' x2='1025' y2='".$dt0."' />";
//echo"</g>";
//echo"<g stroke='gray'>";
echo"<g stroke='green' stroke-width='3'>";
echo "<line x1='225' y1='20' x2='1025' y2='20' />";
echo "<line x1='225' y1='120' x2='1025' y2='120' />";
echo "<line x1='225' y1='220' x2='1025' y2='220' />";
echo "<line x1='225' y1='320' x2='1025' y2='320' />";
echo"</g>";
echo"<g stroke='gray'>";
echo "<line x1='225' y1='70' x2='1025' y2='70' />";
echo "<line x1='225' y1='170' x2='1025' y2='170' />";
echo "<line x1='225' y1='270' x2='1025' y2='270' />";
echo "<line x1='225' y1='370' x2='1025' y2='370' />";
echo"</g>";
//echo"<g stroke='gray'>";
//echo "<line x1='225' y1='".$ds1."' x2='1025' y2='".$ds1."' />";
//echo "<line x1='225' y1='".$ds2."' x2='1025' y2='".$ds2."' />";
//echo "<line x1='225' y1='".$ds3."' x2='1025' y2='".$ds3."' />";
//echo "<line x1='225' y1='".$ds4."' x2='1025' y2='".$ds4."' />";
//echo "<line x1='225' y1='".$ds5."' x2='1025' y2='".$ds5."' />";
//echo "<line x1='225' y1='".$ds6."' x2='1025' y2='".$ds6."' />";
//echo "<line x1='225' y1='".$ds7."' x2='1025' y2='".$ds7."' />";
//echo "</g>";
$dt0=$dt0+$dty;
$ds1=$ds1+$dty;
$ds2=$ds2+$dty;
$ds3=$ds3+$dty;
$ds4=$ds4+$dty;
$ds5=$ds5+$dty;
$ds6=$ds6+$dty;
$ds7=$ds7+$dty;
//
$dt0=210-($t0-$dy)*$h;
$ds1=210-($s1-$dy)*$h;
$ds2=210-($s2-$dy)*$h;
$ds3=210-($s3-$dy)*$h;
$ds4=210-($s4-$dy)*$h;
$ds5=210-($s5-$dy)*$h;
$ds6=210-($s6-$dy)*$h;
$ds7=210-($s7-$dy)*$h;
//
//echo"<g stroke='blue'>";
//echo "<line x1='225' y1='".$dt0."' x2='1025' y2='".$dt0."' />";
//echo"</g>";
//echo"<g stroke='gray'>";
//echo "<line x1='225' y1='".$ds1."' x2='1025' y2='".$ds1."' />";
//echo "<line x1='225' y1='".$ds2."' x2='1025' y2='".$ds2."' />";
//echo "<line x1='225' y1='".$ds3."' x2='1025' y2='".$ds3."' />";
//echo "<line x1='225' y1='".$ds4."' x2='1025' y2='".$ds4."' />";
//echo "<line x1='225' y1='".$ds5."' x2='1025' y2='".$ds5."' />";
//echo "<line x1='225' y1='".$ds6."' x2='1025' y2='".$ds6."' />";
//echo "<line x1='225' y1='".$ds7."' x2='1025' y2='".$ds7."' />";
//echo "</g>";
$dt0=$dt0+$dty;
$ds1=$ds1+$dty;
$ds2=$ds2+$dty;
$ds3=$ds3+$dty;
$ds4=$ds4+$dty;
$ds5=$ds5+$dty;
$ds6=$ds6+$dty;
$ds7=$ds7+$dty;
//
echo "<text x='140' y='20' font-size='24' font-weight='bold' fill='green'>[%]</text>";
echo "<text x='190' y='25' font-size='20' font-weight='bold' fill='green'>100</text>";
echo "<text x='200' y='125' font-size='20' font-weight='bold' fill='green'>75</text>";
echo "<text x='200' y='225' font-size='20' font-weight='bold' fill='green'>50</text>";
echo "<text x='200' y='325' font-size='20' font-weight='bold' fill='green'>25</text>";
echo "<text x='210' y='410' font-size='20' font-weight='bold' fill='green'>0</text>";
echo "<text x='1030' y='410' font-size='24' font-weight='bold' fill='green'>t</text>";
//
echo "<g stroke='red'>";
$k=0;
$row = mysqli_fetch_array($result);
$y1=210-($row['Humidity']-$dy)*$h;
for ($x = 225; $x < 1025; $x=$x+$xst) {
$k++;
$row = mysqli_fetch_array($result);
$x1=$x;
$x2=$x+$xst;
$y2=415-($row['Humidity']-$dy)*$h;
if ($k<$numofrows){
echo "<line x1=".$x1." y1=".$y1." x2=".$x2." y2=".$y2." />";
}
$y1=$y2;
}
echo "</g></g>";
echo "</svg>";
echo "</table>";
echo "<br>";
// FOOTHER
include "graph-foother.php";
//MIN - MAX
$par_db="Humidity";
include "graph-minmax.php";
mysqli_close($dbh);
?>
<table>
<tr>
<td width = "50px"></td>
<td style = "font-size: 48px; color: blue" ><a href = "http://192.168.1.22/projects/isvtgrs/isvtgrs_air.php">🡄</a></td>
</tr>
</table>
<?php include 'foother.php'; ?>
</body>
</html>