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

FHEMWEB: Read in icon directories fhemSVG and openautomation at startup

git-svn-id: https://svn.fhem.de/fhem/trunk@3519 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-07-28 10:11:31 +00:00
parent a1203acf9d
commit 7b220aa26a

View File

@ -173,7 +173,9 @@ FW_Define($$)
return "Usage: define <name> FHEMWEB [IPV6:]<tcp-portnr> [global]"
if($port !~ m/^(IPV6:)?\d+$/ || ($global && $global ne "global"));
FW_readIcons("default");
foreach my $pe ("fhemSVG", "openautomation", "default") {
FW_readIcons($pe);
}
my $ret = TcpServer_Open($hash, $port, $global);
@ -2432,6 +2434,7 @@ FW_Notify($$)
push @data, "$dn-$readingName-ts<<$tn<<$tn";
}
}
} elsif($filter eq "console") {
if($dev->{CHANGED}) { # It gets deleted sometimes (?)
my $tn = TimeNow();
@ -2445,10 +2448,11 @@ FW_Notify($$)
push @data,("$tn $dt $dn ".$dev->{CHANGED}[$i]."<br>");
}
}
}
if(@data) {
# Collect multiple changes (e.g. from noties) into one message
# Collect multiple changes (e.g. from notifiees) into one message
$ntfy->{INFORMBUF} .= join("\n", map { s/\n/ /gm; $_ } @data)."\n";
RemoveInternalTimer($ln);
if(length($ntfy->{INFORMBUF}) > 1024) {