-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmax-mintemp.php
66 lines (46 loc) · 6.01 KB
/
max-mintemp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php include('livedata.php');header('Content-type: text/html; charset=utf-8');date_default_timezone_set($TZ);?>
<body>
<div class="yesterdaymax">
<?php
//weather34 temperture indoor celsius
if ($weather["temp_units"]=='C' && $weather["tempdmax"]>27){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><red>", $weather["tempdmax"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempdmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempdmax"]>18){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><orange>", $weather["tempdmax"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempdmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempdmax"]>10){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><green>", $weather["tempdmax"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempdmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempdmax"]>-50){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><blue>", $weather["tempdmax"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempdmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
//weather34 fahrenheit
if ($weather["temp_units"]=='F' && $weather["tempdmax"]>90){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><red>", $weather["tempdmax"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempdmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempdmax"]>80){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><orange>", $weather["tempdmax"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempdmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempdmax"]>47){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><green>", $weather["tempdmax"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempdmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempdmax"]>-50){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><blue>", $weather["tempdmax"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempdmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
?>
</div></div>
<div class="yesterdaymin">
<?php
//weather34 temperture indoor celsius
if ($weather["temp_units"]=='C' && $weather["tempdmin"]>27){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><red>", $weather["tempdmin"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempdmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempdmin"]>18){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><orange>", $weather["tempdmin"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempdmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempdmin"]>10){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><green>", $weather["tempdmin"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempdmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempdmin"]>-50){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><blue>", $weather["tempdmin"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempdmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
//weather34 fahrenheit
if ($weather["temp_units"]=='F' && $weather["tempdmin"]>90){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><red>", $weather["tempdmin"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempdmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempdmin"]>80){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><orange>", $weather["tempdmin"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempdmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempdmin"]>47){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><green>", $weather["tempdmin"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempdmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempdmin"]>-50){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><blue>", $weather["tempdmin"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempdmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
?>
</div>