added attribute localicons for later use with local icons
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1770 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user