Illegal modulus zero at ./FHEM/92_FileLog.pm line 224

Begonnen von Thomas24568, 30 Mai 2018, 19:20:07

Vorheriges Thema - Nächstes Thema

Thomas24568

Moin!

Ich habe etwas ausprobiert (filelog für einen 1-wire Sensor anlegen) und es hat auch zunächst geklappt: es wurden 2 Zeilen ins Logfil geschrieben. Dann abver stürzte FHEM ab, Fehlermeldung

2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_FF0DA5011703 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_6A0437060000 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_13B936060000 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_FF50C3511704 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_FF28A4011703 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_FF0235521704 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_FFD285531704 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_FF9677311704 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_FF3EE1011703 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_FFE99A531704 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_FFE58B311704 defined.
2018.05.30 18:37:53 3: OWTHERM:  Device OWX_28_FF1D37521704 defined.
2018.05.30 18:37:54 3: OWTHERM:  Device OWX_28_FF0BF1011703 defined.
2018.05.30 18:37:54 3: HourCounter HourCounter Initialize.220 Init Done with Version 1.0.1.2 - 24.12.2014
2018.05.30 18:37:54 0: HourCounter Stromverbrauch Define.228 parameters: Stromverbrauch HourCounter Pin35:on Pin35:off
2018.05.30 18:37:54 1: Including ./log/fhem.save
2018.05.30 18:37:54 1: usb create starting
2018.05.30 18:37:54 3: Probing CUL device /dev/ttyAMA0
2018.05.30 18:37:55 3: Probing TCM_ESP3 device /dev/ttyAMA0
2018.05.30 18:37:55 3: Probing ZWDongle device /dev/ttyAMA0
2018.05.30 18:37:55 3: Probing FRM device /dev/ttyAMA0
2018.05.30 18:38:00 1: usb create end
2018.05.30 18:38:00 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth. telnetPort has no associated allowed device with password/globalpa$
2018.05.30 18:38:00 0: Featurelevel: 5.8
2018.05.30 18:38:00 0: Server started with 62 defined entities (fhem.pl:15564/2017-12-07 perl:5.020002 os:linux user:fhem pid:1292)
2018.05.30 18:38:00 1: OWX_Init called for bus 1wire with interface state opened, now going for detect
2018.05.30 18:38:00 1: /dev/ttyUSB0 disconnected, waiting to reappear (1wire)
2018.05.30 18:38:00 1: OWX_SER::Query 1wire:  0 of 1 bytes in last attempt and state opened, this is an unrecoverable error
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:04 1: OWX_Complex called while interface 1wire disconnected
2018.05.30 18:38:09 0: HourCounter Stromverbrauch Run.598 first run done countsOverall:132833
2018.05.30 18:39:00 1: OWX_Init called for bus 1wire with interface state opened, now going for detect
2018.05.30 18:39:00 1: OWX_SER::Detect 1-Wire bus 1wire: interface master DS2480 detected for the first time
2018.05.30 18:39:02 1: OWX_Discover: 1-Wire devices found on bus 1wire (OWX_28_6A0437060000,OWX_28_13B936060000,OWX_28_FF50C3511704,OWX_28_FF28A4011703,OWX_28_FF0235521704,OWX_2$
2018.05.30 18:39:02 1: /dev/ttyUSB0 reappeared (1wire)
Illegal modulus zero at ./FHEM/92_FileLog.pm line 224.



Das Logfile, welches ich in Verdacht habe:


2018-05-30_18:19:35 OWX_28_FF0BF1011703 temperature: 34.8125
2018-05-30_18:19:35 OWX_28_FF0BF1011703 T: 34.81 °C ↓
2018-05-30_18:24:35 OWX_28_FF0BF1011703 temperature: 34.875
2018-05-30_18:24:35 OWX_28_FF0BF1011703 T: 34.88 °C ↓
2018-05-30_18:29:35 OWX_28_FF0BF1011703 temperature: 34.875
2018-05-30_18:29:35 OWX_28_FF0BF1011703 T: 34.88 °C ↓
2018-05-30_18:43:09 OWX_28_FF0BF1011703 initialized



Ich kann da nichts "verdächtiges" entdecken...

Die def des Logs:


define FileLog_OWX_28_FF0BF1011703 FileLog ./log/OWX_28_FF0BF1011703-%Y.log OWX_28_FF0BF1011703
attr FileLog_OWX_28_FF0BF1011703 alias Pi Gehäuse
attr FileLog_OWX_28_FF0BF1011703 eventOnThreshold .25


Wer hat einen Tip für mich?

amenomade

#1
Verdacht:
attr FileLog_OWX_28_FF0BF1011703 eventOnThreshold .25

Zitat von: CommandRefeventOnThreshold
Falls es auf eine (nicht Null-) Zahl gesetzt ist, dann wird das linesInTheFile Event generiert, falls die Anzahl der Zeilen in der Datei ein Mehrfaches der gesetzen Zahl ist. Achtung: der Zähler ist nur für solche Dateien korrekt, die nach dem Impementieren dieses Features angelegt wurden. Ein Absturz/Abschuß von FHEM verfälscht die Zählung.
Ich vermute das Modul kalkuliert das Event mit einem Modulo... und Modulo 0.25 kann ich mich für eine ANzahl der Zeilen nicht vorstellen... Je 1/4 Zeile ein Event??? Perl akzeptiert sowieso sowas nicht.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus