-
Notifications
You must be signed in to change notification settings - Fork 0
/
solarmod.php
64 lines (56 loc) · 2.89 KB
/
solarmod.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
<?php require_once('livedata.php');?>
<div class="modulecaption2"><?php echo $lang['Solarradiation']?></div>
<div class="button button-dial">
<div class="button-dial-top"></div>
<div class="button-dial-label">
<?php
if ($weather["solar"]>=500){echo "<orange>".$weather["solar"]."</orange>";}
else if ($weather["solar"]>=0){echo "<yellow>".$weather["solar"]."</yellow>";}
?> </div></div><div>
<?php //unit
echo "<unitindicator>wm/2</unitindicator>";?>
<?php //solar icon
echo "<solaricon>";
if($weather["solar"]>500){ echo "<orange>".$solarpanelicon."</orange>";}
else if($weather["solar"]>=0){ echo "<yellow>".$solarpanelicon."</yellow>";}
echo "</solaricon>";?>
</div></div></div></div></div>
<div class="heatcircle"><div class="heatcircle-content">
<?php //solar year
echo "<valuetextheading1>".date('Y')." Max <blue>".$weather["solarymaxtime"]."</blue></valuetextheading1><br>";
echo "<div class=tempconverter1><div class=tempmodulehome0-5c >".$weather["solarymax"]."<smalltempunit2> wm/2";
?><smalltempunit2></div></div></div>
<div class="heatcircle2"><div class="heatcircle-content"><valuetextheading1> Luminance Lux</valuetextheading1>
<?php //lux
echo "<div class=tempconverter1><div class=tempmodulehome0-5c>". $weather["lux"]."<smalltempunit2> Lux";
?>
</smalltempunit2></div></div></div>
<div class="heatcircleindoor"><div class="heatcircle-content"> <?php echo $lang['Month']?> <orange>Max</orange> <deepblue><?php echo $weather["solarmmaxtime"]?> </deepblue></valuetextheading1>
<?php //SOLAR max month
echo "<div class=tempconverter1><div class=tempmodulehome0-5c>". $weather["solarmmax"]."<smalltempunit2> wm/2</smalltempunit2>";
?>
</div></div></div><div>
<div class=thetrendgap>
<?php
if ($weather["solar"]>=700) {echo "<div class=theuvred style='width:150px'><orange>".$solaricon.'</orange>'.$lang['Good-solar'] .'';}
else if ($weather["solar"]>300) {echo "<div class=theuvyellow style='width:150px'><yellow>".$solaricon.'</yellow>'.$lang['Moderate-solar'].'';}
else if ($weather["solar"]>0) {echo "<div class=theuvyellow style='width:150px'><yellow>".$solaricon.'</yellow>'.$lang['Low-solar'].'';}
else if ($weather["solar"]==0) {echo "<div class=theuvgreen style='width:150px'><grey>".$solaricon.'</grey>'.$lang['Low-solar'].'';}
?>
</div></div></div>
<div class="weather-tempicon-identity">
<?php //icon
if($$weather["solar"]>=700){ echo "<orange>".$weather34_sun_icon."</orange>";}
else if($weather["solar"]>0){ echo "<yellow>".$weather34_sun_icon."</yellow>";}
else if($weather["solar"]==0){ echo "<grey>".$weather34_sun_icon."</grey>";}
?>
</div>
</div></div>
<div class="maxwind">
<?php //Max
echo "Max ";
if ($weather["solardmax"]>700){echo "<orange>".$weather["solardmax"]."</orange>";}
else if ($weather["solardmax"]>0){echo "<yellow>".$weather["solardmax"]."</yellow>";}
echo " Time:";echo $weather["solardmaxtime"];
?>
</div>