Forecast: Difference between revisions

29 bytes added ,  10:59, 25 March 2021
m
Added heading Inner Working
(Completion)
m (Added heading Inner Working)
Line 16: Line 16:
     WXsimURL=
     WXsimURL=


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


== Yourwether ==
=== Yourwether ===
When setting the ''ForecastSystem'' to '''Yourweather''', the user must have:
When setting the ''ForecastSystem'' to '''Yourweather''', the user must have:
#Go to yourweather.co.uk
#Go to yourweather.co.uk
Line 31: Line 32:
When ''CumulusUtils'' is run with the argument forecast, it fetched the corresponding XML with the ECMWF  model forecast and reworks that into a table and written to the outputfile. The icons the user installed in CUicons are used.
When ''CumulusUtils'' is run with the argument forecast, it fetched the corresponding XML with the ECMWF  model forecast and reworks that into a table and written to the outputfile. The icons the user installed in CUicons are used.


== Norway ==
=== Norway ===
When setting the ''ForecastSystem'' to '''Norway''', the prediction URL as given in ''NorwegianURL'' is fetched and displayed in an iframe.<br>
When setting the ''ForecastSystem'' to '''Norway''', the prediction URL as given in ''NorwegianURL'' is fetched and displayed in an iframe.<br>
'''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.
'''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 ==
=== WxSim ===
When setting the ''ForecastSystem'' to '''WxSim''', the WXsimURL is used to display in an iframe.<br>
When setting the ''ForecastSystem'' to '''WxSim''', the WXsimURL is used to display in an iframe.<br>
The iframe is formed as: <nowiki><iframe src='{WxsimPredictionURL}' frameborder='0' style='border: 0;width:100%; height: 75vh;'></iframe></nowiki> and written to the output file.
The iframe is formed as: <nowiki><iframe src='{WxsimPredictionURL}' frameborder='0' style='border: 0;width:100%; height: 75vh;'></iframe></nowiki> and written to the output file.