-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/cyclic-send-variable-time
- Loading branch information
Showing
12 changed files
with
91 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.idea | ||
.DS_Store | ||
.idea/ | ||
.phpunit.* | ||
.php_cs.cache | ||
.php-cs-fixer.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,4 @@ | ||
# CSVZipExport | ||
Dieses Modul bietet die Möglichkeit, die aggregierten Werte einer Variable als CSV-Datei in einem ZIP-Archiv zu exportieren. | ||
[Link zur deutschen Dokumentation](https://www.symcon.de/de/service/dokumentation/modulreferenz/csv-zip-export/) | ||
|
||
### Inhaltsverzeichnis | ||
|
||
1. [Funktionsumfang](#1-funktionsumfang) | ||
2. [Voraussetzungen](#2-voraussetzungen) | ||
3. [Software-Installation](#3-software-installation) | ||
4. [Einrichten der Instanzen in IP-Symcon](#4-einrichten-der-instanzen-in-ip-symcon) | ||
5. [Statusvariablen und Profile](#5-statusvariablen-und-profile) | ||
6. [WebFront](#6-webfront) | ||
7. [PHP-Befehlsreferenz](#7-php-befehlsreferenz) | ||
|
||
### 1. Funktionsumfang | ||
|
||
* Exportieren von aggregierten Daten einer Variable | ||
* Daten in CSV-Datei ein einem ZIP-Archiv exportieren | ||
* Auflistung aller geloggten Variablen | ||
* Zeitraum der Aggregierung frei wählbar | ||
* Aggregierungsstufe kann ausgewählt werden | ||
* Zyklisches erstellen und versenden eines Archivs | ||
|
||
### 2. Voraussetzungen | ||
|
||
- IP-Symcon ab Version 5.5 | ||
|
||
### 3. Software-Installation | ||
|
||
* Über den Module Store das 'CSVZipExport'-Modul installieren. | ||
* Alternativ über das Module Control folgende URL hinzufügen `https://github.com/symcon/CSVZipExport/` | ||
|
||
### 4. Einrichten der Instanzen in IP-Symcon | ||
|
||
Unter 'Instanz hinzufügen' ist das 'CSVZipExport'-Modul unter dem Hersteller '(Gerät)' aufgeführt. | ||
|
||
__Konfigurationsseite__: | ||
|
||
Name | Beschreibung | ||
---------------------------- | ------------------ | ||
Filter | Filtriert die Auswahl der geloggten Variablen | ||
Geloggte Variablen | Auswahl der Variable welche exportiert werden soll | ||
Start der Aggregation | Beginn des Aggregationszeitraums | ||
Ende der Aggregation | Ende des Aggregationszeitraums | ||
Aggregationsstufe | Stufe der Aggregation | ||
Exportieren | Die aggregierten Daten der Variable werden exportiert | ||
Zyklisches senden aktivieren | Aktiviert die Versendung per E-Mail | ||
SMPT-Instanz | Auswahl der E-Mail-Instanz | ||
E-Mail Intervall | Intervall in welchem die E-Mail versendet wird. Bei "Wöchtenlich" wird die E-Mail am Montag versendet und bei "Monatlich" wird die E-Mail jeweils am 1. des Monats versendet zum jeweilig gewählten Zeitpunkt | ||
Zeitpunkt der Mail | Zeitpunkt zu welchem die E-Mail versendet werden soll | ||
Jetzt Mail senden | Sendet manuell eine Mail | ||
|
||
### 5. Statusvariablen und Profile | ||
|
||
Die Statusvariablen/Kategorien werden automatisch angelegt. Das Löschen einzelner kann zu Fehlfunktionen führen. | ||
|
||
#### Statusvariablen | ||
|
||
Es werden keine zusätzlichen Statusvariablen erstellt. | ||
|
||
#### Profile | ||
Es werden keine zusätzlichen Profile erstellt. | ||
|
||
### 6. WebFront | ||
|
||
Dieses Modul bietet keinerlei Funktion im Webfront. | ||
|
||
### 7. PHP-Befehlsreferenze | ||
`string CSV_Export(integer $InstanzID, integer $ArchiveVariable, integer $AggregationStage, integer $AggregationStart, integer $AggregationEnd);` | ||
Erzeugt ein Zip-Archiv basierend auf den gegebenen Parametern und liefert den relativen Pfad des Archivs als Rückgabewert. | ||
|
||
Beispiel: | ||
`CSV_Export(12345, 54321, 4, 2293574400, 3127161600);` | ||
|
||
|
||
`void CSV_SendMail(integer $InstanzID);` | ||
Senden durch eine SMTP Instaz eine Mail mit einer erzeugten Zip-Datei | ||
|
||
Beispiel: | ||
`CSV_SendMail(12345);` | ||
|
||
|
||
`void CSV_DeleteZip(integer $InstanzID);` | ||
Entfernt die generierte Datei. | ||
|
||
Beispiel: | ||
`CSV_DeleteZip(12345);` | ||
[Link to the english documentation](https://www.symcon.de/en/service/documentation/module-reference/csv-zip-export/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"compatibility": { | ||
"version": "5.0" | ||
}, | ||
"version": "1.2", | ||
"version": "1.4", | ||
"build": 0, | ||
"date": 0 | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit> | ||
<php> | ||
<const name="PHPUNIT_TESTSUITE" value="true"/> | ||
</php> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">../CSVZipExport</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" cacheDirectory=".phpunit.cache"> | ||
<coverage/> | ||
<php> | ||
<const name="PHPUNIT_TESTSUITE" value="true"/> | ||
</php> | ||
<source> | ||
<include> | ||
<directory suffix=".php">../CSVZipExport</directory> | ||
</include> | ||
</source> | ||
</phpunit> |