Es wird in den kommenden Wochen eine neue Version der OpenWeatherMapAPI geben. Diese setzt zwingend das Perl Modul Readonly voraus.
Readonly ist nun Voraussetzung
apt install libreadonly-perl
User welche diese API verwenden installieren bitte schon einmal das Perl Modul
Die neue Version wird dann eine tägliche Vorhersage möglich machen.
Grüße
Moin,
die Installation muss als SUDO erfolgen.
LG
MDietrich
Moin CoolTux,
es hat eine Weile gedauert, bis ich deinen Tipp hier gefunden habe, dass ein Perl-Modul noch nachinstalliert werden muss. Bei einem Update der Module gestern über FHEM erwarte ich eigentlich nicht, dass danach das Modul einfach nicht mehr funktioniert und in der Command-Referenz dazu auch kein Hinweis steht. Ich vermute, du wirst das noch pflegen.
Eine wichtige Frage habe ich dazu aber noch: Bisher zeigte mir das Modul auch Vorhersage-Werte an, die ich bei meiner Installation nutze:
---------------------------------------------------------------------
Vorhersage für heute:fc1_condition
Wolkenbedeckung: fc1_cloudCover %
Höchsttemperatur: fc1_high_c °C
Niederschlagswahrscheinlichkeit: fc1_precipProbability %
Niederschlagsintensität: fc1_precipIntensity mm/h
Sichtweite: fc1_visibility km
UV-Index: fc1_uvIndex
Vorhersage für morgen:fc2_condition
Wolkenbedeckung: fc2_cloudCover %
Höchsttemperatur: fc2_high_c °C
Niederschlagswahrscheinlichkeit: fc2_precipProbability %
Niederschlagsintensität: fc2_precipIntensity mm/h
Sichtweite: fc2_visibility km
UV-Index: fc2_uvIndex
---------------------------------------------------------------------
Diese fc-Werte fehlen nun leider. Das entspricht nicht deiner Aussage
ZitatDie neue Version wird dann eine tägliche Vorhersage möglich machen.
Kommt da noch was oder mache ich was falsch?
Zitat von: Holger86 am 10 Februar 2023, 13:41:17
Moin CoolTux,
es hat eine Weile gedauert, bis ich deinen Tipp hier gefunden habe, dass ein Perl-Modul noch nachinstalliert werden muss. Bei einem Update der Module gestern über FHEM erwarte ich eigentlich nicht, dass danach das Modul einfach nicht mehr funktioniert und in der Command-Referenz dazu auch kein Hinweis steht. Ich vermute, du wirst das noch pflegen.
Eine wichtige Frage habe ich dazu aber noch: Bisher zeigte mir das Modul auch Vorhersage-Werte an, die ich bei meiner Installation nutze:
---------------------------------------------------------------------
Vorhersage für heute:
fc1_condition
Wolkenbedeckung: fc1_cloudCover %
Höchsttemperatur: fc1_high_c °C
Niederschlagswahrscheinlichkeit: fc1_precipProbability %
Niederschlagsintensität: fc1_precipIntensity mm/h
Sichtweite: fc1_visibility km
UV-Index: fc1_uvIndex
Vorhersage für morgen:
fc2_condition
Wolkenbedeckung: fc2_cloudCover %
Höchsttemperatur: fc2_high_c °C
Niederschlagswahrscheinlichkeit: fc2_precipProbability %
Niederschlagsintensität: fc2_precipIntensity mm/h
Sichtweite: fc2_visibility km
UV-Index: fc2_uvIndex
---------------------------------------------------------------------
Diese fc-Werte fehlen nun leider. Das entspricht nicht deiner Aussage Kommt da noch was oder mache ich was falsch?
Hallo Holger,
Leider lieferst Du mir nicht einen einzigen Hinweis bezüglich Deiner derzeitigen Konfiguration. Daher sehe ich mich außer Stande Dir hier hilfreiche Tipps geben zu können. Bitte entschuldige.
Grüße
Moin CoolTux,
die entsprechende Definition und die globalen Attribute dazu sehen bei mir wie folgt aus:
attr global latitude 53.644048
attr global longitude 9.812770
define Wetter_Pinneberg Weather API=DarkSkyAPI apikey=******************* interval=900 lang=de
setuuid Wetter_Pinneberg 5c8f7023-f33f-af40-f54f-7bf56402fa5fc92c
attr Wetter_Pinneberg devStateStyle style="text-align: left;;"
attr Wetter_Pinneberg group Wetter
attr Wetter_Pinneberg room Außen
attr Wetter_Pinneberg sortby 05
attr Wetter_Pinneberg stateFormat <u><strong>Aktuell:</strong></u><br><br>\
Temperatur: temperature °C<br>\
relative Luftfeuchtigkeit: humidity %rLF<br>\
absolute Luftfeuchtigkeit: absHumidity g/m³<br>\
Luftdruck: pressure hPa<br>\
wind_condition<br>\
condition<br><br>\
<u><strong>Vorhersage für heute:</strong></u><br><br>\
fc1_condition<br>\
Wolkenbedeckung: fc1_cloudCover %<br>\
Höchsttemperatur: fc1_high_c °C<br>\
Niederschlagswahrscheinlichkeit: fc1_precipProbability %<br>\
Niederschlagsintensität: fc1_precipIntensity mm/h<br>\
Sichtweite: fc1_visibility km<br>\
UV-Index: fc1_uvIndex<br><br>\
<u><strong>Vorhersage für morgen:</strong></u><br><br>\
fc2_condition<br>\
Wolkenbedeckung: fc2_cloudCover %<br>\
Höchsttemperatur: fc2_high_c °C<br>\
Niederschlagswahrscheinlichkeit: fc2_precipProbability %<br>\
Niederschlagsintensität: fc2_precipIntensity mm/h<br>\
Sichtweite: fc2_visibility km<br>\
UV-Index: fc2_uvIndex<br><br>\
Stand: pubDate
Die Readings des neun Moduls sind aber nur noch folgende:
absHumidity 6.2
apiMaintainer Marko Oldenburg <fhemdevelopment@cooltux.net>
apiVersion v1.2.12-stable
apparentTemperature 2
cloudCover 95
code 26
condition Stark bewölkt
current_date_time Fr, 10 Feb 2023 14:31
dewPoint 3
dewpoint 3.7
humidity 85
icon cloudy
iconAPI cloudy
lastError
lat 53.644048
long 9.812770
ozone 277.5
precipIntensity 0.0051
precipProbability 4
pressure 1032
pubDate Fr, 10 Feb 2023 14:31
state T: 6 °C F: 85 % W: 22 km/h P: 1032 hPa
status ok
temp_c 6
temperature 6
timezone Europe/Berlin
uvIndex 1
validity up-to-date
visibility 16
wind 22
windGust 40
wind_condition Wind: WSW 22 km/h
wind_direction 244
wind_speed 22
Dir fehlt das Attribut forecast. Du kannst es gerne in Verbindung mit dem Attribut forecastLimit nehmen.
Moin CoolTux,
danke für deinen Tipp. Nach Angabe der Attribute "forecast hourly" und "forecastLimit 2" sowie Änderung der Readings von fc1... in hfc1... bzw fc2... in hfc2... funktioniert bei mir wieder alles wunschgemäß.
LG
Holger
Hallo,
jetzt habe ich mal ein paar Tage gewartet (gut, hatte auch keine Zeit ;) ), ob das Problem auch andere haben, hmmm, offenbar nicht?
Ich bin ja seit Anfang bei der neuen Struktur Weather etc. dabei.
Hat auch prima funktioniert :)
Seit dem Update am WE habe ich aber keine Anzeige von Temperaturen mehr per weblink (siehe Bild).
Das Bild ohne Temperaturwerte stammt von meinem Testsystem.
Hatte das Problem aber auch auf meinem Hautpsystem, bis ich einen Restore gefahren habe (anderes Bild), d.h. da geht es wieder/noch...
Hier das list vom Testsystem (wo es nicht mehr geht):
Internals:
API wundergroundAPI
APIKEY 12345...
APIOPTIONS stationId:XYZ
DEF API=wundergroundAPI,stationId:XYZ apikey=12345...
FUUID 63a57c7d-f33f-ff8d-179d-bca3aa07958429c9
FVERSION 59_Weather.pm:v2.2.22-s27146/2023-01-29
INTERVAL 3600
LANG de
MODEL wundergroundAPI
NAME Wunderground
NOTIFYDEV global
NR 184
NTFY_ORDER 50-Wunderground
STATE T: 1 °C F: 88 % W: 9 km/h P: 995 hPa
TYPE Weather
VERSION v2.2.22
eventCount 65
READINGS:
2023-02-15 12:24:38 apiMaintainer Julian Pawlowski (loredo)
2023-02-15 12:24:38 apiVersion v1.2.0
2023-02-15 12:24:38 cloudCover 40
2023-02-15 12:24:38 code 30
2023-02-15 12:24:38 codeExtend 3000
2023-02-15 12:24:38 condition Wolkig
2023-02-15 12:24:38 current_date_time Wed, 15 Feb 2023 12:24
2023-02-15 12:24:38 dewPoint 0
2023-02-15 12:24:38 fc1_cloudCover 40
2023-02-15 12:24:38 fc1_code 30
2023-02-15 12:24:38 fc1_codeExtend 3000
2023-02-15 12:24:38 fc1_condition Wolkig
2023-02-15 12:24:38 fc1_day_of_week Mittwoch
2023-02-15 12:24:38 fc1_high_c 8
2023-02-15 12:24:38 fc1_icon partly_cloudy
2023-02-15 12:24:38 fc1_iconAPI 30
2023-02-15 12:24:38 fc1_low_c -2
2023-02-15 12:24:38 fc1_moonPhase abnehmender Sichelmond
2023-02-15 12:24:38 fc1_moonPhaseCode WNC
2023-02-15 12:24:38 fc1_moonPhaseDay 24
2023-02-15 12:24:38 fc1_moonriseTime Wed, 15 Feb 2023 03:44
2023-02-15 12:24:38 fc1_moonsetTime Wed, 15 Feb 2023 11:22
2023-02-15 12:24:38 fc1_narrative Teilweise bedeckt. Höchsttemperaturen 7 bis 9C und Tiefsttemperaturen -4 bis -2C.
2023-02-15 12:24:38 fc1_precipProbability 0
2023-02-15 12:24:38 fc1_precipProbabilitySnow 0
2023-02-15 12:24:38 fc1_sunriseTime Wed, 15 Feb 2023 07:25
2023-02-15 12:24:38 fc1_sunsetTime Wed, 15 Feb 2023 17:34
2023-02-15 12:24:38 fc1_tempHigh 8
2023-02-15 12:24:38 fc1_tempLow -2
2023-02-15 12:24:38 fc1_uvIndex 1
2023-02-15 12:24:38 fc2_cloudCover 57
2023-02-15 12:24:38 fc2_code 30
2023-02-15 12:24:38 fc2_codeExtend 3000
2023-02-15 12:24:38 fc2_condition Wolkig
2023-02-15 12:24:38 fc2_day_of_week Donnerstag
2023-02-15 12:24:38 fc2_high_c 12
2023-02-15 12:24:38 fc2_icon partly_cloudy
2023-02-15 12:24:38 fc2_iconAPI 30
2023-02-15 12:24:38 fc2_low_c 5
2023-02-15 12:24:38 fc2_moonPhase abnehmender Sichelmond
2023-02-15 12:24:38 fc2_moonPhaseCode WNC
2023-02-15 12:24:38 fc2_moonPhaseDay 25
2023-02-15 12:24:38 fc2_moonriseTime Thu, 16 Feb 2023 05:00
2023-02-15 12:24:38 fc2_moonsetTime Thu, 16 Feb 2023 12:16
2023-02-15 12:24:38 fc2_narrative Teilweise bedeckt. Höchsttemperaturen 11 bis 13C und Tiefsttemperaturen 4 bis 6C.
2023-02-15 12:24:38 fc2_precipProbability 0.79
2023-02-15 12:24:38 fc2_precipProbabilitySnow 0
2023-02-15 12:24:38 fc2_sunriseTime Thu, 16 Feb 2023 07:24
2023-02-15 12:24:38 fc2_sunsetTime Thu, 16 Feb 2023 17:36
2023-02-15 12:24:38 fc2_tempHigh 12
2023-02-15 12:24:38 fc2_tempLow 5
2023-02-15 12:24:38 fc2_uvIndex 1
2023-02-15 12:24:38 fc3_cloudCover 98
2023-02-15 12:24:38 fc3_code 26
2023-02-15 12:24:38 fc3_codeExtend 2600
2023-02-15 12:24:38 fc3_condition Bedeckt
2023-02-15 12:24:38 fc3_day_of_week Freitag
2023-02-15 12:24:38 fc3_high_c 11
2023-02-15 12:24:38 fc3_icon cloudy
2023-02-15 12:24:38 fc3_iconAPI 26
2023-02-15 12:24:38 fc3_low_c 8
2023-02-15 12:24:38 fc3_moonPhase abnehmender Sichelmond
2023-02-15 12:24:38 fc3_moonPhaseCode WNC
2023-02-15 12:24:38 fc3_moonPhaseDay 26
2023-02-15 12:24:38 fc3_moonriseTime Fri, 17 Feb 2023 06:04
2023-02-15 12:24:38 fc3_moonsetTime Fri, 17 Feb 2023 13:27
2023-02-15 12:24:38 fc3_narrative Bedeckt. Höchsttemperaturen 10 bis 12C und Tiefsttemperaturen 7 bis 9C.
2023-02-15 12:24:38 fc3_precipProbability 0
2023-02-15 12:24:38 fc3_precipProbabilitySnow 0
2023-02-15 12:24:38 fc3_sunriseTime Fri, 17 Feb 2023 07:22
2023-02-15 12:24:38 fc3_sunsetTime Fri, 17 Feb 2023 17:38
2023-02-15 12:24:38 fc3_tempHigh 11
2023-02-15 12:24:38 fc3_tempLow 8
2023-02-15 12:24:38 fc3_uvIndex 1
2023-02-15 12:24:38 fc4_cloudCover 95
2023-02-15 12:24:38 fc4_code 11
2023-02-15 12:24:38 fc4_codeExtend 1201
2023-02-15 12:24:38 fc4_condition Leichter Regen
2023-02-15 12:24:38 fc4_day_of_week Samstag
2023-02-15 12:24:38 fc4_high_c 10
2023-02-15 12:24:38 fc4_icon chance_of_rain
2023-02-15 12:24:38 fc4_iconAPI 11
2023-02-15 12:24:38 fc4_low_c 4
2023-02-15 12:24:38 fc4_moonPhase abnehmender Sichelmond
2023-02-15 12:24:38 fc4_moonPhaseCode WNC
2023-02-15 12:24:38 fc4_moonPhaseDay 27
2023-02-15 12:24:38 fc4_moonriseTime Sat, 18 Feb 2023 06:52
2023-02-15 12:24:38 fc4_moonsetTime Sat, 18 Feb 2023 14:53
2023-02-15 12:24:38 fc4_narrative Leichter Regen. Höchsttemperaturen 9 bis 11C und Tiefsttemperaturen 3 bis 5C.
2023-02-15 12:24:38 fc4_precipProbability 5.8
2023-02-15 12:24:38 fc4_precipProbabilitySnow 0
2023-02-15 12:24:38 fc4_sunriseTime Sat, 18 Feb 2023 07:20
2023-02-15 12:24:38 fc4_sunsetTime Sat, 18 Feb 2023 17:39
2023-02-15 12:24:38 fc4_tempHigh 10
2023-02-15 12:24:38 fc4_tempLow 4
2023-02-15 12:24:38 fc4_uvIndex 1
2023-02-15 12:24:38 fc5_cloudCover 94
2023-02-15 12:24:38 fc5_code 11
2023-02-15 12:24:38 fc5_codeExtend 1100
2023-02-15 12:24:38 fc5_condition Schauer
2023-02-15 12:24:38 fc5_day_of_week Sonntag
2023-02-15 12:24:38 fc5_high_c 7
2023-02-15 12:24:38 fc5_icon chance_of_rain
2023-02-15 12:24:38 fc5_iconAPI 11
2023-02-15 12:24:38 fc5_low_c 0
2023-02-15 12:24:38 fc5_moonPhase abnehmender Sichelmond
2023-02-15 12:24:38 fc5_moonPhaseCode WNC
2023-02-15 12:24:38 fc5_moonPhaseDay 28
2023-02-15 12:24:38 fc5_moonriseTime Sun, 19 Feb 2023 07:26
2023-02-15 12:24:38 fc5_moonsetTime Sun, 19 Feb 2023 16:25
2023-02-15 12:24:38 fc5_narrative Schauer. Höchsttemperaturen 6 bis 8C und Tiefsttemperaturen -2 bis 0C.
2023-02-15 12:24:38 fc5_precipProbability 2.81
2023-02-15 12:24:38 fc5_precipProbabilitySnow 0
2023-02-15 12:24:38 fc5_sunriseTime Sun, 19 Feb 2023 07:18
2023-02-15 12:24:38 fc5_sunsetTime Sun, 19 Feb 2023 17:41
2023-02-15 12:24:38 fc5_tempHigh 7
2023-02-15 12:24:38 fc5_tempLow 0
2023-02-15 12:24:38 fc5_uvIndex 1
2023-02-15 12:24:38 heatIndex 1
2023-02-15 12:24:38 humidity 88
2023-02-15 12:24:38 icon partly_cloudy
2023-02-15 12:24:38 iconAPI 30
2023-02-15 12:24:38 lastError
2023-02-15 12:24:38 lat 49.12345
2023-02-15 12:24:38 long 10.12345
2023-02-11 20:54:56 precipProbability 0.05
2023-02-15 12:24:38 precipRate 0
2023-02-15 12:24:38 precipTotal 0
2023-02-15 12:24:38 pressure 995
2023-02-15 12:24:38 pubDate Wed, 15 Feb 2023 12:24
2023-02-15 12:24:38 pwsCountry DE
2023-02-15 12:24:38 pwsElevation 302.1
2023-02-15 12:24:38 pwsLat 49.12345
2023-02-15 12:24:38 pwsLon 11.12345
2023-02-15 12:24:38 pwsNeighborhood ABCD
2023-02-15 12:24:38 pwsQcStatus 1
2023-02-15 12:24:38 pwsSoftwareType EasyWeatherV1.6.4
2023-02-15 12:24:38 pwsStationID XYZ
2023-02-15 12:24:38 solarRadiation 252.4
2023-02-15 12:24:38 state T: 1 °C F: 88 % W: 9 km/h P: 995 hPa
2023-02-15 12:24:38 status ok
2023-02-15 12:24:38 temp_c 1
2023-02-15 12:24:38 temperature 1
2023-02-15 12:24:38 uvIndex 2
2023-02-15 12:24:38 validity up-to-date
2022-12-23 11:02:35 warnCount 0
2023-02-15 12:24:38 wind 9
2023-02-15 12:24:38 windGust 11
2023-02-15 12:24:38 wind_chill -1
2023-02-15 12:24:38 wind_condition Wind: N 9 km/h
2023-02-15 12:24:38 wind_direction 4
2023-02-15 12:24:38 wind_speed 9
fhem:
LOCATION 49.12345,10.12345
allowCache 1
interfaces temperature;humidity;wind
readings:
Attributes:
forecast daily
room Weather
Hier die dazu gehörigen Versionen:
Latest Revision: 27205
File Rev Last Change
fhem.pl 27110 2023-01-23 15:15:30Z rudolfkoenig
90_at.pm 25248 2021-11-21 10:29:01Z rudolfkoenig
98_autocreate.pm 23727 2021-02-12 20:31:37Z rudolfkoenig
98_cmdalias.pm 16300 2018-03-01 08:48:21Z rudolfkoenig
10_CUL_HM.pm 26934 2022-12-31 16:24:33Z martinp876
98_dummy.pm 25606 2022-02-01 10:43:57Z rudolfkoenig
91_eventTypes.pm 23471 2021-01-04 19:24:21Z rudolfkoenig
72_FB_CALLLIST.pm 25271 2021-11-28 09:40:15Z markusbloch
72_FB_CALLMONITOR.pm 27187 2023-02-06 09:05:38Z jowiemann
01_FHEMWEB.pm 27173 2023-02-03 13:32:47Z rudolfkoenig
92_FileLog.pm 26959 2023-01-04 12:56:01Z rudolfkoenig
No Id found for 98_FireTV.pm
98_freezemon.pm 25141 2021-10-28 19:13:56Z Adimarantis
98_help.pm 25013 2021-09-23 21:07:00Z betateilchen
98_HMinfo.pm 26935 2022-12-31 16:25:33Z martinp876
00_HMUARTLGW.pm 25203 2021-11-08 09:18:29Z mgernoth
98_HourCounter.pm 11307 2016-04-25 08:02:06Z rudolfkoenig
98_HTTPMOD.pm 27065 2023-01-15 17:33:44Z StefanStrobel
02_HTTPSRV.pm 20110 2019-09-05 17:30:20Z neubert
98_Installer.pm 20949 2020-01-12 09:53:11Z loredo
# $Id: 99_joUtils.pm 1.2 2015-01-02 Joachim Scharnagl $ #
98_JsonList2.pm 26701 2022-11-14 09:51:02Z rudolfkoenig
23_KOSTALPIKO.pm 15368 2017-10-31 19:00:55Z John
10_MQTT2_DEVICE.pm 26860 2022-12-16 08:13:49Z rudolfkoenig
00_MQTT2_SERVER.pm 26924 2022-12-29 14:35:15Z rudolfkoenig
91_notify.pm 25888 2022-03-27 10:22:58Z rudolfkoenig
42_npmjs.pm 20933 2020-01-10 12:27:41Z loredo
73_PRESENCE.pm 20782 2019-12-19 10:51:06Z markusbloch
59_PROPLANTA.pm 23449 2021-01-01 09:56:49Z tupol
33_readingsGroup.pm 23844 2021-02-27 19:43:24Z justme1968
98_rssFeed.pm 13080 2017-01-15 08:04:43Z Benni
36_Shelly.pm 26017 2022-05-02 07:04:23Z phenning
98_STOCKQUOTES.pm 12272 2016-10-04 16:15:45Z vbs2
99_SUNRISE_EL.pm 24249 2021-04-14 05:45:49Z rudolfkoenig
98_SVG.pm 26539 2022-10-15 10:44:44Z rudolfkoenig
98_telnet.pm 25754 2022-02-27 16:49:52Z rudolfkoenig
# $Id: 70_TvHeadend.pm 2021-10-11 Beta-User$
74_Unifi.pm 23500 2021-01-09 15:14:50Z wuehler
74_UnifiClient.pm 19989 2019-08-12 18:25:21Z wuehler
74_UnifiSwitch.pm 23500 2021-01-09 15:14:50Z wuehler
98_update.pm 26986 2023-01-06 17:15:47Z rudolfkoenig
99_Utils.pm 24128 2021-04-02 16:29:11Z rudolfkoenig
98_version.pm 26611 2022-10-28 16:32:29Z betateilchen
59_Weather.pm 27146 2023-01-29 15:27:02Z CoolTux
98_weblink.pm 26988 2023-01-07 09:18:42Z rudolfkoenig
AttrTemplate.pm 27145 2023-01-29 11:48:19Z rudolfkoenig
Blocking.pm 23268 2020-12-01 11:48:48Z rudolfkoenig
Color.pm 20813 2019-12-22 18:42:10Z justme1968
DevIo.pm 26055 2022-05-17 20:12:20Z rudolfkoenig
FritzBoxUtils.pm 23727 2021-02-12 20:31:37Z rudolfkoenig
GPUtils.pm 19666 2019-06-20 11:17:29Z CoolTux
HMConfig.pm 25160 2021-10-30 17:38:52Z martinp876
HttpUtils.pm 27022 2023-01-11 07:51:42Z rudolfkoenig
Meta.pm 26889 2022-12-23 15:04:11Z CoolTux
RTypes.pm 10476 2016-01-12 21:03:33Z borisneubert
SetExtensions.pm 25286 2021-12-03 10:16:56Z rudolfkoenig
SubProcess.pm 14334 2017-05-20 23:11:06Z neubert
TcpServerUtils.pm 25866 2022-03-21 09:01:16Z rudolfkoenig
TimeSeries.pm 27005 2023-01-08 18:18:08Z jensb
fhemweb.js 27117 2023-01-25 09:13:32Z rudolfkoenig
fhemweb_readingsGroup.js 15189 2017-10-03 17:53:27Z justme1968
hm.js 2008 2021-03-01 12:00:00Z frank
update check meldet bzgl. Weather nichts Neueres...
Hier das list wo es noch/wieder (immer noch) geht, also das Hauptsystem mit dem Restore (mit aktuellem Stand ist es dort genauso wie auf dem Testsystem):
Internals:
API wundergroundAPI
APIKEY 12345...
APIOPTIONS stationId:XYZ
DEF API=wundergroundAPI,stationId:XYZ apikey=12345...
FUUID 63d6b8e6-f33f-753d-44b3-3b6de830b9ddcd13
FVERSION 59_Weather.pm:v2.2.21-s27009/2023-01-08
INTERVAL 3600
LANG de
MODEL wundergroundAPI
NAME Wunderground
NOTIFYDEV global
NR 2132
NTFY_ORDER 50-Wunderground
STATE T: 2 °C F: 87 % W: 7 km/h P: 995 hPa
TYPE Weather
VERSION v2.2.21
eventCount 64
READINGS:
2023-02-15 12:51:47 apiMaintainer Julian Pawlowski (loredo)
2023-02-15 12:51:47 apiVersion v1.2.0
2023-02-15 12:51:47 cloudCover 32
2023-02-15 12:51:47 code 30
2023-02-15 12:51:47 codeExtend 3000
2023-02-15 12:51:47 condition Wolkig
2023-02-15 12:51:47 current_date_time Wed, 15 Feb 2023 12:51
2023-02-15 12:51:47 dewPoint 0
2023-02-15 12:51:47 fc1_cloudCover 32
2023-02-15 12:51:47 fc1_code 30
2023-02-15 12:51:47 fc1_codeExtend 3000
2023-02-15 12:51:47 fc1_condition Wolkig
2023-02-15 12:51:47 fc1_day_of_week Mittwoch
2023-02-15 12:51:47 fc1_high_c 8
2023-02-15 12:51:47 fc1_icon partly_cloudy
2023-02-15 12:51:47 fc1_iconAPI 30
2023-02-15 12:51:47 fc1_low_c -2
2023-02-15 12:51:47 fc1_moonPhase abnehmender Sichelmond
2023-02-15 12:51:47 fc1_moonPhaseCode WNC
2023-02-15 12:51:47 fc1_moonPhaseDay 24
2023-02-15 12:51:47 fc1_moonriseTime Wed, 15 Feb 2023 03:44
2023-02-15 12:51:47 fc1_moonsetTime Wed, 15 Feb 2023 11:22
2023-02-15 12:51:47 fc1_narrative Teilweise bedeckt. Höchsttemperaturen 7 bis 9C und Tiefsttemperaturen -4 bis -2C.
2023-02-15 12:51:47 fc1_precipProbability 0
2023-02-15 12:51:47 fc1_precipProbabilitySnow 0
2023-02-15 12:51:47 fc1_sunriseTime Wed, 15 Feb 2023 07:25
2023-02-15 12:51:47 fc1_sunsetTime Wed, 15 Feb 2023 17:34
2023-02-15 12:51:47 fc1_tempHigh 8
2023-02-15 12:51:47 fc1_tempLow -2
2023-02-15 12:51:47 fc1_uvIndex 1
2023-02-15 12:51:47 fc2_cloudCover 58
2023-02-15 12:51:47 fc2_code 30
2023-02-15 12:51:47 fc2_codeExtend 3000
2023-02-15 12:51:47 fc2_condition Wolkig
2023-02-15 12:51:47 fc2_day_of_week Donnerstag
2023-02-15 12:51:47 fc2_high_c 12
2023-02-15 12:51:47 fc2_icon partly_cloudy
2023-02-15 12:51:47 fc2_iconAPI 30
2023-02-15 12:51:47 fc2_low_c 5
2023-02-15 12:51:47 fc2_moonPhase abnehmender Sichelmond
2023-02-15 12:51:47 fc2_moonPhaseCode WNC
2023-02-15 12:51:47 fc2_moonPhaseDay 25
2023-02-15 12:51:47 fc2_moonriseTime Thu, 16 Feb 2023 05:00
2023-02-15 12:51:47 fc2_moonsetTime Thu, 16 Feb 2023 12:16
2023-02-15 12:51:47 fc2_narrative Teilweise bedeckt. Höchsttemperaturen 11 bis 13C und Tiefsttemperaturen 4 bis 6C.
2023-02-15 12:51:47 fc2_precipProbability 0.8
2023-02-15 12:51:47 fc2_precipProbabilitySnow 0
2023-02-15 12:51:47 fc2_sunriseTime Thu, 16 Feb 2023 07:24
2023-02-15 12:51:47 fc2_sunsetTime Thu, 16 Feb 2023 17:36
2023-02-15 12:51:47 fc2_tempHigh 12
2023-02-15 12:51:47 fc2_tempLow 5
2023-02-15 12:51:47 fc2_uvIndex 1
2023-02-15 12:51:47 fc3_cloudCover 98
2023-02-15 12:51:47 fc3_code 26
2023-02-15 12:51:47 fc3_codeExtend 2600
2023-02-15 12:51:47 fc3_condition Bedeckt
2023-02-15 12:51:47 fc3_day_of_week Freitag
2023-02-15 12:51:47 fc3_high_c 11
2023-02-15 12:51:47 fc3_icon cloudy
2023-02-15 12:51:47 fc3_iconAPI 26
2023-02-15 12:51:47 fc3_low_c 8
2023-02-15 12:51:47 fc3_moonPhase abnehmender Sichelmond
2023-02-15 12:51:47 fc3_moonPhaseCode WNC
2023-02-15 12:51:47 fc3_moonPhaseDay 26
2023-02-15 12:51:47 fc3_moonriseTime Fri, 17 Feb 2023 06:04
2023-02-15 12:51:47 fc3_moonsetTime Fri, 17 Feb 2023 13:27
2023-02-15 12:51:47 fc3_narrative Bedeckt. Höchsttemperaturen 10 bis 12C und Tiefsttemperaturen 7 bis 9C.
2023-02-15 12:51:47 fc3_precipProbability 0
2023-02-15 12:51:47 fc3_precipProbabilitySnow 0
2023-02-15 12:51:47 fc3_sunriseTime Fri, 17 Feb 2023 07:22
2023-02-15 12:51:47 fc3_sunsetTime Fri, 17 Feb 2023 17:37
2023-02-15 12:51:47 fc3_tempHigh 11
2023-02-15 12:51:47 fc3_tempLow 8
2023-02-15 12:51:47 fc3_uvIndex 1
2023-02-15 12:51:47 fc4_cloudCover 95
2023-02-15 12:51:47 fc4_code 11
2023-02-15 12:51:47 fc4_codeExtend 1201
2023-02-15 12:51:47 fc4_condition Leichter Regen
2023-02-15 12:51:47 fc4_day_of_week Samstag
2023-02-15 12:51:47 fc4_high_c 10
2023-02-15 12:51:47 fc4_icon chance_of_rain
2023-02-15 12:51:47 fc4_iconAPI 11
2023-02-15 12:51:47 fc4_low_c 4
2023-02-15 12:51:47 fc4_moonPhase abnehmender Sichelmond
2023-02-15 12:51:47 fc4_moonPhaseCode WNC
2023-02-15 12:51:47 fc4_moonPhaseDay 27
2023-02-15 12:51:47 fc4_moonriseTime Sat, 18 Feb 2023 06:51
2023-02-15 12:51:47 fc4_moonsetTime Sat, 18 Feb 2023 14:53
2023-02-15 12:51:47 fc4_narrative Leichter Regen. Höchsttemperaturen 9 bis 11C und Tiefsttemperaturen 3 bis 5C.
2023-02-15 12:51:47 fc4_precipProbability 5.83
2023-02-15 12:51:47 fc4_precipProbabilitySnow 0
2023-02-15 12:51:47 fc4_sunriseTime Sat, 18 Feb 2023 07:20
2023-02-15 12:51:47 fc4_sunsetTime Sat, 18 Feb 2023 17:39
2023-02-15 12:51:47 fc4_tempHigh 10
2023-02-15 12:51:47 fc4_tempLow 4
2023-02-15 12:51:47 fc4_uvIndex 1
2023-02-15 12:51:47 fc5_cloudCover 94
2023-02-15 12:51:47 fc5_code 11
2023-02-15 12:51:47 fc5_codeExtend 1100
2023-02-15 12:51:47 fc5_condition Schauer
2023-02-15 12:51:47 fc5_day_of_week Sonntag
2023-02-15 12:51:47 fc5_high_c 7
2023-02-15 12:51:47 fc5_icon chance_of_rain
2023-02-15 12:51:47 fc5_iconAPI 11
2023-02-15 12:51:47 fc5_low_c 0
2023-02-15 12:51:47 fc5_moonPhase abnehmender Sichelmond
2023-02-15 12:51:47 fc5_moonPhaseCode WNC
2023-02-15 12:51:47 fc5_moonPhaseDay 28
2023-02-15 12:51:47 fc5_moonriseTime Sun, 19 Feb 2023 07:25
2023-02-15 12:51:47 fc5_moonsetTime Sun, 19 Feb 2023 16:24
2023-02-15 12:51:47 fc5_narrative Schauer. Höchsttemperaturen 6 bis 8C und Tiefsttemperaturen -2 bis 0C.
2023-02-15 12:51:47 fc5_precipProbability 2.87
2023-02-15 12:51:47 fc5_precipProbabilitySnow 0
2023-02-15 12:51:47 fc5_sunriseTime Sun, 19 Feb 2023 07:18
2023-02-15 12:51:47 fc5_sunsetTime Sun, 19 Feb 2023 17:41
2023-02-15 12:51:47 fc5_tempHigh 7
2023-02-15 12:51:47 fc5_tempLow 0
2023-02-15 12:51:47 fc5_uvIndex 1
2023-02-15 12:51:47 heatIndex 1.8
2023-02-15 12:51:47 humidity 87
2023-02-15 12:51:47 icon partly_cloudy
2023-02-15 12:51:47 iconAPI 30
2023-02-15 12:51:47 lastError
2023-02-15 12:51:47 lat 49.12345
2023-02-15 12:51:47 long 10.12345
2023-02-11 20:25:57 precipProbability 0.09
2023-02-15 12:51:47 precipRate 0
2023-02-15 12:51:47 precipTotal 0
2023-02-15 12:51:47 pressure 995
2023-02-15 12:51:47 pubDate Wed, 15 Feb 2023 12:51
2023-02-15 12:51:47 pwsCountry DE
2023-02-15 12:51:47 pwsElevation 302.1
2023-02-15 12:51:47 pwsLat 49.12345
2023-02-15 12:51:47 pwsLon 11.12345
2023-02-15 12:51:47 pwsNeighborhood ABCD
2023-02-15 12:51:47 pwsQcStatus 1
2023-02-15 12:51:47 pwsSoftwareType EasyWeatherV1.6.4
2023-02-15 12:51:47 pwsStationID XYZ
2023-02-15 12:51:47 solarRadiation 273.3
2023-02-15 12:51:47 state T: 2 °C F: 87 % W: 7 km/h P: 995 hPa
2023-02-15 12:51:47 status ok
2023-02-15 12:51:47 temp_c 2
2023-02-15 12:51:47 temperature 2
2023-02-15 12:51:47 uvIndex 2
2023-02-15 12:51:47 validity up-to-date
2023-02-15 12:51:47 wind 7
2023-02-15 12:51:47 windGust 7
2023-02-15 12:51:47 wind_chill 0
2023-02-15 12:51:47 wind_condition Wind: NO 7 km/h
2023-02-15 12:51:47 wind_direction 46
2023-02-15 12:51:47 wind_speed 7
fhem:
LOCATION 49.12345,10.12345
allowCache 1
interfaces temperature;humidity;wind
Attributes:
event-on-change-reading .*
forecast daily
group Wetter
room System
inkl. version:
Latest Revision: 27205
File Rev Last Change
fhem.pl 27110 2023-01-23 15:15:30Z rudolfkoenig
39_alexa.pm 23820 2021-02-24 19:29:15Z justme1968
96_allowed.pm 26004 2022-04-29 19:06:05Z rudolfkoenig
42_AptToDate.pm 19639 2019-06-18 13:43:31Z CoolTux
95_Astro.pm 25198 2021-11-07 15:42:54Z phenning
90_at.pm 25248 2021-11-21 10:29:01Z rudolfkoenig
98_autocreate.pm 23727 2021-02-12 20:31:37Z rudolfkoenig
98_cmdalias.pm 16300 2018-03-01 08:48:21Z rudolfkoenig
10_CUL_HM.pm 26934 2022-12-31 16:24:33Z martinp876
70_DENON_AVR.pm 25787 2022-03-06 17:06:35Z delmar
98_dewpoint.pm 18846 2019-03-10 11:45:58Z hotbso
98_DOIFtools.pm 22610 2020-08-15 17:21:34Z Ellert
98_dummy.pm 25606 2022-02-01 10:43:57Z rudolfkoenig
37_echodevice.pm 26735 2022-11-22 11:48:55Z michael.winkler
10_EnOcean.pm 26632 2022-10-31 15:00:22Z klaus.schauer
91_eventTypes.pm 23471 2021-01-04 19:24:21Z rudolfkoenig
37_fakeRoku.pm 20309 2019-10-04 09:16:41Z justme1968
72_FB_CALLLIST.pm 25271 2021-11-28 09:40:15Z markusbloch
72_FB_CALLMONITOR.pm 27187 2023-02-06 09:05:38Z jowiemann
01_FHEMWEB.pm 27173 2023-02-03 13:32:47Z rudolfkoenig
92_FileLog.pm 26959 2023-01-04 12:56:01Z rudolfkoenig
98_freezemon.pm 25141 2021-10-28 19:13:56Z Adimarantis
37_harmony.pm 19170 2019-04-13 12:21:29Z justme1968
98_help.pm 25013 2021-09-23 21:07:00Z betateilchen
98_HMinfo.pm 26935 2022-12-31 16:25:33Z martinp876
00_HMLAN.pm 25204 2021-11-09 05:41:42Z martinp876
95_holiday.pm 25187 2021-11-06 09:54:35Z rudolfkoenig
98_HTTPMOD.pm 27065 2023-01-15 17:33:44Z StefanStrobel
02_HTTPSRV.pm 20110 2019-09-05 17:30:20Z neubert
30_HUEBridge.pm 26438 2022-09-22 06:40:39Z justme1968
31_HUEDevice.pm 26730 2022-11-21 17:28:03Z justme1968
# $Id: 99_joUtils.pm 1.2 2015-01-02 Joachim Scharnagl $ #
98_JsonList2.pm 26701 2022-11-14 09:51:02Z rudolfkoenig
70_KODI.pm 25898 2022-03-30 21:02:34Z vbs
31_LightScene.pm 25909 2022-04-01 15:52:10Z justme1968
10_MQTT2_DEVICE.pm 26860 2022-12-16 08:13:49Z rudolfkoenig
00_MQTT2_SERVER.pm 26924 2022-12-29 14:35:15Z rudolfkoenig
91_notify.pm 25888 2022-03-27 10:22:58Z rudolfkoenig
37_NotifyAndroidTV.pm 21245 2020-02-22 10:02:36Z justme1968
42_npmjs.pm 20933 2020-01-10 12:27:41Z loredo
73_PRESENCE.pm 20782 2019-12-19 10:51:06Z markusbloch
33_readingsGroup.pm 23844 2021-02-27 19:43:24Z justme1968
33_readingsProxy.pm 16299 2018-03-01 08:06:55Z justme1968
44_ROLLO.pm 18436 2019-01-27 20:46:04Z KernSani
36_Shelly.pm 26017 2022-05-02 07:04:23Z phenning
42_SMARTMON.pm 26656 2022-11-05 19:10:11Z hexenmeister
32_speedtest.pm 23867 2021-03-01 08:23:09Z justme1968
98_statistics.pm 26211 2022-07-12 05:25:06Z Beta-User
98_structure.pm 27133 2023-01-27 18:26:46Z rudolfkoenig
99_SUNRISE_EL.pm 24249 2021-04-14 05:45:49Z rudolfkoenig
98_SVG.pm 26539 2022-10-15 10:44:44Z rudolfkoenig
00_TCM.pm 26092 2022-05-26 08:58:03Z klaus.schauer
50_TelegramBot.pm 24867 2021-08-23 10:23:15Z viegener
98_telnet.pm 25754 2022-02-27 16:49:52Z rudolfkoenig
98_TRAFFIC.pm 16436 2018-03-18 16:05:13Z jmike
99_Utils.pm 24128 2021-04-02 16:29:11Z rudolfkoenig
77_UWZ.pm 25306 2021-12-06 05:27:48Z CoolTux
98_version.pm 26611 2022-10-28 16:32:29Z betateilchen
59_Weather.pm 27009 2023-01-08 21:07:08Z CoolTux
98_weblink.pm 26988 2023-01-07 09:18:42Z rudolfkoenig
74_XiaomiBTLESens.pm 25514 2022-01-20 15:44:31Z CoolTux
72_XiaomiDevice.pm 23021 2020-10-25 08:38:27Z moises
10_ZWave.pm 27158 2023-02-01 15:57:54Z rudolfkoenig
00_ZWDongle.pm 26654 2022-11-05 15:31:52Z rudolfkoenig
AttrTemplate.pm 27145 2023-01-29 11:48:19Z rudolfkoenig
Blocking.pm 23268 2020-12-01 11:48:48Z rudolfkoenig
Color.pm 20813 2019-12-22 18:42:10Z justme1968
CoProcess.pm 24043 2021-03-21 16:21:46Z justme1968
DevIo.pm 26055 2022-05-17 20:12:20Z rudolfkoenig
FritzBoxUtils.pm 23727 2021-02-12 20:31:37Z rudolfkoenig
GPUtils.pm 19666 2019-06-20 11:17:29Z CoolTux
HMConfig.pm 25160 2021-10-30 17:38:52Z martinp876
HttpUtils.pm 27022 2023-01-11 07:51:42Z rudolfkoenig
Info.pm 28 2008-11-09 01:08:44Z dsully
Meta.pm 26889 2022-12-23 15:04:11Z CoolTux
RTypes.pm 10476 2016-01-12 21:03:33Z borisneubert
SetExtensions.pm 25286 2021-12-03 10:16:56Z rudolfkoenig
SubProcess.pm 14334 2017-05-20 23:11:06Z neubert
TcpServerUtils.pm 25866 2022-03-21 09:01:16Z rudolfkoenig
UConv.pm 21159 2020-02-09 14:04:27Z loredo
ZWLib.pm 17186 2018-08-20 20:10:55Z rudolfkoenig
fhemweb.js 27117 2023-01-25 09:13:32Z rudolfkoenig
fhemweb_readingsGroup.js 15189 2017-10-03 17:53:27Z justme1968
Auf meinem Testsystem habe ich nur Wunderground.
Auf meinem Hauptsystem habe ich Wunderground und DarkSky und bei beiden sind keine Temperaturwerte bei aktuellem Stand (jetzt mit Restore schon).
Gruß, Joachim
Ich denke ich weiß was das Problem ist. Es fehlen Readings denke ich. Ich komme aber aktuell nicht dazu es zu reparieren.
Für mich kein Problem.
Danke für's Kucken/Finden!
Wenn du noch was brauchst oder ich was tun kann, einfach melden...
Gruß, Joachim
Heute das erste Mal im Log gesehen, Meldung kommt 1* nach shutdown/restart.
PERL WARNING: Argument "3600," isn't numeric in addition (+) at lib/FHEM/Core/Weather.pm line 609.
Version: 59_Weather.pm:v2.2.22-s27146/2023-01-29
Meldung kommt schon länger, bzw. seit früheren Versionen.
Läuft aber alles, soweit ich das sehe.
Gefunden. Lag an der Def, genauer am Blank hinter 3600
API=OpenWeatherMapAPI,cachemaxage:600,interval=3600,apik
Zitat von: isy am 16 Februar 2023, 13:48:50
Heute das erste Mal im Log gesehen, Meldung kommt 1* nach shutdown/restart.
PERL WARNING: Argument "3600," isn't numeric in addition (+) at lib/FHEM/Core/Weather.pm line 609.[/code
Version: 59_Weather.pm:v2.2.22-s27146/2023-01-29
Meldung kommt schon länger, bzw. seit früheren Versionen.
Läuft aber alles, soweit ich das sehe.
Da scheint Dein define kaputt zu sein. Das ist die Intervall Angabe. Da ist ein , inter 3600
Da warst du schneller :)
Hallo,
ich habe auch das Problem, dass ich mit OpenWeatherMapAPI keine forecasts bekomme (mit wundergroundAPI bekomme ich welche, aber es fehlen die Niederschlagsmengen).
Perlmodul ist installiert:
# apt list | grep readonly
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libreadonly-perl/stable,now 2.050-1 all [installed]
libreadonly-xs-perl/stable 1.05-1+b5 armhf
hab heute ein update gemacht:
Latest Revision: 27397
File Rev Last Change
fhem.pl 27302 2023-03-05 17:57:23Z fhemupdate
....
59_Weather.pm 27146 2023-01-29 15:27:02Z CoolTux
....
die Attribute forecast sind auch gesetzt:
Internals:
API OpenWeatherMapAPI
APIKEY xxxxxxxxxxxxxxxxx
APIOPTIONS cachemaxage:1200
DEF API=OpenWeatherMapAPI,cachemaxage:1200 apikey=xxxxxxxxxxx interval=3600 lang=de
FUUID 642dab90-f33f-2a7c-1dfc-6aeaaa4cd1bf73b2
FVERSION 59_Weather.pm:v2.2.22-s27146/2023-01-29
INTERVAL 3600
LANG de
MODEL OpenWeatherMapAPI
NAME WX
NOTIFYDEV global
NR 1867
NTFY_ORDER 50-WX
STATE T: 10 °C F: 25 % W: 17 km/h P: 1015 hPa
TYPE Weather
VERSION v2.2.22
eventCount 1
READINGS:
2023-04-06 19:05:34 apiMaintainer Marko Oldenburg <fhemdevelopment@cooltux.net>
2023-04-06 19:05:34 apiVersion v3.2.6-stable
2023-04-06 18:31:21 city Fernitz
2023-04-06 19:05:34 cloudCover 20
2023-04-06 19:05:34 code 30
2023-04-06 19:05:34 condition Ein paar Wolken
2023-04-06 18:31:21 country AT
2023-04-06 19:05:34 current_date_time Thu, 6 Apr 2023 19:05
2023-04-06 19:05:34 high_c 11
2023-04-06 19:05:34 humidity 25
2023-04-06 19:05:34 icon partly_cloudy
2023-04-06 19:05:34 iconAPI 02d
2023-04-06 19:05:34 lastError
2023-04-06 19:05:34 lat 46.958
2023-04-06 19:05:34 long 15.524
2023-04-06 19:05:34 low_c 5
2023-04-06 19:05:34 pressure 1015
2023-04-06 19:05:34 pubDate Thu, 6 Apr 2023 18:58
2023-04-06 19:05:34 state T: 10 °C F: 25 % W: 17 km/h P: 1015 hPa
2023-04-06 19:05:34 status ok
2023-04-06 19:05:34 sunriseTime Thu, 6 Apr 2023 06:28
2023-04-06 19:05:34 sunsetTime Thu, 6 Apr 2023 19:32
2023-04-06 19:05:34 tempFeelsLike_c 8
2023-04-06 19:05:34 tempHigh 11
2023-04-06 19:05:34 tempLow 5
2023-04-06 19:05:34 temp_c 10
2023-04-06 19:05:34 temperature 10
2023-04-06 19:05:34 validity up-to-date
2023-04-06 19:05:34 visibility 10000
2023-04-06 19:05:34 wind 17
2023-04-06 19:05:34 wind_condition Wind: NNW 17 km/h
2023-04-06 19:05:34 wind_direction 330
2023-04-06 19:02:47 wind_gust 26
2023-04-06 19:05:34 wind_speed 17
fhem:
LOCATION 46.988,15.574
allowCache 1
interfaces temperature;humidity;wind
readings:
Attributes:
comment apikeys
API=DarkSkyAPI,cachemaxage:1200 apikey=xxxxxxx interval=3600 language=de
API=wundergroundAPI,cachemaxage:1200 apikey=xxxxxx interval=3600 language=de
API=OpenWeatherMapAPI,cachemaxage:1200 apikey=xxxxxxxxx interval=3600 language=de
event-on-change-reading pubDate
forecast daily
forecastLimit 2
group Wetter
icon it_internet
room Wetter
was mache ich falsch? kann mir bitte wer einen Tipp geben?
danke
Didi
Stell mal forecast auf stündlich und das Limit auf 15
bei forecast hourly und forecastLimit 15 erhalte ich die hfc*-readings
die fc*-readings fehlen leider
Zitat von: didi-fritz am 07 April 2023, 17:51:50die fc*-readings fehlen leider
Das ist bei mir leider auch so nach Umstellung von DarkSkyAPI auf OpenWeatherMapAPI.
Evtl. findet Marko ja das Problem.
Gruß
Dan
Ist es dasselbe Problem wie hier: https://forum.fhem.de/index.php?topic=95823.msg1269768#msg1269768
Bzw.
https://forum.fhem.de/index.php?topic=95823.msg1269765#msg1269765
Gruß, Joachim
Meines Erachtens ist das kein Problem vom Modul sondern die API liefert in dieser 2.5 Version nur stündlichen Forecast alle 3 Stunden auf 5 Tagebasis oder so.
Mit der Api 3 erhalte ich bzgl. Regenwahrscheinlichkeit nur die Niederschlagsmenge in mm (reading fcX_rain) aber nicht die eigentliche Wahrscheinlichkeit in Prozent.
geliefert wird also nur die "precipitation" aber es fehlt "probability of precipitation".
Scheinbar kommt keine regenwahrwcheiichkeit mehr über die api. Das ist sehr schade. Nur noch die Niederschlagmenge in mm/h.
Oder gibt es noch eine andere Möglichkeit?
ich habe mir in meiner 99_myUtils.pm eine Funktion "calcWeather" geschrieben, die aus den 3-stündlichen hfc*-daten von Version 2.5 versucht, daily-daten (fc*) zu "errechnen"...
sub calcWeather
{
my ($w, $rest) = @_;
#Log 2, "calcWeather(\"$w\")";
my $debug="";
my $hfcCnt=0;
my $fcCnt=0;
my $Dcnt=0;
my $Dday="init";
my $Ddate="";
my $Dcode="";
my $Dcondition="";
my $Dpressure="";
my $Dhumidity=0;
my $DcloudCover=0;
my $Drain=0;
my $Dhigh_c=0;
my $Dlow_c=0;
my $Dicon="";
my $DiconAPI="";
my $Dwind=0;
my $Dwind_gust=0;
my $p1=0;
my $p2=0;
my %cnt_code;
my %cnt_condition;
my %cnt_icon;
my %cnt_iconAPI;
#my $pubDate=ReadingsVal($w, "hfc${hfcCnt}_pubDate",0);
#my $d=substr($pubDate,0,3);
my $max_hfcCnt =40;
for ($hfcCnt=1; $hfcCnt<=$max_hfcCnt+1; $hfcCnt++)
{
my $pubDate =ReadingsVal($w, "hfc${hfcCnt}_pubDate","None");
next if $pubDate eq "None" && $hfcCnt <= $max_hfcCnt; # beim letzten trotzdem durchlaufen
my $code =ReadingsVal($w, "hfc${hfcCnt}_code",0);
my $condition =ReadingsVal($w, "hfc${hfcCnt}_condition",0);
my $pressure =ReadingsVal($w, "hfc${hfcCnt}_pressure",0);
my $rain =ReadingsVal($w, "hfc${hfcCnt}_rain3h",0);
my $cloudCover=ReadingsVal($w, "hfc${hfcCnt}_cloudCover",0);
my $humidity =ReadingsVal($w, "hfc${hfcCnt}_humidity",0);
my $icon =ReadingsVal($w, "hfc${hfcCnt}_icon",0);
my $iconAPI =ReadingsVal($w, "hfc${hfcCnt}_iconAPI",0);
$iconAPI =~ s/n/d/; # nur tagesicon
my $high_c =ReadingsVal($w, "hfc${hfcCnt}_high_c",0);
my $low_c =ReadingsVal($w, "hfc${hfcCnt}_low_c",0);
my $wind =ReadingsVal($w, "hfc${hfcCnt}_wind",0);
my $wind_gust =ReadingsVal($w, "hfc${hfcCnt}_wind_gust",0);
my $day =substr($pubDate,0,3);
my $date=substr($pubDate,5);
if ( $day ne $Dday || $hfcCnt > $max_hfcCnt )
{
if ($fcCnt > 0)
{
$Dpressure=int($Dpressure/$Dcnt);
$Dhumidity=int($Dhumidity/$Dcnt);
$DcloudCover=int($DcloudCover/$Dcnt);
my $m=0; my $v="";
for my $y (keys %cnt_code) {
if ( $cnt_code{$y} > $m )
{ $m=$cnt_code{$y}; $v=$y; }
}
$Dcode=$v;
#$debug .= "$Dday $Dcode=$m # ";
$m=0; $v="";
for my $y (keys %cnt_condition) {
if ( $cnt_condition{$y} > $m )
{ $m=$cnt_condition{$y}; $v=$y; }
}
$Dcondition=$v;
#$debug .= "$Dday $Dcondition=$m # \n";
$m=0; $v="";
for my $y (keys %cnt_icon) {
if ( $cnt_icon{$y} > $m )
{ $m=$cnt_icon{$y}; $v=$y; }
}
$Dicon=$v;
$m=0; $v="";
for my $y (keys %cnt_iconAPI) {
if ( $cnt_iconAPI{$y} > $m )
{ $m=$cnt_iconAPI{$y}; $v=$y; }
}
$DiconAPI=$v;
$Ddate =~ s/ \d\d:\d\d//;
fhem( "setreading $w fc${fcCnt}_high_c $Dhigh_c; setreading $w fc${fcCnt}_low_c $Dlow_c; setreading $w fc${fcCnt}_icon $Dicon; setreading $w fc${fcCnt}_iconAPI $DiconAPI; setreading $w fc${fcCnt}_code $Dcode; setreading $w fc${fcCnt}_rain $Drain; ");
fhem( "setreading $w fc${fcCnt}_condition $Dcondition; setreading $w fc${fcCnt}_date $Ddate; setreading $w fc${fcCnt}_day_of_week $Dday; setreading $w fc${fcCnt}_pressure $Dpressure; ");
fhem( "setreading $w fc${fcCnt}_wind $Dwind; setreading $w fc${fcCnt}_wind_gust $Dwind_gust; setreading $w fc${fcCnt}_cloudCover $DcloudCover; setreading $w fc${fcCnt}_humidity $Dhumidity; ");
}
$fcCnt++;
$Dcnt=1;
%cnt_code=();
%cnt_condition=();
%cnt_icon=();
%cnt_iconAPI=();
$Dday =$day;
$Ddate =$date;
# # #
$Dhigh_c =$high_c;
$Dlow_c =$low_c;
$Dwind_gust =$wind_gust;
$Dwind =$wind;
#
$Drain =0;
$Dhumidity =0;
$DcloudCover=0;
$Dpressure =0;
}else{
$Dcnt ++;
# # #
$Dhigh_c = $high_c if ( $high_c > $Dhigh_c );
$Dlow_c = $low_c if ( $low_c < $Dlow_c );
$Dwind_gust = $wind_gust if ( $wind_gust > $Dwind_gust );
$Dwind = $wind if ( $wind > $Dwind );
}
$Drain +=$rain;
$Dhumidity +=$humidity;
$DcloudCover+=$cloudCover;
$Dpressure +=$pressure;
my $gewichtung=1;
$gewichtung = 1.25 if ( $date =~ / 1[0123]:\d\d/ ); # mehr einfluss mittags
$gewichtung = 0.55 if ( $date =~ / (0[0123]|2[23]):\d\d/ ); # kaum einfluss in der nacht
$gewichtung = 0.75 if ( $date =~ / (0[45]|2[01]):\d\d/ ); # weniger einfluss in der frueh/abend
#$debug .= "$date $gewichtung # ";
$cnt_code{$code} += $gewichtung;
$cnt_condition{$condition} += $gewichtung;
$cnt_icon{$icon} += $gewichtung;
$cnt_iconAPI{$iconAPI} += $gewichtung;
# drucktrend 24h
$p1=$pressure if ($hfcCnt==1);
$p2=$pressure if ($hfcCnt==9);
}
my $Dp= $p2 - $p1;
my $pTxt="";
if ( $Dp > 24 )
{ $pTxt="stark steigend"; }
elsif ( $Dp > 6 )
{ $pTxt="steigend"; }
elsif ( $Dp > -6 )
{ $pTxt="gleichbleibend"; }
elsif ( $Dp > -24 )
{ $pTxt="fallend"; }
else
{ $pTxt="stark fallend"; }
fhem( "setreading $w pressure_trend_txt $pTxt ");
return($debug);
}
die Funktion triggere ich mit einem notify
Internals:
DEF WetterVorschau:pubDate.* { calcWeather($NAME) }
FUUID 5c435e5e-f33f-2a7c-40a7-7e6881c2ed2fa3a4
NAME n_WetterVorschau
NOTIFYDEV WetterVorschau
NR 1584
NTFY_ORDER 50-n_WetterVorschau
REGEXP WetterVorschau:pubDate.*
STATE 2023-04-09 17:14:40
TRIGGERTIME 1681053280.7808
TYPE notify
eventCount 4
READINGS:
2023-04-08 08:13:49 state active
2023-04-09 17:14:40 triggeredByDev WetterVorschau
2023-04-09 17:14:40 triggeredByEvent pubDate: Sun, 9 Apr 2023 17:14
Attributes:
group Wetter
icon message_attention
room Wetter
Zitat von: didi-fritz am 09 April 2023, 18:12:29ich habe mir in meiner 99_myUtils.pm eine Funktion "calcWeather" geschrieben, die aus den 3-stündlichen hfc*-daten von Version 2.5 versucht, daily-daten (fc*) zu "errechnen"...
sub calcWeather
{
my ($w, $rest) = @_;
my $hfcCnt=0;
my $fcCnt=0;
my $Dcnt=0;
my $Dday="init";
my $Ddate="";
my $Dcode="";
my $Dcondition="";
my $Dpressure="";
my $Dhumidity=0;
my $DcloudCover=0;
my $Drain=0;
my $Dhigh_c=0;
my $Dlow_c=0;
my $Dicon="";
my $Dwind=0;
my $Dwind_gust=0;
my $p1=0;
my $p2=0;
for ($hfcCnt=1; $hfcCnt<=40; $hfcCnt++)
{
my $pubDate =ReadingsVal($w, "hfc${hfcCnt}_pubDate","None");
next if $pubDate eq "None";
my $code =ReadingsVal($w, "hfc${hfcCnt}_code",0);
my $condition =ReadingsVal($w, "hfc${hfcCnt}_condition",0);
my $pressure =ReadingsVal($w, "hfc${hfcCnt}_pressure",0);
my $rain =ReadingsVal($w, "hfc${hfcCnt}_rain3h",0);
my $cloudCover=ReadingsVal($w, "hfc${hfcCnt}_cloudCover",0);
my $humidity =ReadingsVal($w, "hfc${hfcCnt}_humidity",0);
#my $icon =ReadingsVal($w, "hfc${hfcCnt}_icon",0);
my $icon =ReadingsVal($w, "hfc${hfcCnt}_iconAPI",0);
my $high_c =ReadingsVal($w, "hfc${hfcCnt}_high_c",0);
my $low_c =ReadingsVal($w, "hfc${hfcCnt}_low_c",0);
my $wind =ReadingsVal($w, "hfc${hfcCnt}_wind",0);
my $wind_gust =ReadingsVal($w, "hfc${hfcCnt}_wind_gust",0);
my $day =substr($pubDate,0,3);
my $date=substr($pubDate,5);
if ( $day ne $Dday )
{
if ($fcCnt > 0)
{
$Dpressure=int($Dpressure/$Dcnt);
$Dhumidity=int($Dhumidity/$Dcnt);
$DcloudCover=int($DcloudCover/$Dcnt);
fhem( "setreading $w fc${fcCnt}_high_c $Dhigh_c; setreading $w fc${fcCnt}_low_c $Dlow_c; setreading $w fc${fcCnt}_icon $Dicon; setreading $w fc${fcCnt}_code $Dcode; setreading $w fc${fcCnt}_rain $Drain; ");
fhem( "setreading $w fc${fcCnt}_condition $Dcondition; setreading $w fc${fcCnt}_date $Ddate; setreading $w fc${fcCnt}_day_of_week $Dday; setreading $w fc${fcCnt}_pressure $Dpressure; ");
fhem( "setreading $w fc${fcCnt}_wind $Dwind; setreading $w fc${fcCnt}_wind_gust $Dwind_gust; setreading $w fc${fcCnt}_cloudCover $DcloudCover; setreading $w fc${fcCnt}_humidity $Dhumidity; ");
}
$fcCnt++;
$Dcnt=1;
$Dday =$day ;
$Ddate =$date;
$Dcode =$code;
$Dcondition =$condition;
$Dpressure =$pressure;
$Drain =$rain;
$Dhumidity =$humidity;
$DcloudCover=$cloudCover;
$Dicon =$icon;
$Dhigh_c =$high_c;
$Dlow_c =$low_c;
$Dwind_gust = $wind_gust;
$Dwind = $wind;
$p1=$pressure if ($fcCnt==1);
$p2=$pressure if ($fcCnt==2);
}else{
$Dcnt ++;
$Dhigh_c = $high_c if ( $high_c > $Dhigh_c );
$Dlow_c = $low_c if ( $low_c < $Dlow_c );
$Drain +=$rain;
$Dhumidity +=$humidity;
$DcloudCover+=$cloudCover;
$Dpressure +=$pressure;
$Dwind_gust = $wind_gust if ( $wind_gust > $Dwind_gust );
$Dwind = $wind if ( $wind > $Dwind );
if ( $date =~ /1[123]:00/ )
{
$Ddate =$date;
$Dcode =$code;
$Dcondition=$condition;
$Dicon =$icon;
$p1=$pressure if ($fcCnt==1);
$p2=$pressure if ($fcCnt==2);
}
}
}
$Dpressure=int($Dpressure/$Dcnt);
$Dhumidity=int($Dhumidity/$Dcnt);
$DcloudCover=int($DcloudCover/$Dcnt);
fhem( "setreading $w fc${fcCnt}_high_c $Dhigh_c; setreading $w fc${fcCnt}_low_c $Dlow_c; setreading $w fc${fcCnt}_icon $Dicon; setreading $w fc${fcCnt}_code $Dcode; setreading $w fc${fcCnt}_rain $Drain; ");
fhem( "setreading $w fc${fcCnt}_condition $Dcondition; setreading $w fc${fcCnt}_date $Ddate; setreading $w fc${fcCnt}_day_of_week $Dday; setreading $w fc${fcCnt}_pressure $Dpressure; ");
fhem( "setreading $w fc${fcCnt}_wind $Dwind; setreading $w fc${fcCnt}_wind_gust $Dwind_gust; setreading $w fc${fcCnt}_cloudCover $DcloudCover; setreading $w fc${fcCnt}_humidity $Dhumidity; ");
my $Dp= $p2 - $p1;
my $pTxt="";
if ( $Dp > 24 )
{ $pTxt="stark steigend"; }
elsif ( $Dp > 6 )
{ $pTxt="steigend"; }
elsif ( $Dp > -6 )
{ $pTxt="gleichbleibend"; }
elsif ( $Dp > -24 )
{ $pTxt="fallend"; }
else
{ $pTxt="stark fallend"; }
fhem( "setreading $w pressure_trend_txt $pTxt ");
}
die Funktion triggere ich mit einem notify
Internals:
DEF WetterVorschau:pubDate.* { calcWeather($NAME) }
FUUID 5c435e5e-f33f-2a7c-40a7-7e6881c2ed2fa3a4
NAME n_WetterVorschau
NOTIFYDEV WetterVorschau
NR 1584
NTFY_ORDER 50-n_WetterVorschau
REGEXP WetterVorschau:pubDate.*
STATE 2023-04-09 17:14:40
TRIGGERTIME 1681053280.7808
TYPE notify
eventCount 4
READINGS:
2023-04-08 08:13:49 state active
2023-04-09 17:14:40 triggeredByDev WetterVorschau
2023-04-09 17:14:40 triggeredByEvent pubDate: Sun, 9 Apr 2023 17:14
Attributes:
group Wetter
icon message_attention
room Wetter
@didi-fritz kannst du bitte hier näher drauf eingehen. Wie ich das auch bei mir machen kann.
Der erste Teil 99_myUtils.pm einfügen verstehe ich.
Der Notify Teil macht mir ein wenig Schwierigkeiten was zutun ist.
Danke LG
"WetterVorschau" ist der Name meines Wetter-Devices vom Type "OpenWeatherMapAPI".
wenn sich nun das Wetter-Device updated wird mein notify getriggert ( WetterVorschau:pubDate.* ) und die Funktion calcWeather($NAME) gestartet
Nur mal interessehalber: Was spricht denn dagegen, einfach die Version 3 in der API zu verwenden?