FHEM Forum

FHEM => Automatisierung => Thema gestartet von: chris1284 am 22 Mai 2014, 21:49:37

Titel: dblog - frage/wunsch - import aus filelog möglich?
Beitrag von: chris1284 am 22 Mai 2014, 21:49:37
hallo,

gibt es eigentlich, bis auf diese "lösung" http://forum.fhem.de/index.php/topic,21589.msg150714.html#msg150714, eine einfache möglichkeit fileog nach dblog zu importieren?
so was wie dblog absorb <filog.log> wäre echt ein tolles feature

gruß

christian
Titel: Antw:dblog - frage/wunsch - import aus filelog möglich?
Beitrag von: betateilchen am 22 Mai 2014, 22:49:52
Filelog nach csv exportieren und dann CSV in das Dblog importieren. Perl DBI kann csv von Haus aus.

Du musst aber vorher die Struktur der DbLog History Tabelle so ändern, dass die timestamps nicht automatisch vergeben werden.
Titel: Antw:dblog - frage/wunsch - import aus filelog möglich?
Beitrag von: DeeSPe am 29 Januar 2017, 15:31:20
Ich habe aus der Not heraus mal ein kleines Modul gebaut:
98_FileLogConvert.pm (https://forum.fhem.de/index.php/topic,65982.0.html)

Gruß
Dan