From adc336c0a8237cd0a9fcdce99d459b7b8b49cf37 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sat, 21 Mar 2020 16:11:19 +0000 Subject: [PATCH] 93_DbRep: contrib 8.38.0 git-svn-id: https://svn.fhem.de/fhem/trunk@21468 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/93_DbRep.pm | 48 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/fhem/contrib/DS_Starter/93_DbRep.pm b/fhem/contrib/DS_Starter/93_DbRep.pm index 4868b4a05..07337f8c4 100644 --- a/fhem/contrib/DS_Starter/93_DbRep.pm +++ b/fhem/contrib/DS_Starter/93_DbRep.pm @@ -58,7 +58,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch'; # Version History intern our %DbRep_vNotesIntern = ( - "8.38.0" => "21.03.2020 sqlSpecial diffBetweenValuesOfReading, fix FHEM crash if no time-attribute is set and time option of delEntries / reduceLog is used ", + "8.38.0" => "21.03.2020 sqlSpecial readingsDifferenceByTimeDelta, fix FHEM crash if no time-attribute is set and time option of delEntries / reduceLog is used ", "8.37.0" => "20.03.2020 add column header for free selects (sqlCmd) ", "8.36.0" => "19.03.2020 sqlSpecial recentReadingsOfDevice ", "8.35.0" => "19.03.2020 option older than days and newer than days for delEntries function ", @@ -574,7 +574,7 @@ sub DbRep_Set($@) { (($hash->{ROLE} ne "Agent")?"reduceLog ":""). (($hash->{ROLE} ne "Agent")?"sqlCmd:textField-long ":""). (($hash->{ROLE} ne "Agent" && $hl)?"sqlCmdHistory:".$hl." ":""). - (($hash->{ROLE} ne "Agent")?"sqlSpecial:50mostFreqLogsLast2days,allDevCount,allDevReadCount,recentReadingsOfDevice".(($dbmodel eq "MYSQL")?",diffBetweenValuesOfReading":"")." ":""). + (($hash->{ROLE} ne "Agent")?"sqlSpecial:50mostFreqLogsLast2days,allDevCount,allDevReadCount,recentReadingsOfDevice".(($dbmodel eq "MYSQL")?",readingsDifferenceByTimeDelta":"")." ":""). (($hash->{ROLE} ne "Agent")?"syncStandby ":""). (($hash->{ROLE} ne "Agent")?"tableCurrentFillup:noArg ":""). (($hash->{ROLE} ne "Agent")?"tableCurrentPurge:noArg ":""). @@ -2080,7 +2080,7 @@ sub DbRep_Main($$;$) { $prop = join(" ", @cmd); - } elsif ($prop eq "diffBetweenValuesOfReading") { + } elsif ($prop eq "readingsDifferenceByTimeDelta") { my @cmd = split(/\s/, "SET \@diff=0; SET \@delta=NULL; SELECT t1.TIMESTAMP,t1.READING,t1.VALUE,t1.DIFF,t1.TIME_DELTA @@ -9736,7 +9736,7 @@ sub DbRep_checktimeaggr ($) { $aggregation = "day"; # für Tagesmittelwertberechnung des deutschen Wetterdienstes immer "day" $IsAggrSet = 1; } - if($hash->{LASTCMD} =~ /delEntries|fetchrows|deviceRename|readingRename|tableCurrentFillup|reduceLog|\bdiffBetweenValuesOfReading\b/) { + if($hash->{LASTCMD} =~ /delEntries|fetchrows|deviceRename|readingRename|tableCurrentFillup|reduceLog|\breadingsDifferenceByTimeDelta\b/) { $IsAggrSet = 0; $aggregation = "no"; } @@ -13060,16 +13060,16 @@ return;
@@ -15610,16 +15610,16 @@ sub bdump {