FHEMWEB: add remote control via js eval. (Forum #34380)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8097 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -2306,6 +2306,14 @@ FW_Notify($$)
|
||||
$dn = $1 if($dev->{CHANGED} && $dev->{CHANGED}->[0] =~ m/^MODIFIED (.*)$/);
|
||||
}
|
||||
|
||||
if($dn eq $ntfy->{SNAME} &&
|
||||
$dev->{CHANGED} &&
|
||||
$dev->{CHANGED}->[0] =~ m/^JS:(.*)$/) {
|
||||
my $data = FW_longpollInfo($h->{fmt}, "#FHEMWEB:$ntfy->{NAME}",$1,"");
|
||||
addToWritebuffer($ntfy, $data."\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if($h->{type} eq "raw") {
|
||||
return undef if($dn !~ m/$h->{filter}/);
|
||||
} else { # Status
|
||||
|
||||
Reference in New Issue
Block a user