mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
SYSMON: support userReadings in SYSMON_ShowValues
git-svn-id: https://svn.fhem.de/fhem/trunk@6678 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
068a2b9ad0
commit
86ac30c3fb
@ -30,7 +30,7 @@ package main;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
my $VERSION = "1.9.1";
|
||||
my $VERSION = "1.9.2";
|
||||
|
||||
use constant {
|
||||
PERL_VERSION => "perl_version",
|
||||
@ -2266,6 +2266,10 @@ sub SYSMON_ShowValuesFmt ($$$;@)
|
||||
$rComment = $cur_readings_map->{$rName};
|
||||
}
|
||||
my $rVal = $map->{$rName};
|
||||
if(!defined $rVal) {
|
||||
# ggf. userReadings verarbeiten
|
||||
$rVal = ReadingsVal($name,$rName,undef);
|
||||
}
|
||||
if($rName eq DATE) {
|
||||
# Datum anzeigen
|
||||
$rVal = strftime("%d.%m.%Y %H:%M:%S", localtime());
|
||||
|
Loading…
x
Reference in New Issue
Block a user