Web Weather > Custom Website Templates
Saratoga World template gets alerts from meteoalarm.org...
saratogaWX:
Whew, for European Saratoga template users, it's taken a while since the old get-meteoalarm-warning-inc.php script stopped getting data from the (now defunct) meteoalarm.eu site. Thanks to Wim van der kuil for giving permission to adapt his pwsdashboard.com code to use meteoalarm.org data (which is the current, operational site for EUMETNET-METEOalarm).
get-meteoalarm-warning-inc.php V3.00 - 12-May-2022 is now on the distribution (in Base-World.zip)
Get the update via the update tool with a query of Base-World, *-plugin, 12-May-2022
Note: the update includes a revised Settings.php, but you don't have to install it .. you can add the one new $SITE entry to your current Settings.php easily. The other files in ./ajax-images/*.svg, wxadvisory.php and get-meteoalarm-warning-inc.php should be uploaded to your site (no config needed there).
Go to https://saratoga-weather.org/meteoalarm-map/ to find the needed EMMA_IDs for your location and how to configure it in Settings.php
Thanks again to Wim!
Enjoy!
zmarfak:
Thank you Ken for the update, and thank you Wim for giving Ken the permission to adapt your file.
=D>
saratogaWX:
Just released V3.10 with a major update.. a summary display of alerts for the homepage with links to the alerts display details on wxadvisory.php page.
3 files updated: get-meteoalarm-warning-inc.php V3.10, wxindex.php V1.01, and wxadvisory.php V1.02
You also need to add to Settings.php:
--- Code: ---$SITE['useMeteoalarm'] = true;
--- End code ---
to have the full function enabled.
get-meteoalarm-warning-inc.php now only directly prints HTML comments about the operation of the script when included.
The ./cache/meteoalarm-details.html and ./cache/meteoalarm-summary.html files are maintained by the script and used by wxadvisory.php and wxindex.php respectively.
I'll be putting up more docs about the changes shortly and reenabling the detailed script page again.
Enjoy!
zmarfak:
Thanks Ken for all the effort you put in this.
I get mixed feelings when I look at the screen , see attachment
Is this meteoalarm.org that gives this strange info ?
last edit :
https://www.meteo.be/en/weather/warnings/overview-belgium gives an overview on the official meteo of Belgium
saratogaWX:
Each National Weather Service seems to have slightly different reporting of events to meteoalarm.org. The 'Green' (No Special Awareness) alert isn't something I'd seen from the new feed before -- Meteoalarm.org cites only 3 color warnings: yellow, orange and red for increasing severity of the event. By rights, you have 3 'Green' named events and one 'Yellow' event.
I'll look at the JSON return for Belgium and see if I can fix the issue to display 'Green' when cited.
Navigation
[0] Message Index
[#] Next page
Go to full version