This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtempyesterday.php
61 lines (46 loc) · 6.05 KB
/
tempyesterday.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
<?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["tempydmax"]>30){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><red>", $weather["tempydmax"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempydmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempydmax"]>18){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><orange>", $weather["tempydmax"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempydmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempydmax"]>10){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><green>", $weather["tempydmax"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempydmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempydmax"]>-50){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><blue>", $weather["tempydmax"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempydmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
//weather34 fahrenheit
if ($weather["temp_units"]=='F' && $weather["tempydmax"]>90){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><red>", $weather["tempydmax"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempydmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempydmax"]>65){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><orange>", $weather["tempydmax"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempydmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempydmax"]>47){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><green>", $weather["tempydmax"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempydmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempydmax"]>-50){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><blue>", $weather["tempydmax"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempydmaxtime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
?>
</div></div>
<div class="yesterdaymin">
<?php
//weather34 temperture indoor celsius
if ($weather["temp_units"]=='C' && $weather["tempydmin"]>30){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><red>", $weather["tempydmin"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempydmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempydmin"]>18){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><orange>", $weather["tempydmin"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempydmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempydmin"]>10){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><green>", $weather["tempydmin"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempydmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='C' && $weather["tempydmin"]>-50){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><blue>", $weather["tempydmin"] ;
echo "° <spaneindoortemp> ".$weatherunitc."<yesterdaytimemax> ".$weather["tempydmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
//weather34 fahrenheit
if ($weather["temp_units"]=='F' && $weather["tempydmin"]>90){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><red>", $weather["tempydmin"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempydmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempydmin"]>80){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><orange>", $weather["tempydmin"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempydmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempydmin"]>47){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><green>", $weather["tempydmin"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempydmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
else if ($weather["temp_units"]=='F' && $weather["tempydmin"]>-50){echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><blue>", $weather["tempydmin"] ;
echo "° <spaneindoortemp> ".$weatherunitf."<yesterdaytimemax> ".$weather["tempydmintime"]."</yesterdaytimemax></spaneindoortemp> </div><div class='yesterdaytempword'> Temp</div>" ;}
?>
</div>