mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 12:58:13 +00:00
98_rssFeed.pm: make use of NOTIFYDEV
git-svn-id: https://svn.fhem.de/fhem/trunk@13080 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ebee30edcc
commit
9e337e1e12
@ -259,6 +259,9 @@ rssFeed_Define($$)
|
|||||||
my $url=shift@a;
|
my $url=shift@a;
|
||||||
my $interval=shift @a;
|
my $interval=shift @a;
|
||||||
|
|
||||||
|
#setting restrictions for event notifications
|
||||||
|
$hash->{NOTIFYDEV}="global";
|
||||||
|
|
||||||
if (defined($interval)) {
|
if (defined($interval)) {
|
||||||
#if interval defined, make sure its a valid number
|
#if interval defined, make sure its a valid number
|
||||||
#and is at least 5 minutes (seconds)
|
#and is at least 5 minutes (seconds)
|
||||||
@ -309,8 +312,9 @@ rssFeed_Define($$)
|
|||||||
my $attEncoding=AttrVal($hash->{NAME},"rfEncode",undef);
|
my $attEncoding=AttrVal($hash->{NAME},"rfEncode",undef);
|
||||||
$attr{$hash->{NAME}}{rfEncode}=$defaultEncoding if (!$attEncoding);
|
$attr{$hash->{NAME}}{rfEncode}=$defaultEncoding if (!$attEncoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub
|
sub
|
||||||
|
Loading…
x
Reference in New Issue
Block a user