Forecast

From Cumulus Wiki
Revision as of 06:53, 19 April 2026 by HansR (talk | contribs) (→‎Inner working)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Introduction

CumulusUtils has a minimal forecast module. Every weather site must have some kind of forecasting so the choice has been made to take four different existing possibilities and present the forecast of the users choice. It is not a true forecasting system.

Operation

This module is included in the website. When needed as a single output the following command is given:

   utils/bin/cumulusutils.exe Forecast

Output

The output is the file: forecast.txt

Inifile parameters

   [Forecasts]
   ForecastSystem=CUtils (default, other possibilities: SpotWx, Norway, WxSim)
   NorwegianURL=
   WXsimURL=

Inner working

CUtils

It uses the Open Meteo forecast for the ECMWF IFS HRES 9km model and charts the resulting data, there is no table display.

SpotWx

When setting the ForecastSystem to SpotWx, the prediction for the latitude and longitude of the station is fetched and displayed in an iframe.
The iframe is formed as: <iframe src='{SpotwxPredictionURL}' frameborder='0' style='border: 0; width:100%; height: 75vh;'></iframe> and written to the output file.

Norway

When setting the ForecastSystem to Norway, the prediction URL as given in NorwegianURL is fetched and displayed in an iframe.
NOTE: The current renewed site of the Norwegian service have set the X-Frame-Options to SAMEORIGIN meaning that you can only display a forecast as a page from their site. The system as used within CumulusUtils therefore does not work anymore. Only users who already have their URL from the old site can continue using it. I don't know until when.

WxSim

When setting the ForecastSystem to WxSim, the WXsimURL is used to display in an iframe.
The iframe is formed as: <iframe src='{WxsimPredictionURL}' frameborder='0' style='border: 0;width:100%; height: 75vh;'></iframe> and written to the output file.