diff --git a/fhem/CHANGED b/fhem/CHANGED index fe6446e0f..84c9050a5 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # 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. + - bugfix: 93_DbRep: V5.6.2, commandref revised - feature: 00_MQTT: OnMessageFn, last-will, onConnect/onDisconnect - feature: 10_MQTT_DEVICE: improved publishSet, retain, subscribeReadings - feature: 10_MQTT_BRIDGE: improved retain, subscribeSet diff --git a/fhem/FHEM/93_DbRep.pm b/fhem/FHEM/93_DbRep.pm index 5a13e8fa6..98db65170 100644 --- a/fhem/FHEM/93_DbRep.pm +++ b/fhem/FHEM/93_DbRep.pm @@ -37,6 +37,7 @@ ########################################################################################################################### # Versions History: # +# 5.6.2 28.08.2017 commandref revised # 5.6.1 18.07.2017 commandref revised, minor fixes # 5.6.0 17.07.2017 default timeout changed to 86400, new get-command "procinfo" (MySQL) # 5.5.2 16.07.2017 dbmeta_DoParse -> show variables (no global) @@ -231,7 +232,7 @@ use Encode qw(encode_utf8); sub DbRep_Main($$;$); -my $DbRepVersion = "5.6.1"; +my $DbRepVersion = "5.6.2"; my %dbrep_col = ("DEVICE" => 64, "TYPE" => 64, @@ -6472,29 +6473,38 @@ sub bdump { (*) The format of timestamp is as used with DbLog "YYYY-MM-DD HH:MM:SS". For the attributes "timestamp_begin", "timestamp_end" you can also use one of the following entries. The timestamp-attribute will be dynamically set to:


+ current_year_begin : matches "<current year>-01-01 00:00:00"
+ current_year_end : matches "<current year>-12-31 23:59:59"
+ previous_year_begin : matches "<previous year>-01-01 00:00:00"
+ previous_year_end : matches "<previous year>-12-31 23:59:59"
+ current_month_begin : matches "<current month first day> 00:00:00"
+ current_month_end : matches "<current month last day> 23:59:59"
+ previous_month_begin : matches "<previous month first day> 00:00:00"
+ previous_month_end : matches "<previous month last day> 23:59:59"
+ current_week_begin : matches "<first day of current week> 00:00:00"
+ current_week_end : matches "<last day of current week> 23:59:59"
+ previous_week_begin : matches "<first day of previous week> 00:00:00"
+ previous_week_end : matches "<last day of previous week> 23:59:59"
+ current_day_begin : matches "<current day> 00:00:00"
+ current_day_end : matches "<current day> 23:59:59"
+ previous_day_begin : matches "<previous day> 00:00:00"
+ previous_day_end : matches "<previous day> 23:59:59"
+ current_hour_begin : matches "<current hour>:00:00"
+ current_hour_end : matches "<current hour>:59:59"
+ previous_hour_begin : matches "<previous hour>:00:00"
+ previous_hour_end : matches "<previous hour>:59:59"

Make sure that "timestamp_begin" < "timestamp_end" is fulfilled.

+ +

+ Note
If the attribute "timeDiffToNow" will be set, the attributes "timestamp_begin" respectively "timestamp_end" will be deleted if they were set before. @@ -6520,7 +6530,7 @@ sub bdump { called by the interface in your 99_myUtls.pm as shown in by the example:
-        sub UserExitFn {
+        sub UserFunction {
           my ($name,$reading,$value) = @_;
           my $hash = $defs{$name};
           ...
@@ -6548,7 +6558,7 @@ sub bdump {
 							   For further processing following parameters will be forwarded to the function: