-
Notifications
You must be signed in to change notification settings - Fork 10
/
temperaturein.php
175 lines (167 loc) · 28.5 KB
/
temperaturein.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?php
//original weather34 script original css/svg/php by weather34 2015-2019 clearly marked as original by weather34//
include('livedata.php');include('common.php');?>
<div class="updatedtime"><span><?php if(file_exists($livedata)&&time()- filemtime($livedata)>300)echo $offline. '<offline> Offline </offline>';else echo $online." ".$weather["time"];?></div>
<div class="tempcontainer">
<div class="maxdata"><?php
if ($weather["temp_today_high"]<10){echo " ".$weather["temp_today_high"]."°\n";?> | <?php echo $weather["temp_today_low"]."°";}else if ($weather["temp_today_high"]>=10){echo $weather["temp_today_high"]."°\n";?> | <?php echo $weather["temp_today_low"]."°";}?>
</div>
<?php //weather34 sez lets make the temperature look nice
if($weather["temp_units"]=='C' && $weather['temp']<=-10){echo '<div class=outsideminus10>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather['temp']<=-5){echo '<div class=outsideminus5>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather['temp']<=0){echo '<div class=outsidezero>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather['temp']<=5){echo '<div class=outside0-5>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather['temp']<10){echo '<div class=outside6-10>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='C' && $weather['temp']<15){echo '<div class=outside11-15>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='C' && $weather['temp']<20){echo '<div class=outside16-20>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='C' && $weather['temp']<25){echo '<div class=outside21-25>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather['temp']<30){echo '<div class=outside26-30>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='C' && $weather['temp']<35){echo '<div class=outside31-35>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='C' && $weather['temp']<40){echo '<div class=outside36-40>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='C' && $weather['temp']<45){echo '<div class=outside41-45>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather['temp']<100){echo '<div class=outside50>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
//Fahrenheit
if($weather["temp_units"]=='F' && $weather['temp']<=14){echo '<div class=outsideminus10>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather['temp']<=23){echo '<div class=outsideminus5>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather['temp']<=32){echo '<div class=outsidezero>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather['temp']<=41){echo '<div class=outside0-5>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather['temp']<50){echo '<div class=outside6-10>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='F' && $weather['temp']<59){echo '<div class=outside11-15>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='F' && $weather['temp']<68){echo '<div class=outside16-20>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='F' && $weather['temp']<77){echo '<div class=outside21-25>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather['temp']<86){echo '<div class=outside26-30>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='F' && $weather['temp']<95){echo '<div class=outside31-35>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='F' && $weather['temp']<104){echo '<div class=outside36-40>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='F' && $weather['temp']<113){echo '<div class=outside41-45>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}else if($weather["temp_units"]=='F' && $weather['temp']<212){echo '<div class=outside50>'.number_format($weather['temp'],1).'<smalltempunit>°'.$weather["temp_units"];}
?>
</div></smalltempunit>
<div class="temptrendx">
<?php echo $weather["temp_trend"]." </span>\n";
//falling
if($weather["temp_trend"]<0){echo '<trendmovementfallingx> <valuetext>Trend '.$fallingsymbol.' '.number_format($weather["temp_trend"],1).'°</valuetext></trendmovementfallingx>';}
//rising
elseif($weather["temp_trend"]>0){echo '<trendmovementrisingx> <valuetext>Trend '.$risingsymbol.' '.number_format($weather["temp_trend"],1).'°</valuetext></trendmovementfallingx>';}
//steady
else echo '<trendmovementsteadyx><valuetext>Trend '.$steadysymbol.'Steady</valuetext></trendmovementsteadyx>';?>
</span></div></div></div>
<div class="heatcircle"><div class="heatcircle-content">
<?php //heat-index/real feel
if(anyToC($weather["heat_index"])>=40 ||($showFeelsLike&&anyToC($weather["temp"])>40)){echo " <valuetextheading1>Heat Index</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome40-50c>".$weather["heat_index"]."°<smalltempunit2>".$weather["temp_units"];}
else if(anyToC($weather["heat_index"])>=35 ||($showFeelsLike&&anyToC($weather["temp"])>35)){echo " <valuetextheading1>Heat Index</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome35-40c>".$weather["heat_index"]."°<smalltempunit2>".$weather["temp_units"];}
else if(anyToC($weather["heat_index"])>=28||($showFeelsLike&&anyToC($weather["temp"])>28)){echo " <valuetextheading1>Heat Index</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome30-35c>".$weather["heat_index"]."°<smalltempunit2>".$weather["temp_units"];}
//windchill offline with real feel
else if ($weather["temp_units"]=='C' && $weather["windchill"]<0){ echo "<valuetextheading1>Windchill</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome0-5c>".$weather["windchill"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["realfeel"]>=35){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome35-40c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["realfeel"]>=30){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome30-35c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather["realfeel"]>=25){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome25-30c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather["realfeel"]>=20){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome20-25c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather["realfeel"]>=15 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome15-20c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather["realfeel"]>=10 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome10-15c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather["realfeel"]>=5 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome5-10c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather["realfeel"]>=0 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome0-5c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather["realfeel"]>-10 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome-10-0c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='C' && $weather["realfeel"]>-50 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome-50-10c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
// F
else if ($weather["temp_units"]=='F' && $weather["windchill"]<=32){ echo "<valuetextheading1>Windchill</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome0-5c>".$weather["windchill"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["realfeel"]>=95){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome35-40c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["realfeel"]>=86){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome30-35c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather["realfeel"]>=77){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome25-30c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather["realfeel"]>=68){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome20-25c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather["realfeel"]>=59 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome15-20c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather["realfeel"]>=50 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome10-15c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather["realfeel"]>=41 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome5-10c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather["realfeel"]>=32 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome0-5c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather["realfeel"]>14 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome-10-0c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
else if($weather["temp_units"]=='F' && $weather["realfeel"]>-50 ){ echo "<valuetextheading1>",$lang['Feelslike']."</valuetextheading1><br><div class=tempconverter1><div class=tempmodulehome-50-10c>".$weather['realfeel']."°<smalltempunit2>".$weather["temp_units"];}
?><smalltempunit2></div></div></div>
<div class="heatcircle2"><div class="heatcircle-content"><valuetextheading1>Avg <?php echo $lang['Today']?></valuetextheading1>
<?php //avg today
if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>=40){echo "<div class=tempconverter1><div class=tempmodulehome40-50c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>=35){echo "<div class=tempconverter1><div class=tempmodulehome35-40c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>=30){echo "<div class=tempconverter1><div class=tempmodulehome30-35c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>=25){echo "<div class=tempconverter1><div class=tempmodulehome25-30c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>=20){echo "<div class=tempconverter1><div class=tempmodulehome20-25c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>=15){echo "<div class=tempconverter1><div class=tempmodulehome15-20c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>=10){echo "<div class=tempconverter1><div class=tempmodulehome10-15c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>5){echo "<div class=tempconverter1><div class=tempmodulehome5-10c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>=0){echo "<div class=tempconverter1><div class=tempmodulehome0-5c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>-10){echo "<div class=tempconverter1><div class=tempmodulehome-10-0c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_avgtoday"]>-50){echo "<div class=tempconverter1><div class=tempmodulehome-50-10c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
//non metric avg today
if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>=104){echo "<div class=tempconverter1><div class=tempmodulehome40-50c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>=95){echo "<div class=tempconverter1><div class=tempmodulehome35-40c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>=86){echo "<div class=tempconverter1><div class=tempmodulehome30-35c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>=77){echo "<div class=tempconverter1><div class=tempmodulehome25-30c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>=68){echo "<div class=tempconverter1><div class=tempmodulehome20-25c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>=59){echo "<div class=tempconverter1><div class=tempmodulehome15-20c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>=50){echo "<div class=tempconverter1><div class=tempmodulehome10-15c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>41){echo "<div class=tempconverter1><div class=tempmodulehome5-10c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>=32){echo "<div class=tempconverter1><div class=tempmodulehome0-5c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>14){echo "<div class=tempconverter1><div class=tempmodulehome-10-0c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_avgtoday"]>-50){echo "<div class=tempconverter1><div class=tempmodulehome-50-10c>". $weather["temp_avgtoday"]."°<smalltempunit2>".$weather["temp_units"];}?>
</smalltempunit2></div></div></div></div>
<div class="heatcircle3"><div class="heatcircle-content"><valuetextheading1><?php echo $lang['Humidity']?></valuetextheading1>
<?php //humidity
if ($weather["humidity"]>90){echo "<div class=tempconverter1><div class=temphumcircle80-100>".$weather["humidity"];}
else if ($weather["humidity"]>70){echo "<div class=tempconverter1><div class=temphumcircle60-80>".$weather["humidity"];}
else if ($weather["humidity"]>35){echo "<div class=tempconverter1><div class=temphumcircle35-60>".$weather["humidity"];}
else if ($weather["humidity"]>25){echo "<div class=tempconverter1><div class=temphumcircle25-35>".$weather["humidity"];}
else if ($weather["humidity"]<=25){echo "<div class=tempconverter1><div class=temphumcircle0-25>".$weather["humidity"];}?><smalltempunit2>%</smalltempunit2>
<?php //humidity trend
if($weather["humidity_trend"]>0){echo ' '.$risingsymbol;}else if($weather["humidity_trend"]<0){echo ' '.$fallingsymbol;}else{ echo '';}?></span></div></div></div></div>
<div class="heatcircle4"><div class="heatcircle-content"><valuetextheading1><?php echo $lang['Dewpoint']?></valuetextheading1>
<?php //dewpoint
if ($weather["temp_units"]=='C' && ($weather["dewpoint"]>21)){ echo "<div class=tempconverter1><div class=tempmodulehome25-30c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && ($weather["dewpoint"]>=20)){ echo "<div class=tempconverter1><div class=tempmodulehome20-25c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && ($weather["dewpoint"]>=15)){ echo "<div class=tempconverter1><div class=tempmodulehome15-20c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && ($weather["dewpoint"]>=10)){ echo "<div class=tempconverter1><div class=tempmodulehome10-15c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if($weather["temp_units"]=='C' && ($weather["dewpoint"]>5)){ echo "<div class=tempconverter1><div class=tempmodulehome5-10c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if($weather["temp_units"]=='C' && ($weather["dewpoint"]>=0)){ echo "<div class=tempconverter1><div class=tempmodulehome0-5c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if($weather["temp_units"]=='C' && ($weather["dewpoint"]>-10)){ echo "<div class=tempconverter1><div class=tempmodulehome-10-0c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if($weather["temp_units"]=='C' && ($weather["dewpoint"]>-50)){ echo "<div class=tempconverter1><div class=tempmodulehome-50-10c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
//non metric
if ($weather["temp_units"]=='F' && ($weather["dewpoint"]>69.8)){ echo "<div class=tempconverter1><div class=tempmodulehome25-30c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && ($weather["dewpoint"]>=68)){ echo "<div class=tempconverter1><div class=tempmodulehome20-25c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && ($weather["dewpoint"]>=59)){ echo "<div class=tempconverter1><div class=tempmodulehome15-20c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && ($weather["dewpoint"]>=50)){ echo "<div class=tempconverter1><div class=tempmodulehome10-15c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if($weather["temp_units"]=='F' && ($weather["dewpoint"]>41)){ echo "<div class=tempconverter1><div class=tempmodulehome5-10c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if($weather["temp_units"]=='F' && ($weather["dewpoint"]>=32)){ echo "<div class=tempconverter1><div class=tempmodulehome0-5c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if($weather["temp_units"]=='F' && ($weather["dewpoint"]>14)){ echo "<div class=tempconverter1><div class=tempmodulehome-10-0c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
else if($weather["temp_units"]=='F' && ($weather["dewpoint"]>=-50)){ echo "<div class=tempconverter1><div class=tempmodulehome-50-10c> ".$weather['dewpoint'].'°<smalltempunit2>'.$weather["temp_units"];}
?></smalltempunit2>
<?php //dewpoint trend
if($weather["dewpoint_trend"]>0){echo ' '.$risingsymbol;}else if($weather["dewpoint_trend"]<0){echo ' '.$fallingsymbol;}else{ echo '';}?></span></div></div></div></div></div>
<div class="tempconverter2">
<?php
//metric to f
if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<-10){echo "<div class=tempconvertercircleminus10>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<-5){echo "<div class=tempconvertercircleminus5>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<0){echo "<div class=tempconvertercircleminus>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<5){echo "<div class=tempconvertercircle0-5>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<10){echo "<div class=tempconvertercircle6-10>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<15){echo "<div class=tempconvertercircle11-15>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<20){echo "<div class=tempconvertercircle16-20>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<25){echo "<div class=tempconvertercircle21-25>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<30){echo "<div class=tempconvertercircle26-30>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<35){echo "<div class=tempconvertercircle31-35>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<40){echo "<div class=tempconvertercircle36-40>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<45){echo "<div class=tempconvertercircle41-45>".anyToC($weather["temp"])."°<smalltempunit2>C" ;}
else if( $weather["temp_units"]=='F' && anyToC($weather["temp"])<100){echo "<div class=tempconvertercircle50>".anyToF($weather["temp"])."°<smalltempunit2>C" ;}
//Celsius to F
if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<-10){echo "<div class=tempconvertercircleminus10>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<-5){echo "<div class=tempconvertercircleminus5>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<0){echo "<div class=tempconvertercircleminus>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<5){echo "<div class=tempconvertercircle0-5>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<10){echo "<div class=tempconvertercircle6-10>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<15){echo "<div class=tempconvertercircle11-15>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<20){echo "<div class=tempconvertercircle16-20>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<25){echo "<div class=tempconvertercircle21-25>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<30){echo "<div class=tempconvertercircle26-30>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<35){echo "<div class=tempconvertercircle31-35>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<40){echo "<div class=tempconvertercircle36-40>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<45){echo "<div class=tempconvertercircle41-45>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
else if( $weather["temp_units"]=='C' && anyToC($weather["temp"])<100){echo "<div class=tempconvertercircle50>".anyToF($weather["temp"])."°<smalltempunit2>F" ;}
?><smalltempunit2></div></div></div></div>
<div class="tempindoorextra">
<a href="homeindoor.php" data-lity title="Home Indoor enviroment">
<?php //indoor C
if ($weather["temp_units"]=='C' && $weather["temp_indoor"]>=25){echo "<div class=intempmodulehome25-30c> ".$hometemp." ".$weather["temp_indoor"]. "°</tsred><smalltempunit4>" .$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_indoor"]>=20){echo "<div class=intempmodulehome20-25c> ".$hometemp." ".$weather["temp_indoor"]. "°</tsorange><smalltempunit4>" .$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_indoor"]>=15){echo "<div class=intempmodulehome15-20c> ".$hometemp." ".$weather["temp_indoor"]. "°</tsyellow><smalltempunit4>" .$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_indoor"]>=10){echo "<div class=intempmodulehome10-15c> ".$hometemp." ".$weather["temp_indoor"]. "°</tsyellow><smalltempunit4>" .$weather["temp_units"];}
else if ($weather["temp_units"]=='C' && $weather["temp_indoor"]>0){echo "<div class=intempmodulehome0-5c> ".$hometemp." ".$weather["temp_indoor"]. "°</tsblue><smalltempunit4>" .$weather["temp_units"];}
//indoor F
if ($weather["temp_units"]=='F' && $weather["temp_indoor"]>75){echo "<div class=intempmodulehome25-30c><tsred> ".$hometemp." ".$weather["temp_indoor"]. "°</tsred><smalltempunit4>" .$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_indoor"]>66){echo "<div class=intempmodulehome20-25c><tsorange> ".$hometemp." ".$weather["temp_indoor"]. "°</tsorange><smalltempunit4>" .$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_indoor"]>59){echo "<div class=intempmodulehome15-20c><tsyellow> ".$hometemp." ".$weather["temp_indoor"]. "°</tsyellow><smalltempunit4>" .$weather["temp_units"];}
else if ($weather["temp_units"]=='F' && $weather["temp_indoor"]>32){echo "<div class=intempmodulehome10-15c><tsblue> ".$hometemp." ".$weather["temp_indoor"]. "°</tsblue><smalltempunit4>" .$weather["temp_units"];}
?> <?php if($weather["temp_indoor_trend"] >0)echo $risingsymbol;else if($weather["temp_indoor_trend"]<0)echo $fallingsymbol;?></div></div></span></a>
</div></div></div>