[gelöst] PERL WARNING: Use of uninitialized value in sprintf at FHEM/Open..

Begonnen von P.A.Trick, 21 April 2020, 11:39:03

Vorheriges Thema - Nächstes Thema

vbs

Von mir auch mal Rückmeldung:
Habe heute geupdatet und ich hab jetzt nach 2h (nach FHEM Neustart) das hier im Log:
2020.04.24 19:40:19.966 1: PERL WARNING: Use of uninitialized value in sprintf at FHEM/OpenWeatherMapAPI.pm line 443.
2020.04.24 19:40:19.966 1: stacktrace:
2020.04.24 19:40:19.966 1:     main::__ANON__                      called by FHEM/OpenWeatherMapAPI.pm (443)
2020.04.24 19:40:19.966 1:     OpenWeatherMapAPI::Weather::_ProcessingRetrieveData called by FHEM/OpenWeatherMapAPI.pm (338)
2020.04.24 19:40:19.966 1:     OpenWeatherMapAPI::Weather::_RetrieveDataFinished called by FHEM/HttpUtils.pm (634)
2020.04.24 19:40:19.966 1:     main::__ANON__                      called by fhem.pl (750)
2020.04.24 19:40:19.966 1: PERL WARNING: Use of uninitialized value in sprintf at FHEM/OpenWeatherMapAPI.pm line 443.
2020.04.24 19:40:19.966 1: stacktrace:
2020.04.24 19:40:19.966 1:     main::__ANON__                      called by FHEM/OpenWeatherMapAPI.pm (443)
2020.04.24 19:40:19.967 1:     OpenWeatherMapAPI::Weather::_ProcessingRetrieveData called by FHEM/OpenWeatherMapAPI.pm (338)
2020.04.24 19:40:19.967 1:     OpenWeatherMapAPI::Weather::_RetrieveDataFinished called by FHEM/HttpUtils.pm (634)
2020.04.24 19:40:19.967 1:     main::__ANON__                      called by fhem.pl (750)

CoolTux

Hab mal Patrick seine Location genommen. Mal schauen ob mehr kommt.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

vbs

Danke dir. Sorry, hier auch mein Device:
Internals:
   API        OpenWeatherMapAPI
   APIKEY     xxx
   APIOPTIONS
   DEF        API=OpenWeatherMapAPI apikey=xxx location=yyy
   FUUID      xxx
   FVERSION   59_Weather.pm:v2.1.3-s21117/2020-02-04
   INTERVAL   3600
   LANG       de
   MODEL      OpenWeatherMapAPI
   NAME       env_weatherOpenWeatherMap
   NOTIFYDEV  global
   NR         594
   NTFY_ORDER 50-env_weatherOpenWeatherMap
   STATE      T: 16 °C F: 52 % W: 5 km/h P: 1007 hPa
   TYPE       Weather
   VERSION    v2.1.3
   READINGS:
     2020-04-24 19:40:19   apiMaintainer   Leon Gaultier (<a href=https://forum.fhem.de/index.php?action=profile;u=13684>CoolTux</a>)
     2020-04-24 19:40:19   apiVersion      v1.0.1
     2020-04-24 19:40:19   city            yyy
     2020-04-24 19:40:19   cloudCover      34
     2020-04-24 19:40:19   code            26
     2020-04-24 19:40:19   condition       Mäßig bewölkt
     2020-04-24 19:40:19   country         DE
     2020-04-24 19:40:19   current_date_time Fri, 24 Apr 2020 19:40
     ...
     2020-04-24 19:40:19   high_c          16
     2020-04-24 19:40:19   humidity        52
     2020-04-24 19:40:19   icon            cloudy
     2020-04-24 19:40:19   iconAPI         03d
     2020-04-24 19:40:19   lastError       
     2020-04-24 19:40:19   lat             52.154778
     2020-04-24 19:40:19   long            9.9579652
     2020-04-24 19:40:19   low_c           15
     2020-04-24 19:40:19   pressure        1007
     2020-04-24 19:40:19   pubDate         Fri, 24 Apr 2020 19:39
     2020-04-24 19:40:19   state           T: 16 °C F: 52 % W: 5 km/h P: 1007 hPa
     2020-04-24 19:40:19   status          ok
     2020-04-24 19:40:19   sunriseTime     Fri, 24 Apr 2020 06:03
     2020-04-24 19:40:19   sunsetTime      Fri, 24 Apr 2020 20:33
     2020-04-24 19:40:19   tempFeelsLike_c 14
     2020-04-24 19:40:19   tempHigh        16
     2020-04-24 19:40:19   tempLow         15
     2020-04-24 19:40:19   temp_c          16
     2020-04-24 19:40:19   temperature     16
     2020-04-24 19:40:19   validity        up-to-date
     2020-04-24 19:40:19   visibility      0
     2020-04-24 19:40:19   wind            5
     2020-04-24 19:40:19   wind_condition  Wind: NW 5 km/h
     2020-04-24 19:40:19   wind_direction  319
     2020-04-24 19:40:19   wind_speed      5
   fhem:
     LOCATION   yyy
     allowCache 1
     interfaces temperature;humidity;wind
Attributes:


Location schicke ich dir jederzeit per PM bei Bedarf.

CoolTux

So Fehler gefunden. Es lag wie immer an gaaaanz anderer Stelle wie man angezeigt bekommt. Lach.

Es war die "visibility" welche in Eurer Region wohl als Datensatz nicht vor liegt.
Hier ist nun die gepatchte Version.
https://git-tuxnet.ddns.net/FHEM/mod-Weather.git

Und morgen Früh dann als Update.


Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

P.A.Trick

Cubietruck,RPI,QNAP Ts-419p+, FS20, FRITZ!DECT200, 7 MAX! Thermostate, 3 MAX! Fensterkontakte, Kodi, CUL V3.3, EM1000S, LW12, LD382, HUE, HM-CFG-USB-2, 1x HM-LC-SW1-FM, 2x HM-LC-SW2-FM, 2x HM-LC-Sw1PBU-FM, 3xHM-LC-Bl1PBU-FM,HM-SEC-RHS, 2xHM-SEC-SD,HM-WDS30-T-O, 3x HM-LC-Dim1TPBU-FM, RPI+AddOn