Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: saratogaWX on May 13, 2022, 01:23:10 AM

Title: Saratoga World template gets alerts from meteoalarm.org...
Post by: saratogaWX on May 13, 2022, 01:23:10 AM
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 (https://saratoga-weather.org/wxtemplates/updates.php) 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!
Title: Re: Saratoga World template gets alerts from meteoalarm.org...
Post by: Blicj11 on May 13, 2022, 03:21:09 PM
Thanks to Ken and Wim for bringing this update to WeatherCatters using the excellent Saratoga template.
Title: Re: Saratoga World template gets alerts from meteoalarm.org...
Post by: saratogaWX on May 18, 2022, 11:11:14 PM
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: [Select]
$SITE['useMeteoalarm'] = true; 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!