mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 19:04:20 +00:00
fontcolor in weather.php
git-svn-id: https://svn.fhem.de/fhem/trunk@477 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
78c949aeba
commit
758926764d
@ -55,10 +55,10 @@ $WEATHER = website_WEATHER($weathercity, $weathercountry, $weatherlang);
|
||||
|
||||
$city=str_replace(" ","<br>",$WEATHER['city']);
|
||||
echo "<td colspan=4 $bg2><table cellspacing='1' cellpadding='0' align='center' border=0 width='100%' $bg2><tr $bg2>";
|
||||
echo "<td $bg2><b>".$city."</b></td>";
|
||||
echo "<td $bg2><font $fontcolor3><b>".$city."</b></font></td><font $fontcolor3>";
|
||||
if ($weatherlang=='de') {$now='Jetzt';} else $now='Now';
|
||||
|
||||
echo "<td><b>$now: </b>";
|
||||
echo "<td><font $fontcolor3><b>$now: </b>";
|
||||
echo $WEATHER[0]['condition']."<br/>\n";
|
||||
|
||||
$pos=strrpos($WEATHER[0]['luftfeuchtigkeit'],':');
|
||||
@ -67,18 +67,18 @@ $WEATHER = website_WEATHER($weathercity, $weathercountry, $weatherlang);
|
||||
echo "T/Hum: ".$WEATHER[0]['temperatur']."° / $hum<br/>\n";
|
||||
echo $WEATHER[0]['wind']."<br/>\n";
|
||||
echo "<img src=\"http://www.google.com/ig/images/weather".$WEATHER[0]['icon']."\" alt=\"".$WEATHER[0]['condition']."\" />\n";
|
||||
echo "</td><td>";
|
||||
echo "</font></td><td>";
|
||||
|
||||
for($i=1; $i<5; $i++)
|
||||
{
|
||||
echo "<b>".$WEATHER[$i]['weekday']."</b><br/>\n";
|
||||
echo "<b><font $fontcolor3>".$WEATHER[$i]['weekday']."</b><br/>\n";
|
||||
echo $WEATHER[$i]['condition']."<br/>\n";
|
||||
echo "min. ".$WEATHER[$i]['low']."° max. ".$WEATHER[$i]['high']."°<br/>\n";
|
||||
echo "<img src=\"http://www.google.com/ig/images/weather".$WEATHER[$i]['icon']."\" alt=\"".$WEATHER[$i]['condition']."\" />\n";
|
||||
echo "</td><td>";
|
||||
echo "</font></td><td>";
|
||||
}
|
||||
|
||||
echo "</td></tr></table></td></tr>";
|
||||
echo "</font></td></tr></table></td></tr>";
|
||||
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user