mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
93_DbRep: contrib 8.40.0
git-svn-id: https://svn.fhem.de/fhem/trunk@21545 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9dcdd8afc1
commit
2336a277a9
@ -5913,12 +5913,12 @@ sub expfile_ParseDone($) {
|
|||||||
my $ds = $device." -- " if ($device);
|
my $ds = $device." -- " if ($device);
|
||||||
my $rds = $reading." -- " if ($reading);
|
my $rds = $reading." -- " if ($reading);
|
||||||
my $export_string = $ds.$rds." -- ROWS EXPORTED TO FILE(S) -- ";
|
my $export_string = $ds.$rds." -- ROWS EXPORTED TO FILE(S) -- ";
|
||||||
|
|
||||||
my $state = $erread?$erread:"done";
|
my $state = $erread?$erread:"done";
|
||||||
readingsBeginUpdate($hash);
|
|
||||||
|
readingsBeginUpdate ($hash);
|
||||||
ReadingsBulkUpdateValue ($hash, $export_string, $nrows);
|
ReadingsBulkUpdateValue ($hash, $export_string, $nrows);
|
||||||
ReadingsBulkUpdateTimeState($hash,$brt,$rt,$state);
|
ReadingsBulkUpdateTimeState($hash,$brt,$rt,$state);
|
||||||
readingsEndUpdate($hash, 1);
|
readingsEndUpdate ($hash, 1);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -10913,7 +10913,7 @@ sub DbRep_OutputWriteToDB($$$$$) {
|
|||||||
foreach my $row (@arr) {
|
foreach my $row (@arr) {
|
||||||
my @a = split("#", $row);
|
my @a = split("#", $row);
|
||||||
my $runtime_string = $a[0]; # Aggregations-Alias (nicht benötigt)
|
my $runtime_string = $a[0]; # Aggregations-Alias (nicht benötigt)
|
||||||
$value = defined($a[1])?(looks_like_number($a[1])?sprintf("%.4f",$a[1]):$a[1]):undef; # Version 8.32.2
|
$value = defined($a[1])?((looks_like_number($a[1])?sprintf("%.4f",$a[1]):undef)):undef; # in Version 8.40.0 geändert
|
||||||
$rsf = $a[2]; # Runtime String first - Datum / Zeit für DB-Speicherung
|
$rsf = $a[2]; # Runtime String first - Datum / Zeit für DB-Speicherung
|
||||||
($date,$time) = split("_",$rsf);
|
($date,$time) = split("_",$rsf);
|
||||||
$time =~ s/-/:/g if($time);
|
$time =~ s/-/:/g if($time);
|
||||||
|
Loading…
Reference in New Issue
Block a user