-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmax-minwind.php
21 lines (21 loc) · 1.35 KB
/
max-minwind.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php include('livedata.php');include('common.php');header('Content-type: text/html; charset=utf-8');?>
<div class="hometemperatureindoor">
<?php
//weather34 wind kmh
if ($weather["temp_units"]=='C' && $weather["wind_speed_max"]>-50){echo "<div class=\"circlemaxwind\">", number_format($weather["wind_speed_max"],1) ;
echo " <spanmaxwind>". $weather["wind_units"]."</spanmaxwind> <spanwindtitle> ".$lang['Wind']." </spanwindtitle>
</div> " ;}
//weather34 wind mph
else if ( $weather["wind_speed_max"]>-50){echo "<div class=\"circlemaxwind\">", number_format($weather["wind_speed_max"],1) ;
echo " <spanmaxwind>". $weather["wind_units"]."</spanmaxwind> <spanwindtitle>".$lang['Wind']." </spanwindtitle>
</div> " ;}
?>
<?php
//weather34 wind gust kmh
if ($weather["temp_units"]=='C' && $weather["wind_gust_speed_max"]>-50){echo "<div class=\"circlemaxgust\">", number_format($weather["wind_gust_speed_max"],1) ;
echo " <spanmaxwind>". $weather["wind_units"]."</spanmaxwind> <spanwindtitle> ".$lang['Gust']." </spanwindtitle> </div> " ;}
//weather34 wind gust mphh
else if ($weather["temp_units"]=='F' && $weather["wind_gust_speed_max"]>-50){echo "<div class=\"circlemaxgust\">", number_format($weather["wind_gust_speed_max"],1) ;
echo " <spanmaxwind>". $weather["wind_units"]."</spanmaxwind> <spanwindtitle> ".$lang['Gust']." </spanwindtitle> </div> " ;}
?>
</div>