FHEM Forum

FHEM - Hausautomations-Systeme => Unterstützende Dienste => Thema gestartet von: P.A.Trick am 12 Oktober 2020, 16:57:43

Titel: Weather oder Twilight modul?
Beitrag von: P.A.Trick am 12 Oktober 2020, 16:57:43
Ich habe folgende Meldung im Log. Ich bin mir aber nicht sicher an welchen der beiden im Subject genannten Module es liegt.
Kann mich jemand erhellen?

2020.10.12 16:41:38.021 4: Weather w_MyWeather: Rearm new Timer
2020.10.12 16:41:38.019 5: [twilight] setting  Timer: twilight_sunpos 2020-10-12 16:41:39
2020.10.12 16:41:38.018 5: [twilight] removing Timer: twilight_sunpos
2020.10.12 16:41:38.018 5: [twilight] setting  Timer: twilight_ss_weather 2020-10-12 18:10:12
2020.10.12 16:41:38.017 5: [twilight] removing Timer: twilight_ss_weather
2020.10.12 16:41:38.015 1:     main::__ANON__                      called by fhem.pl (760)
2020.10.12 16:41:38.015 1:     OpenWeatherMapAPI::Weather::_RetrieveDataFinished called by FHEM/HttpUtils.pm (639)
2020.10.12 16:41:38.015 1:     OpenWeatherMapAPI::Weather::_ProcessingRetrieveData called by FHEM/OpenWeatherMapAPI.pm (339)
2020.10.12 16:41:38.015 1:     OpenWeatherMapAPI::Weather::_RetrieveDataFromOpenWeatherMap called by FHEM/OpenWeatherMapAPI.pm (588)
2020.10.12 16:41:38.015 1:     OpenWeatherMapAPI::Weather::_CallWeatherCallbackFn called by FHEM/OpenWeatherMapAPI.pm (279)
2020.10.12 16:41:38.015 1:     main::Weather_RetrieveCallbackFn    called by FHEM/OpenWeatherMapAPI.pm (598)
2020.10.12 16:41:38.015 1:     main::Weather_WriteReadings         called by ./FHEM/59_Weather.pm (322)
2020.10.12 16:41:38.015 1:     main::readingsEndUpdate             called by ./FHEM/59_Weather.pm (510)
2020.10.12 16:41:38.015 1:     main::DoTrigger                     called by fhem.pl (4808)
2020.10.12 16:41:38.015 1:     main::CallFn                        called by fhem.pl (3735)
2020.10.12 16:41:38.015 1:     FHEM::Twilight::Twilight_Notify     called by fhem.pl (3817)
2020.10.12 16:41:38.015 1:     main::ReadingsVal                   called by ./FHEM/59_Twilight.pm (242)
2020.10.12 16:41:38.015 1:     main::__ANON__                      called by fhem.pl (4515)
2020.10.12 16:41:38.014 1: stacktrace:
2020.10.12 16:41:38.014 1: PERL WARNING: Use of uninitialized value $n in hash element at fhem.pl line 4515.
2020.10.12 16:41:38.014 1:     main::__ANON__                      called by fhem.pl (760)
2020.10.12 16:41:38.014 1:     OpenWeatherMapAPI::Weather::_RetrieveDataFinished called by FHEM/HttpUtils.pm (639)
2020.10.12 16:41:38.014 1:     OpenWeatherMapAPI::Weather::_ProcessingRetrieveData called by FHEM/OpenWeatherMapAPI.pm (339)
2020.10.12 16:41:38.014 1:     OpenWeatherMapAPI::Weather::_RetrieveDataFromOpenWeatherMap called by FHEM/OpenWeatherMapAPI.pm (588)
2020.10.12 16:41:38.014 1:     OpenWeatherMapAPI::Weather::_CallWeatherCallbackFn called by FHEM/OpenWeatherMapAPI.pm (279)
2020.10.12 16:41:38.014 1:     main::Weather_RetrieveCallbackFn    called by FHEM/OpenWeatherMapAPI.pm (598)
2020.10.12 16:41:38.014 1:     main::Weather_WriteReadings         called by ./FHEM/59_Weather.pm (322)
2020.10.12 16:41:38.013 1:     main::readingsEndUpdate             called by ./FHEM/59_Weather.pm (510)
2020.10.12 16:41:38.013 1:     main::DoTrigger                     called by fhem.pl (4808)
2020.10.12 16:41:38.013 1:     main::CallFn                        called by fhem.pl (3735)
2020.10.12 16:41:38.013 1:     FHEM::Twilight::Twilight_Notify     called by fhem.pl (3817)
2020.10.12 16:41:38.013 1:     main::ReadingsNum                   called by ./FHEM/59_Twilight.pm (241)
2020.10.12 16:41:38.013 1:     main::ReadingsVal                   called by fhem.pl (4528)
2020.10.12 16:41:38.012 1:     main::__ANON__                      called by fhem.pl (4515)
2020.10.12 16:41:38.012 1: stacktrace:
2020.10.12 16:41:38.012 1: PERL WARNING: Use of uninitialized value $n in hash element at fhem.pl line 4515.
2020.10.12 16:41:38.001 4: w_MyWeather: T: 14 °C F: 73 % W: 3 km/h P: 1017 hPa
Titel: Antw:Weather oder Twilight modul?
Beitrag von: Beta-User am 12 Oktober 2020, 17:13:46
Twilight ist schuld... ::) .

Kannst du Zeile 240 mal so ändern:
my $dispatch = defined $hash->{helper}{extWeather} && defined $hash->{helper}{extWeather}{dispatch} ? 1 : 0;
Titel: Antw:Weather oder Twilight modul?
Beitrag von: P.A.Trick am 12 Oktober 2020, 17:17:16
Zitat von: Beta-User am 12 Oktober 2020, 17:13:46
Twilight ist schuld... ::) .

Kannst du Zeile 240 mal so ändern:
my $dispatch = defined $hash->{helper}{extWeather} && defined $hash->{helper}{extWeather}{dispatch} ? 1 : 0;

Eingebaut. Ich beobachte mal weiter.
Titel: Antw:Weather oder Twilight modul?
Beitrag von: P.A.Trick am 12 Oktober 2020, 18:05:02
Update ganz frisch aus dem Log:

2020.10.12 18:02:38.524 3: [sendmsg] - [MSG] 18:02:38: [info] trinity-Synchronisation zur Zeit nicht erlaubt
2020.10.12 18:01:39.004 5: [twilight] setting  Timer: twilight_sunpos 2020-10-12 18:06:39
2020.10.12 18:01:39.002 5: [twilight] removing Timer: twilight_sunpos
2020.10.12 18:01:39.001 5: [twilight] New weather readings from: w_MyWeather:cloudCover:32
2020.10.12 18:00:24.935 4: [twilight] ss_weather 1970-01-01 01:00:00  ( 0// +0.0°/)   ===>            undefined           
2020.10.12 18:00:24.935 1:     main::HandleTimeout                 called by fhem.pl (685)
2020.10.12 18:00:24.935 1:     FHEM::Twilight::Twilight_fireEvent  called by fhem.pl (3350)
2020.10.12 18:00:24.935 1:     main::__ANON__                      called by ./FHEM/59_Twilight.pm (626)
2020.10.12 18:00:24.935 1: stacktrace:
2020.10.12 18:00:24.935 1: PERL WARNING: Use of uninitialized value $nextEvent in sprintf at ./FHEM/59_Twilight.pm line 626.
2020.10.12 18:00:24.935 1:     main::HandleTimeout                 called by fhem.pl (685)
2020.10.12 18:00:24.934 1:     FHEM::Twilight::Twilight_fireEvent  called by fhem.pl (3350)
2020.10.12 18:00:24.934 1:     main::__ANON__                      called by ./FHEM/59_Twilight.pm (626)
2020.10.12 18:00:24.934 1: stacktrace:
2020.10.12 18:00:24.934 1: PERL WARNING: Use of uninitialized value $deg in sprintf at ./FHEM/59_Twilight.pm line 626.
2020.10.12 18:00:24.934 1:     main::HandleTimeout                 called by fhem.pl (685)
2020.10.12 18:00:24.934 1:     FHEM::Twilight::Twilight_fireEvent  called by fhem.pl (3350)
2020.10.12 18:00:24.934 1:     main::__ANON__                      called by ./FHEM/59_Twilight.pm (626)
2020.10.12 18:00:24.933 1: stacktrace:
2020.10.12 18:00:24.933 1: PERL WARNING: Use of uninitialized value $state in sprintf at ./FHEM/59_Twilight.pm line 626.
2020.10.12 18:00:24.933 1:     main::HandleTimeout                 called by fhem.pl (685)
2020.10.12 18:00:24.933 1:     FHEM::Twilight::Twilight_fireEvent  called by fhem.pl (3350)
2020.10.12 18:00:24.933 1:     main::__ANON__                      called by ./FHEM/59_Twilight.pm (626)
2020.10.12 18:00:24.933 1: stacktrace:
2020.10.12 18:00:24.933 1: PERL WARNING: Use of uninitialized value $doTrigger in concatenation (.) or string at ./FHEM/59_Twilight.pm line 626.
2020.10.12 18:00:24.933 1:     main::HandleTimeout                 called by fhem.pl (685)
2020.10.12 18:00:24.933 1:     FHEM::Twilight::Twilight_fireEvent  called by fhem.pl (3350)
2020.10.12 18:00:24.933 1:     main::__ANON__                      called by ./FHEM/59_Twilight.pm (626)
2020.10.12 18:00:24.933 1: stacktrace:
2020.10.12 18:00:24.933 1: PERL WARNING: Use of uninitialized value $light in concatenation (.) or string at ./FHEM/59_Twilight.pm line 626.
2020.10.12 18:00:24.932 1:     main::HandleTimeout                 called by fhem.pl (685)
2020.10.12 18:00:24.932 1:     FHEM::Twilight::Twilight_fireEvent  called by fhem.pl (3350)
2020.10.12 18:00:24.932 1:     main::FmtDateTime                   called by ./FHEM/59_Twilight.pm (626)
2020.10.12 18:00:24.932 1:     main::__ANON__                      called by fhem.pl (3509)
2020.10.12 18:00:24.932 1: stacktrace:
2020.10.12 18:00:24.932 1: PERL WARNING: Use of uninitialized value in localtime at fhem.pl line 3509.
2020.10.12 18:00:24.932 1:     main::HandleTimeout                 called by fhem.pl (685)
2020.10.12 18:00:24.932 1:     FHEM::Twilight::Twilight_fireEvent  called by fhem.pl (3350)
2020.10.12 18:00:24.931 1:     main::__ANON__                      called by ./FHEM/59_Twilight.pm (621)
2020.10.12 18:00:24.931 1: stacktrace:
2020.10.12 18:00:24.931 1: PERL WARNING: Use of uninitialized value in numeric gt (>) at ./FHEM/59_Twilight.pm line 621.
2020.10.12 18:00:24.931 1:     main::HandleTimeout                 called by fhem.pl (685)
2020.10.12 18:00:24.931 1:     FHEM::Twilight::Twilight_fireEvent  called by fhem.pl (3350)
2020.10.12 18:00:24.931 1:     main::__ANON__                      called by ./FHEM/59_Twilight.pm (621)
2020.10.12 18:00:24.931 1: stacktrace:
2020.10.12 18:00:24.931 1: PERL WARNING: Use of uninitialized value $nextEvent in hash element at ./FHEM/59_Twilight.pm line 621.
2020.10.12 18:00:24.931 1:     main::HandleTimeout                 called by fhem.pl (685)
2020.10.12 18:00:24.931 1:     FHEM::Twilight::Twilight_fireEvent  called by fhem.pl (3350)
2020.10.12 18:00:24.931 1:     main::__ANON__                      called by ./FHEM/59_Twilight.pm (615)
2020.10.12 18:00:24.930 1: stacktrace:
2020.10.12 18:00:24.930 1: PERL WARNING: Use of uninitialized value $eventTime in subtraction (-) at ./FHEM/59_Twilight.pm line 615.
2020.10.12 18:00:00.139 3: [sendmsg] - [MSG] 18:00:00: [info] Aquariumlicht ausgeschaltet
2020.10.12 18:00:00.004 3: MQTT2_DEVICE set obi1 off
2020.10.12 17:56:39.003 5: [twilight] setting  Timer: twilight_sunpos 2020-10-12 18:01:39
2020.10.12 17:56:39.002 5: [twilight] removing Timer: twilight_sunpos
Titel: Antw:Weather oder Twilight modul?
Beitrag von: Beta-User am 12 Oktober 2020, 18:41:25
Kannst du mal Version 22960 aus dem svn ziehen?
Die anderen Warnings müßten mit dem Fix aus https://forum.fhem.de/index.php/topic,114061.msg1091852.html#msg1091852 behoben sein.
Titel: Antw:Weather oder Twilight modul?
Beitrag von: P.A.Trick am 12 Oktober 2020, 18:47:53
Zitat von: Beta-User am 12 Oktober 2020, 18:41:25
Kannst du mal Version 22960 aus dem svn ziehen?
Die anderen Warnings müßten mit dem Fix aus https://forum.fhem.de/index.php/topic,114061.msg1091852.html#msg1091852 behoben sein.

Ok sie läuft. Ich werde mal weiter beobachten. Danke dir!
Titel: Antw:Weather oder Twilight modul?
Beitrag von: P.A.Trick am 13 Oktober 2020, 07:06:15
Update: keine Meldungen mehr im Log!
Titel: Antw:Weather oder Twilight modul?
Beitrag von: Beta-User am 13 Oktober 2020, 07:55:02
Danke für die Info!

Und: Sorry for inconvenience...
Titel: Antw:Weather oder Twilight modul?
Beitrag von: P.A.Trick am 13 Oktober 2020, 09:09:15
Zitat von: Beta-User am 13 Oktober 2020, 07:55:02
Danke für die Info!

Und: Sorry for inconvenience...

Gerne und kein Problem. Vielen Dank für die Korrektur.