- allowDeletion | : needs to be set to execute the delete option |
aggregation | : choose the aggregation period |
limit | : limits ONLY the count of datasets to display |
device | : include or exclude <device> from selection |
@@ -15904,33 +15865,35 @@ return;
{
- 1 => { timestamp_begin => '2023-12-17 00:00:00',
- timestamp_end => '2023-12-17 01:00:00',
- device => 'SMA_Energymeter',
- reading => 'Einspeisung_Wirkleistung_Zaehler',
- cmd => 'countEntries history'
+ 1 => { executeBeforeProc => 'set LogDB reopen 900',
+ timestamp_begin => '2023-12-17 00:00:00',
+ timestamp_end => '2023-12-17 01:00:00',
+ device => 'SMA_Energymeter',
+ reading => 'Einspeisung_Wirkleistung_Zaehler',
+ cmd => 'countEntries history'
},
- 2 => { timestamp_begin => '2023-12-15 11:00:00',
- timestamp_end => 'previous_day_end',
- device => 'SMA_Energymeter',
- reading => 'Einspeisung_Wirkleistung_Zaehler',
- cmd => 'countEntries'
+ 2 => { timestamp_begin => '2023-12-15 11:00:00',
+ timestamp_end => 'previous_day_end',
+ device => 'SMA_Energymeter',
+ reading => 'Einspeisung_Wirkleistung_Zaehler',
+ cmd => 'countEntries'
},
- 3 => { timeDiffToNow => 'd:2',
- readingNameMap => 'COUNT',
- autoForward => '{ ".*COUNT.*" => "Dum.Rep.All" }',
- device => 'SMA_%,MySTP.*',
- reading => 'etotal,etoday,Ein% EXCLUDE=%Wirkleistung',
- cmd => 'countEntries history'
+ 3 => { timeDiffToNow => 'd:2',
+ readingNameMap => 'COUNT',
+ autoForward => '{ ".*COUNT.*" => "Dum.Rep.All" }',
+ device => 'SMA_%,MySTP.*',
+ reading => 'etotal,etoday,Ein% EXCLUDE=%Wirkleistung',
+ cmd => 'countEntries history'
},
- 4 => { timeDiffToNow => 'd:2',
- readingNameMap => 'SUM',
- autoForward => '{ ".*SUM.*" => "Dum.Rep.All" }',
- device => 'SMA_%,MySTP.*',
- reading => 'etotal,etoday,Ein% EXCLUDE=%Wirkleistung',
- cmd => 'sumValue'
+ 4 => { timeDiffToNow => 'd:2',
+ readingNameMap => 'SUM',
+ autoForward => '{ ".*SUM.*" => "Dum.Rep.All" }',
+ device => 'SMA_%,MySTP.*',
+ reading => 'etotal,etoday,Ein% EXCLUDE=%Wirkleistung',
+ cmd => 'sumValue'
},
- 5 => { cmd => 'sqlCmd select count(*) from current'
+ 5 => { executeAfterProc => 'set LogDB reopen',
+ cmd => 'sqlCmd select count(*) from current'
},
}
@@ -16224,9 +16187,6 @@ return;
sqlCmd
Executes any user-specific command.
- If this command contains a delete operation, for safety reasons the attribute
- allowDeletion has to be set.
-
sqlCmd also accepts the setting of SQL session variables such as.
"SET @open:=NULL, @closed:=NULL;" or the use of SQLite PRAGMA prior to the
execution of the SQL statement.
@@ -16298,7 +16258,7 @@ return;
set <name> sqlCmd ckey:<Index> (e.g. ckey:4)
-
+
The list index "ckey:latest" executes the last statement saved in the SQL history.
Relevant attributes are:
@@ -16306,7 +16266,6 @@ return;
executeBeforeProc,
executeAfterProc,
- allowDeletion,
sqlResultFormat,
sqlResultFieldSep,
sqlCmdHistoryLength,
@@ -16351,7 +16310,6 @@ return;
executeBeforeProc,
executeAfterProc,
- allowDeletion,
sqlResultFormat,
sqlResultFieldSep,
sqlCmdHistoryLength,
@@ -16395,7 +16353,6 @@ return;
executeBeforeProc,
executeAfterProc,
- allowDeletion,
sqlResultFormat,
sqlResultFieldSep,
sqlFormatService,
@@ -16794,10 +16751,10 @@ sub dbval {
- aggregation
-
- Creation of the function results in time slices within the selection period.
+
+ Creation of the function results in time slices within the selection period.
-
+
@@ -16810,14 +16767,7 @@ sub dbval {
year | - the functional results are summarized per calendar year |
-
-
-
-
- - allowDeletion
-
- Enables the delete function of the module.
-
+
@@ -16846,7 +16796,7 @@ sub dbval {
# readings with "AVGAM" in the name are transferred to the "Dum.Rep" device in the reading "average"
# readings with "SUM" in the name are transferred to the device "Dum.Rep.Sum" in the reading "summary"
-
+
@@ -16880,10 +16830,10 @@ sub dbval {
countEntriesDetail
-
+
If set, the function countEntries creates a detailed report of counted datasets of
every reading. By default only the summary of counted datasets is reported.
-
+
@@ -17226,33 +17176,33 @@ sub bdump {
readingNameMap
-
- The part between the first and last double underscore ('__') of the created reading name is replaced with the
- specified string.
-
+
+ The part between the first and last double underscore ('__') of the created reading name is replaced with the
+ specified string.
+
role
-
+
The role of the DbRep-device. Standard role is "Client".
The role "Agent" is described in section DbRep-Agent.
-
+
readingPreventFromDel
-
+
Comma separated list of readings which are should prevent from deletion when a new operation starts.
The readings can be specified as a regular expression.
(default: state)
-
+
Example:
attr <name> readingPreventFromDel .*Count.*,.*Summary1.*,.*Summary2.*
-
+
@@ -18165,8 +18115,6 @@ return;
- Aus Sicherheitsgründen muss das Attribut allowDeletion für die "delete" Option
- gesetzt sein.
Die Anzahl der anzuzeigenden Datensätze des Kommandos "delDoublets adviceDelete" ist zunächst
begrenzt (default 1000) und kann durch das Attribut limit angepasst
werden.
@@ -18196,7 +18144,6 @@ return;
- allowDeletion | : Freischaltung der Löschfunktion |
aggregation | : Auswahl einer Aggregationsperiode |
device | : einschließen oder ausschließen von Datensätzen die <device> enthalten |
limit | : begrenzt NUR die Anzahl der anzuzeigenden Datensätze |
@@ -18226,8 +18173,6 @@ return;
- Aus Sicherheitsgründen muss das Attribut allowDeletion
- gesetzt sein um die Löschfunktion freizuschalten.
Zeitgrenzen (Tage) können als Option angegeben werden. In diesem Fall werden eventuell gesetzte Zeitattribute
übersteuert.
Es werden Datensätze berücksichtigt die älter sind als <no> Tage und (optional) neuer sind als
@@ -18239,7 +18184,6 @@ return;
- allowDeletion | : Freischaltung der Löschfunktion |
device | : einschließen oder ausschließen von Datensätzen die <device> enthalten |
reading | : einschließen oder ausschließen von Datensätzen die <reading> enthalten |
readingNameMap | : die entstehenden Ergebnisreadings werden partiell umbenannt |
@@ -18274,8 +18218,6 @@ return;
- Aus Sicherheitsgründen muss das Attribut allowDeletion für die "delete" Option
- gesetzt sein.
Die Anzahl der anzuzeigenden Datensätze der Kommandos "delSeqDoublets adviceDelete", "delSeqDoublets adviceRemain" ist
zunächst begrenzt (default 1000) und kann durch das Attribut limit angepasst werden.
Die Einstellung von "limit" hat keinen Einfluss auf die "delSeqDoublets delete" Funktion, sondern beeinflusst NUR die
@@ -18326,7 +18268,6 @@ return;
- allowDeletion | : needs to be set to execute the delete option |
aggregation | : Auswahl einer Aggregationsperiode |
device | : einschließen oder ausschließen von Datensätzen die <device> enthalten |
limit | : begrenzt NUR die Anzahl der anzuzeigenden Datensätze |
@@ -19020,6 +18961,8 @@ return;
{
- 1 => { timestamp_begin => '2023-12-17 00:00:00',
- timestamp_end => '2023-12-17 01:00:00',
- device => 'SMA_Energymeter',
- reading => 'Einspeisung_Wirkleistung_Zaehler',
- cmd => 'countEntries history'
+ 1 => { executeBeforeProc => 'set LogDB reopen 900',
+ timestamp_begin => '2023-12-17 00:00:00',
+ timestamp_end => '2023-12-17 01:00:00',
+ device => 'SMA_Energymeter',
+ reading => 'Einspeisung_Wirkleistung_Zaehler',
+ cmd => 'countEntries history'
},
- 2 => { timestamp_begin => '2023-12-15 11:00:00',
- timestamp_end => 'previous_day_end',
- device => 'SMA_Energymeter',
- reading => 'Einspeisung_Wirkleistung_Zaehler',
- cmd => 'countEntries'
+ 2 => { timestamp_begin => '2023-12-15 11:00:00',
+ timestamp_end => 'previous_day_end',
+ device => 'SMA_Energymeter',
+ reading => 'Einspeisung_Wirkleistung_Zaehler',
+ cmd => 'countEntries'
},
- 3 => { timeDiffToNow => 'd:2',
- readingNameMap => 'COUNT',
- autoForward => '{ ".*COUNT.*" => "Dum.Rep.All" }',
- device => 'SMA_%,MySTP.*',
- reading => 'etotal,etoday,Ein% EXCLUDE=%Wirkleistung',
- cmd => 'countEntries history'
+ 3 => { timeDiffToNow => 'd:2',
+ readingNameMap => 'COUNT',
+ autoForward => '{ ".*COUNT.*" => "Dum.Rep.All" }',
+ device => 'SMA_%,MySTP.*',
+ reading => 'etotal,etoday,Ein% EXCLUDE=%Wirkleistung',
+ cmd => 'countEntries history'
},
- 4 => { timeDiffToNow => 'd:2',
- readingNameMap => 'SUM',
- autoForward => '{ ".*SUM.*" => "Dum.Rep.All" }',
- device => 'SMA_%,MySTP.*',
- reading => 'etotal,etoday,Ein% EXCLUDE=%Wirkleistung',
- cmd => 'sumValue'
+ 4 => { timeDiffToNow => 'd:2',
+ readingNameMap => 'SUM',
+ autoForward => '{ ".*SUM.*" => "Dum.Rep.All" }',
+ device => 'SMA_%,MySTP.*',
+ reading => 'etotal,etoday,Ein% EXCLUDE=%Wirkleistung',
+ cmd => 'sumValue'
},
- 5 => { cmd => 'sqlCmd select count(*) from current'
+ 5 => { executeAfterProc => 'set LogDB reopen',
+ cmd => 'sqlCmd select count(*) from current'
},
}
@@ -19364,8 +19309,6 @@ return;
- sqlCmd
Führt ein beliebiges benutzerspezifisches Kommando aus.
- Enthält dieses Kommando eine Delete-Operation, muss zur Sicherheit das Attribut
- allowDeletion gesetzt sein.
sqlCmd akzeptiert ebenfalls das Setzen von SQL Session Variablen wie z.B.
"SET @open:=NULL, @closed:=NULL;" oder die Verwendung von SQLite PRAGMA vor der
Ausführung des SQL-Statements.
@@ -19439,15 +19382,14 @@ return;
set <name> sqlCmd ckey:<Index> (e.g. ckey:4)
-
+
Der Listenindex "ckey:latest" führt das zuletzt in der SQL History gespeicherte Statement aus.
-
+
Relevante Attribute sind:
executeBeforeProc,
executeAfterProc,
- allowDeletion,
sqlResultFormat,
sqlResultFieldSep,
sqlCmdHistoryLength,
@@ -19493,7 +19435,6 @@ return;
executeBeforeProc,
executeAfterProc,
- allowDeletion,
sqlResultFormat,
sqlResultFieldSep,
sqlCmdHistoryLength,
@@ -19538,7 +19479,6 @@ return;
executeBeforeProc,
executeAfterProc,
- allowDeletion,
sqlResultFormat,
sqlResultFieldSep,
sqlFormatService,
@@ -19939,10 +19879,10 @@ sub dbval {
- aggregation
-
- Erstellung der Funktionsergebnisse in Zeitscheiben innerhalb des Selektionszeitraumes.
+
+ Erstellung der Funktionsergebnisse in Zeitscheiben innerhalb des Selektionszeitraumes.
-
+
@@ -19955,14 +19895,7 @@ sub dbval {
year | - die Funktionsergebnisse werden pro Kalenderjahr zusammengefasst |
-
-
-
-
- - allowDeletion
-
- Schaltet die Löschfunktion des Moduls frei.
-
+
@@ -19992,7 +19925,7 @@ sub dbval {
# Readings mit "AVGAM" im Namen werden zum Device "Dum.Rep" in das Reading "average" übertragen
# Readings mit "SUM" im Namen werden zum Device "Dum.Rep.Sum" in das Reading "summary" übertragen
-
+
@@ -20027,11 +19960,11 @@ sub dbval {
- countEntriesDetail
-
+
Wenn gesetzt, erstellt die Funktion "countEntries" eine detallierte Ausgabe der Datensatzzahl
pro Reading und Zeitintervall.
Standardmäßig wird nur die Summe aller selektierten Datensätze ausgegeben.
-
+
@@ -20397,33 +20330,33 @@ sub bdump {
- readingNameMap
-
- Der Teil zwischen dem ersten und letzten doppelten Unterstrich ('__') des erstellten Readingnamens wird mit dem
- angegebenen String ersetzt.
-
+
+ Der Teil zwischen dem ersten und letzten doppelten Unterstrich ('__') des erstellten Readingnamens wird mit dem
+ angegebenen String ersetzt.
+
- readingPreventFromDel
-
+
Komma separierte Liste von Readings die vor einer neuen Operation nicht gelöscht werden sollen.
Die Readings können als regulärer Ausdruck angegeben werden.
(default: state)
-
+
Beispiel:
attr <name> readingPreventFromDel .*Count.*,.*Summary1.*,.*Summary2.*
-
+
- role
-
- Die Rolle des DbRep-Device. Standard ist "Client".
+
+ Die Rolle des DbRep-Device. Standard ist "Client".
Die Rolle "Agent" ist im Abschnitt DbRep-Agent beschrieben.
-
+