/dwdWeather

MODX Weather Forecast

Primary LanguagePHP

dwdWeather

MODX Weather Forecast

tested with MODX 2.8.5 and 3.0.3

HINWEIS: Dieses Projekt ist ein privates Open-Source-Projekt und steht in keiner Verbindung zum Deutschen Wetterdienst. NOTE: This project is a private open-source project and is not affiliated with the German Weather Service.

Link: DWD Copyright

DWD-Logo

Wettervorhersage für MODX Revolution vom deutschen Wetterdienst

Weather forecast for MODX Revolution by the German Weather Service

  • Link: DWD.de
  • DEUTSCHE DWD-Wettervorhersage via CURL für MODX - benötigt eine Ressource, 2 Snippets und 2 Chunks
  • GERMAN DWD-Weather forecast via CURL for MODX - needs one Resource, 2 Snippets and 2 Chunks

Aufruf Beispiel / example call

  • Wetter Bitburg per WOEID abrufen
  • get the weather for Bitburg with WOEID
[[!dwdWeather? &STATION=`K428` &TPL=`dwdWetterTPL`]]
[[+dwdWeather]]
  • oder mit 4 Uhrzeiten pro Tag (T1 -T4) bei 12 Vorhersagen (QTY), also Vorhersage 3 Tage
  • or with 4 times per day (T1-T4) with 12 forecasts (QTY), so forecast 3 days
[[!dwdWeather?
   &STATION=`K428`
   &TPL=`dwdWetterTPL`
   &QTY=`12`
   &T1=`06:00`
   &T2=`12:00`
   &T3=`18:00`
   &T4=`00:00`
]]
[[+dwdWeather]]
  • Der MOSMIX-Vorhersagedatensatz "MOSMIX_L" enthält ca. 115 Wettervariablen pro Vorhersage und die maximale Vorhersagezeit beträgt +240 Stunden. Die Vorhersage wird 4 mal täglich um 03, 09, 15 und 21 Uhr UTC aktualisiert. Das Snippet holt 19 dieser Wettervariablen stündlich per cURL (nur wenn Seite geladen wird) und setzt diese in Platzhalter, bzw. in ein Chunk Template für Wetterelemente (10 Tage Trend).

  • Hinweis: Der "MOSMIX_S" Vorhersagedatensatz enthält 40 Parameter und wird 24x für den ersten Tag und 4 mal täglich für nachfolgende Tage aktualisiert (bis +240h). Leider sind diese Daten sehr groß, da alle Stationen in eine Datei geschrieben werden (ca. 37MB). Diese müssten dann stündlich geladen werden -> also täglich ca. 900MB!

  • The MOSMIX forecast data set "MOSMIX_L" contains about 115 weather variables per prediction and the maximum forecast time is +240 hours. The forecast is updated 4 times daily at 03 am, 09 am, 3 pm and 9 pm o'clock UTC. The snippet fetches 19 of these weather variables per hour via cURL (only if page loaded) and places them in placeholders, or in a chunk template for weather elements (10 days trend).

  • Note: The "MOSMIX_S" forecast contains 40 parameters and is updated 24x for the first day and 4 times daily for following days (up to + 240h). Unfortunately, these data are very large, because all stations are in one file (about 37MB). These would to be loaded every hour -> that are about 900MB daily!

German INFOS und LINKS (some documents you can switch to english)

Update 2022-11:

  • Leider hat der DWD alte Links nicht auf neue Links umgeleitet (wenn es diese noch gibt) und daher gibt es tote Links
  • Unfortunately, the DWD has not redirected old links to new links (if they still exist) and therefore there are dead links
Demo Weather Print Screen

MODX-DWD-Wetter

Demo Weather Print Screen with fullCalendar

MODX-DWD-Kalender-Wetter