FHEM Forum

FHEM => English Corner => Thema gestartet von: questionmark am 25 August 2017, 22:35:34

Titel: unknown subroutine error in 00_SmartMeterP1
Beitrag von: questionmark am 25 August 2017, 22:35:34
When I use the SmartMeterP1 it works fine, I can read all the data.

But when I want to use the option to write to the database, it does connect bu then writes an error in the log and FHEM crashes.
The error is:

Undefined subroutine &main::myStr2Date called at ./FHEM/00_SmartMeterP1.pm line 228.

Can someone help me on this?

Titel: Antw:unknown subroutine error in 00_SmartMeterP1
Beitrag von: RaspiLED am 25 August 2017, 23:26:13
Hi,
what i got is, that the function myStr2Date is not found.
It is used in that SmartMeter Device/module, but it is defined somewhere else in FHEM. Did not looked into that, yet.

What I did not got is, when this error occurs to you?
Are you saying that everything is fine without the database usage for fhem.log. But when you switch to, db it fails?
Or is it working until you only receive the Smartmeter, but when you want to send someting to it, it actually fails?


Edit: Now I got it! This function is used, when you want to put the messured data to a db.
I asked the modul maintaner to look over your question !-)


Warm regards, Arnd


Raspi2 mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, Bravia, ...
Titel: Antw:unknown subroutine error in 00_SmartMeterP1
Beitrag von: fhemmiv am 26 August 2017, 09:51:39
I will have a look today and let you know as soon as possible.
Regards, Michel.
Titel: Antw:unknown subroutine error in 00_SmartMeterP1
Beitrag von: questionmark am 01 Oktober 2017, 17:17:26
Hi Michel,

Did you have any chance to have a look at this issue?