mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-25 09:49:20 +00:00
FHEMWEB: add remote control via js eval. (Forum #34380)
git-svn-id: https://svn.fhem.de/fhem/trunk@8097 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
96fa405ef4
commit
14ce64ab85
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user