DWD downloading and processing weather alerts data failed

Begonnen von fExplorer, 10 Februar 2020, 20:15:19

Vorheriges Thema - Nächstes Thema

fExplorer

Hallo,

häufig können die Daten vom DWD nicht abgerufen werden.

ZitatFehler: downloading and processing weather alerts data failed (Timeout: process terminated)
FHEM: Aktualisierung der Wetterwarnungen fehlgeschlagen
ACHTUNG! Aktuell stehen aufgrund einer Störung keine aktuellen Wetterwarnungen zur Verfügung.

So scheint es mir keine verlässliche Quelle um Aktionen auslösen zu können.
Geht es anderen auch so?
Gibt es eine Alternative?

Romoker

Ich frage DWD mit HTTPMOD periodisch ab und hatte gestern auch das Timeout-Problem. Aufgrund der aktuellen bundesweiten Sturmlage ist die JSON-Liste ungewöhnlich groß. Das stellt offenbar einige Abfrageprogramme vor Problemen. Ich konnte mein Problem lösen, indem ich den HTTPMOD timeout-Parameter hoch gesetzt habe. Ansonsten läuft bei mir der DWD-Dienst seit Jahren sehr zuverlässig.

Viele Grüße
BeagleBoneBlack & Raspberry Pi 4; FB7490; div. Homematic Komponenten; CUL433: CUL_TX, Conbee II, SOMFY, 1-Wire, Z-Wave, Zigbee, SmartPlugs von Sonoff und Shelly mit MQTT

KölnSolar

ZitatGibt es eine Alternative?
Nina. Hat DWD integriert.
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

yersinia

Ich rufe via DWD OpenData ab, keine Probleme. Auch nicht in den letzten Tagen.
viele Grüße, yersinia
----
FHEM 6.4 (SVN) on RPi 4B with RasPi OS Bookworm (perl 5.36.0) | FTUI
nanoCUL->2x868(1x ser2net)@tsculfw, 1x433@Sduino | MQTT2 | Tasmota | ESPEasy
VCCU->14xSEC-SCo, 7xCC-RT-DN, 5xLC-Bl1PBU-FM, 3xTC-IT-WM-W-EU, 1xPB-2-WM55, 1xLC-Sw1PBU-FM, 1xES-PMSw1-Pl

fExplorer

Zitat von: Romoker am 10 Februar 2020, 21:04:09
Ich frage DWD mit HTTPMOD periodisch ab und hatte gestern auch das Timeout-Problem. Aufgrund der aktuellen bundesweiten Sturmlage ist die JSON-Liste ungewöhnlich groß. Das stellt offenbar einige Abfrageprogramme vor Problemen. Ich konnte mein Problem lösen, indem ich den HTTPMOD timeout-Parameter hoch gesetzt habe. Ansonsten läuft bei mir der DWD-Dienst seit Jahren sehr zuverlässig.

Viele Grüße

Einen einstellbaren Timeout-Parameter kennt das DWD OpenData Modul offenbar nicht, oder übersehe ich es?

yersinia

Zitat von: fExplorer am 12 Februar 2020, 11:08:49
Einen einstellbaren Timeout-Parameter kennt das DWD OpenData Modul offenbar nicht, oder übersehe ich es?
MWn nicht, zumindest findet sich auch nichts in der Doku, aber die commandref schreibt dazu:
ZitatPerformance

Note that depending on your device configuration each forecast consists of quite a lot of readings and each reading update will cause a FHEM event that needs to be processed. Depending on your hardware and your FHEM configuration this will take several hundred milliseconds. If you need to improve overall performance you can limit the number of readings created by setting a) the attribute forecastProperties to the ones you actually use, b) the attribute forecastResolution to the highest value suitable for your purposes and c) the attribute forecastDays to the lowest number suitable for your purposes. To further reduce the event processing overhead you can set the attribute event-on-update-reading to a small list of important reading that really need events (e.g. state,fc_state,a_state). For almost the same reason be selective when creating a log device. If you use wildcards for all readings without filtering either at the source device with readingFnAttributes or at the destination device with a regexp you will get significant extra file IO when the readings are updated and quite a lot of data.
viele Grüße, yersinia
----
FHEM 6.4 (SVN) on RPi 4B with RasPi OS Bookworm (perl 5.36.0) | FTUI
nanoCUL->2x868(1x ser2net)@tsculfw, 1x433@Sduino | MQTT2 | Tasmota | ESPEasy
VCCU->14xSEC-SCo, 7xCC-RT-DN, 5xLC-Bl1PBU-FM, 3xTC-IT-WM-W-EU, 1xPB-2-WM55, 1xLC-Sw1PBU-FM, 1xES-PMSw1-Pl

fExplorer

Zitat von: yersinia am 12 Februar 2020, 11:27:47
MWn nicht, zumindest findet sich auch nichts in der Doku, aber die commandref schreibt dazu:
Ich habe den Zeitraum, forecastDays und die Parameter, forecastProperties reduziert, die Auflösung, forecastResolution steht sowieso hoch. Aber nach der Änderung werden trotzdem alle Standard-Properties und 3 Tage Vorschau abgerufen.

attr DWD forecastDays 1
attr DWD forecastProperties Neff


Was mach ich da falsch?

yersinia

Zitat von: fExplorer am 17 Februar 2020, 20:40:49
Ich habe den Zeitraum, forecastDays und die Parameter, forecastProperties reduziert, die Auflösung, forecastResolution steht sowieso hoch. Aber nach der Änderung werden trotzdem alle Standard-Properties und 3 Tage Vorschau abgerufen.

attr DWD forecastDays 1
attr DWD forecastProperties Neff


Was mach ich da falsch?
Bleiben die 'alten' readings bestehen und werden ggf nicht mehr aktualisiert? Es dürften sich nur die Readings für den beschränkten, geringeren forceast Horizont ändern.
viele Grüße, yersinia
----
FHEM 6.4 (SVN) on RPi 4B with RasPi OS Bookworm (perl 5.36.0) | FTUI
nanoCUL->2x868(1x ser2net)@tsculfw, 1x433@Sduino | MQTT2 | Tasmota | ESPEasy
VCCU->14xSEC-SCo, 7xCC-RT-DN, 5xLC-Bl1PBU-FM, 3xTC-IT-WM-W-EU, 1xPB-2-WM55, 1xLC-Sw1PBU-FM, 1xES-PMSw1-Pl

fExplorer

Zitat von: yersinia am 18 Februar 2020, 07:54:36
Bleiben die 'alten' readings bestehen und werden ggf nicht mehr aktualisiert? Es dürften sich nur die Readings für den beschränkten, geringeren forceast Horizont ändern.
Ah, ja, das war mir gar nicht aufgefallen. Danke für den Hinweis!

Trotzdem ich die Abfrage nun reduziert habe, bekomme ich weiter laufend timeouts. Sonst werkelt fhem ja tadelos...
2020.02.18 08:16:05 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 5552
2020.02.18 08:16:05 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 08:31:05 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 5789
2020.02.18 08:31:05 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 08:46:05 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 6058
2020.02.18 08:46:05 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 09:01:09 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 6405
2020.02.18 09:01:09 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 09:16:05 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 6538
2020.02.18 09:16:05 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 09:31:05 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 6718
2020.02.18 09:31:05 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 09:46:05 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 6899
2020.02.18 09:46:05 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 10:01:09 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 7121
2020.02.18 10:01:09 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 10:16:05 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 7399
2020.02.18 10:16:05 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 10:31:05 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 7707
2020.02.18 10:31:05 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 10:46:05 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 7848
2020.02.18 10:46:05 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
2020.02.18 11:01:09 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 8006

frank

hast du mal andere alertzonen probiert?
15 min cycle der fehlermeldungen passt genau zur alert aktualisierung.
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

fExplorer

Zitat von: frank am 18 Februar 2020, 11:56:56
hast du mal andere alertzonen probiert?
15 min cycle der fehlermeldungen passt genau zur alert aktualisierung.
Ja, hab ich, gleicher Fehler.
Es ging eine Weile, aber seit ein paar Wochen kommen wieder die
Zitat2020.08.13 09:46:05 1: Timeout for DWD_OpenData::GetAlertsStart reached, terminated process 13517
2020.08.13 09:46:05 3: DWD: GetAlertsAbort error: downloading and processing weather alerts data failed (Timeout: process terminated)
An den Einstellungen habe ich nichts verändert.

yersinia

Version auf dem letzten Stand?
version DWD_OpenData
Die Letzte müsste
Zitat55_DWD_OpenData.pm 22220 2020-06-21 15:47:47Z jensb
sein.

Ich habe diese Fehler auch sporadisch (ca 1x im Monat) - darüber läuft es aber im 15min Intervall recht stabil.

Kannst du diese Links öffnen:
https://opendata.dwd.de/weather/alerts/cap/DISTRICT_CELLS_STAT/Z_CAP_C_EDZW_LATEST_PVW_STATUS_PREMIUMCELLS_DISTRICT_DE.zip
https://opendata.dwd.de/weather/alerts/cap/COMMUNEUNION_CELLS_STAT/Z_CAP_C_EDZW_LATEST_PVW_STATUS_PREMIUMCELLS_COMMUNEUNION_DE.zip
Auch vom FHEM-Server aus?

Ansonsten wäre ein höheres Verbose level (sprich: detaillierterer Log) hilfreicher.
viele Grüße, yersinia
----
FHEM 6.4 (SVN) on RPi 4B with RasPi OS Bookworm (perl 5.36.0) | FTUI
nanoCUL->2x868(1x ser2net)@tsculfw, 1x433@Sduino | MQTT2 | Tasmota | ESPEasy
VCCU->14xSEC-SCo, 7xCC-RT-DN, 5xLC-Bl1PBU-FM, 3xTC-IT-WM-W-EU, 1xPB-2-WM55, 1xLC-Sw1PBU-FM, 1xES-PMSw1-Pl