eine oder mehrere DBLog Dateien (SQLite)

Begonnen von Jewe, 11 September 2017, 19:06:32

Vorheriges Thema - Nächstes Thema

Jewe

Hallo,

ich stelle mir gerade die Frage, wie sinnvoll es ist mehrere (2) DBLog´s zu haben.
Ich bin dabei auf DBLog umzustellen und habe schon einige Geräte abgearbeitet. Nun fängt
demnächst ja die Heizperiode an und da ist es wichtig, dass ich zwei weitere FileLogs umstelle.
Da ich damit den Füllstand von meinem Pelletslager ermittle ist dies schon sehr wichtig. Gelöst
habe ich das mit dem HourCounter . Die Filelogs von einer Saison haben eine größe von ca. 2 MB.
macht es da Sinn dies mit einer 2. SQLite Datenbank zu realisieren ?

Jens

So sehen zwei Tage ca. aus...

2017-01-10_00:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-10_00:00:01 CN.PelletsCounter appCountsPerDay: 9510
2017-01-10_00:00:01 CN.PelletsCounter appOpHoursPerDay: 10.2383333333333
2017-01-10_00:00:01 CN.PelletsCounter appTanklevel: 1476.2365483
2017-01-10_00:00:01 CN.PelletsCounter appUtilization: 44.5144927536232
2017-01-10_01:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-10_02:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-10_03:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-10_04:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-10_05:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-10_06:00:00 CN.PelletsCounter appCountsPerHour: 218
2017-01-10_07:00:00 CN.PelletsCounter appCountsPerHour: 460
2017-01-10_08:00:00 CN.PelletsCounter appCountsPerHour: 799
2017-01-10_09:00:00 CN.PelletsCounter appCountsPerHour: 799
2017-01-10_10:00:00 CN.PelletsCounter appCountsPerHour: 800
2017-01-10_11:00:00 CN.PelletsCounter appCountsPerHour: 799
2017-01-10_12:00:00 CN.PelletsCounter appCountsPerHour: 800
2017-01-10_13:00:00 CN.PelletsCounter appCountsPerHour: 576
2017-01-10_14:00:00 CN.PelletsCounter appCountsPerHour: 631
2017-01-10_15:00:01 CN.PelletsCounter appCountsPerHour: 704
2017-01-10_16:00:00 CN.PelletsCounter appCountsPerHour: 547
2017-01-10_17:00:00 CN.PelletsCounter appCountsPerHour: 476
2017-01-10_18:00:00 CN.PelletsCounter appCountsPerHour: 729
2017-01-10_19:00:03 CN.PelletsCounter appCountsPerHour: 50
2017-01-10_20:00:00 CN.PelletsCounter appCountsPerHour: 496
2017-01-10_21:00:00 CN.PelletsCounter appCountsPerHour: 800
2017-01-10_22:00:00 CN.PelletsCounter appCountsPerHour: 800
2017-01-10_23:00:00 CN.PelletsCounter appCountsPerHour: 95
2017-01-11_00:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-11_00:00:00 CN.PelletsCounter appCountsPerDay: 10579
2017-01-11_00:00:00 CN.PelletsCounter appOpHoursPerDay: 10.7786111111111
2017-01-11_00:00:00 CN.PelletsCounter appTanklevel: 1447.0062484
2017-01-11_00:00:00 CN.PelletsCounter appUtilization: 46.8635265700483
2017-01-11_01:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-11_02:00:01 CN.PelletsCounter appCountsPerHour: 0
2017-01-11_03:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-11_04:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-11_05:00:00 CN.PelletsCounter appCountsPerHour: 0
2017-01-11_06:00:00 CN.PelletsCounter appCountsPerHour: 388
2017-01-11_07:00:00 CN.PelletsCounter appCountsPerHour: 800
2017-01-11_08:00:00 CN.PelletsCounter appCountsPerHour: 800
2017-01-11_09:00:00 CN.PelletsCounter appCountsPerHour: 799
2017-01-11_10:00:00 CN.PelletsCounter appCountsPerHour: 800
2017-01-11_11:00:00 CN.PelletsCounter appCountsPerHour: 359
2017-01-11_12:00:00 CN.PelletsCounter appCountsPerHour: 659
2017-01-11_13:00:00 CN.PelletsCounter appCountsPerHour: 400
2017-01-11_14:00:00 CN.PelletsCounter appCountsPerHour: 800
2017-01-11_15:00:00 CN.PelletsCounter appCountsPerHour: 259
2017-01-11_16:00:00 CN.PelletsCounter appCountsPerHour: 745
2017-01-11_17:00:00 CN.PelletsCounter appCountsPerHour: 301
2017-01-11_18:00:00 CN.PelletsCounter appCountsPerHour: 605
2017-01-11_19:00:00 CN.PelletsCounter appCountsPerHour: 612
2017-01-11_20:00:00 CN.PelletsCounter appCountsPerHour: 320
2017-01-11_21:00:00 CN.PelletsCounter appCountsPerHour: 634
2017-01-11_22:00:01 CN.PelletsCounter appCountsPerHour: 261
2017-01-11_23:00:00 CN.PelletsCounter appCountsPerHour: 0

Amenophis86

Glaubensfrage. Manche haben es gerne in verschiedenen DB getrennt, manche haben alles in einer. Ich habe eine für alle Temperaturen und eine für den Rest.

Als Tipp noch, schau dir das Attr event-on-change-reading am. Dann loggste schon mal nicht doppelt bei gleichem Wert und sparst etwas. Egal ob DB oder FileLog.
Aktuell dabei unser neues Haus mit KNX am einrichten. Im nächsten Schritt dann KNX mit FHEM verbinden. Allein zwei Dinge sind dabei selten: Zeit und Geld...