mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +00:00
93_Log2Syslog: V3.2.0, add NOTIFYDEV (if possible)
git-svn-id: https://svn.fhem.de/fhem/trunk@15486 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
be30ce213f
commit
ade81d963e
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- change: 93_Log2Syslog: V3.2.0, add NOTIFYDEV (if possible)
|
||||||
- change: 70_BRAVIA: set remoteControl supports command codes
|
- change: 70_BRAVIA: set remoteControl supports command codes
|
||||||
- change: 98_dewpoint: Consolidated and corrected formulas for dewpoint
|
- change: 98_dewpoint: Consolidated and corrected formulas for dewpoint
|
||||||
(Forum #78359)
|
(Forum #78359)
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
######################################################################################################################
|
######################################################################################################################
|
||||||
# Versions History:
|
# Versions History:
|
||||||
#
|
#
|
||||||
|
# 3.2.0 22.11.2017 add NOTIFYDEV if possible
|
||||||
# 3.1.0 28.08.2017 get-function added, commandref revised, $readingFnAttributes deleted
|
# 3.1.0 28.08.2017 get-function added, commandref revised, $readingFnAttributes deleted
|
||||||
# 3.0.0 27.08.2017 change attr type to protocol, ready to check in
|
# 3.0.0 27.08.2017 change attr type to protocol, ready to check in
|
||||||
# 2.6.0 26.08.2017 more than one Log2Syslog device can be created
|
# 2.6.0 26.08.2017 more than one Log2Syslog device can be created
|
||||||
@ -63,7 +64,7 @@ eval "use Net::Domain qw(hostname hostfqdn hostdomain domainname);1" or my $Mis
|
|||||||
#
|
#
|
||||||
sub Log2Syslog_Log3slog($$$);
|
sub Log2Syslog_Log3slog($$$);
|
||||||
|
|
||||||
my $Log2SyslogVn = "3.1.0";
|
my $Log2SyslogVn = "3.2.0";
|
||||||
|
|
||||||
# Mappinghash BSD-Formatierung Monat
|
# Mappinghash BSD-Formatierung Monat
|
||||||
my %Log2Syslog_BSDMonth = (
|
my %Log2Syslog_BSDMonth = (
|
||||||
@ -140,6 +141,9 @@ sub Log2Syslog_Define($@) {
|
|||||||
return "Bad regexp: $@" if($@);
|
return "Bad regexp: $@" if($@);
|
||||||
eval { "Hallo" =~ m/^$hash->{HELPER}{FHEMLOG}$/ } if($hash->{HELPER}{FHEMLOG});
|
eval { "Hallo" =~ m/^$hash->{HELPER}{FHEMLOG}$/ } if($hash->{HELPER}{FHEMLOG});
|
||||||
return "Bad regexp: $@" if($@);
|
return "Bad regexp: $@" if($@);
|
||||||
|
|
||||||
|
# nur Events dieser Devices an NotifyFn weiterleiten, NOTIFYDEV wird gesetzt wenn möglich
|
||||||
|
notifyRegexpChanged($hash, $hash->{HELPER}{EVNTLOG}) if($hash->{HELPER}{EVNTLOG});
|
||||||
|
|
||||||
$hash->{PEERHOST} = $a[2]; # Destination Host (Syslog Server)
|
$hash->{PEERHOST} = $a[2]; # Destination Host (Syslog Server)
|
||||||
$hash->{MYHOST} = hostfqdn(); # FQDN eigener Host
|
$hash->{MYHOST} = hostfqdn(); # FQDN eigener Host
|
||||||
|
Loading…
x
Reference in New Issue
Block a user