mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
93_DbRep: changed format of diffValue-reading if no value was selected
git-svn-id: https://svn.fhem.de/fhem/trunk@12136 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e5d5ccc087
commit
3a9426986c
@ -1,5 +1,7 @@
|
||||
# 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.
|
||||
- change: 93_DbRep: changed format of diffValue-reading if no value was
|
||||
selected
|
||||
- new: 24_TPLinkHS110: Support for TPLink HS100/110 wifi power outlet
|
||||
- bugfix: 73_GasCalculator: get/set list corrected for CounterDevice
|
||||
- bugfix: 73_ElectricityCalculator: get/set list corrected for CounterDevice
|
||||
|
@ -37,6 +37,7 @@
|
||||
###########################################################################################################
|
||||
# Versions History:
|
||||
#
|
||||
# 3.7.3 11.09.2016 changed format of diffValue-reading if no value was selected
|
||||
# 3.7.2 04.09.2016 problem in diffValue fixed if if no value was selected
|
||||
# 3.7.1 31.08.2016 Reading "errortext" added, commandref continued, exportToFile changed,
|
||||
# diffValue changed to fix wrong timestamp if error occur
|
||||
@ -1314,10 +1315,10 @@ sub diffval_DoParse($) {
|
||||
if(!@array) {
|
||||
if(AttrVal($name, "aggregation", "") eq "hour") {
|
||||
my @rsf = split(/[" "\|":"]/,$runtime_string_first);
|
||||
@array = ($runtime_string." "."0"." ".$rsf[0]."_".$rsf[1]."\n");
|
||||
@array = ($runtime_string." ".$rsf[0]."_".$rsf[1]."\n");
|
||||
} else {
|
||||
my @rsf = split(" ",$runtime_string_first);
|
||||
@array = ($runtime_string." "."0"." ".$rsf[0]."\n");
|
||||
@array = ($runtime_string." ".$rsf[0]."\n");
|
||||
}
|
||||
}
|
||||
push(@row_array, @array);
|
||||
@ -1386,7 +1387,7 @@ sub diffval_ParseDone($) {
|
||||
|
||||
my $value = $a[3]?$a[3]:0;
|
||||
|
||||
$a[3] =~ s/:/-/g if($a[2]); # substituieren unsopported characters -> siehe fhem.pl
|
||||
$a[2] =~ s/:/-/g if($a[2]); # substituieren unsupported characters -> siehe fhem.pl
|
||||
my $timestamp = $a[2]?$a[1]."_".$a[2]:$a[1];
|
||||
|
||||
# Leerzeichen am Ende $timestamp entfernen
|
||||
@ -2680,4 +2681,4 @@ return ($runtime,$runtime_string,$runtime_string_first,$runtime_string_next,$ll)
|
||||
</ul>
|
||||
|
||||
=end html_DE
|
||||
=cut
|
||||
=cut
|
||||
|
Loading…
x
Reference in New Issue
Block a user