Author Topic: Saratoga World template gets alerts from meteoalarm.org...  (Read 1200 times)

saratogaWX

  • Strong Breeze
  • ***
  • Posts: 156
  • Weather website programming enthusiast
    • Saratoga-Weather.org
  • Station Details: Davis VP1 +, iMAC 21, OSX 10.6.8
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!
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub, WeatherSnoop, WeatherCat
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Blicj11

  • Storm
  • *****
  • Posts: 3966
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6.7 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Saratoga World template gets alerts from meteoalarm.org...
« Reply #1 on: May 13, 2022, 03:21:09 PM »
Thanks to Ken and Wim for bringing this update to WeatherCatters using the excellent Saratoga template.
Blick


saratogaWX

  • Strong Breeze
  • ***
  • Posts: 156
  • Weather website programming enthusiast
    • Saratoga-Weather.org
  • Station Details: Davis VP1 +, iMAC 21, OSX 10.6.8
Re: Saratoga World template gets alerts from meteoalarm.org...
« Reply #2 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!
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub, WeatherSnoop, WeatherCat
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP