2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 10:46:03 +00:00

added attribute localicons for later use with local icons

git-svn-id: https://svn.fhem.de/fhem/trunk@1770 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2012-07-29 15:31:52 +00:00
parent ad8240a992
commit e81926e53b

View File

@ -52,7 +52,7 @@ sub Weather_Initialize($) {
$hash->{DefFn} = "Weather_Define";
$hash->{UndefFn} = "Weather_Undef";
$hash->{GetFn} = "Weather_Get";
$hash->{AttrList}= "loglevel:0,1,2,3,4,5 event-on-update-reading event-on-change-reading";
$hash->{AttrList}= "loglevel:0,1,2,3,4,5 localicons event-on-update-reading event-on-change-reading";
}
@ -334,13 +334,13 @@ WeatherIconIMGTag($$$) {
sub
WeatherAsHtml($)
{
my $uselocal= 0;
my ($d) = @_;
$d = "<none>" if(!$d);
return "$d is not a Weather instance<br>"
if(!$defs{$d} || $defs{$d}{TYPE} ne "Weather");
my $uselocal= AttrVal($d,"localicons",0);
my $isday;
if(exists &isday) {
$isday = isday();