ktrue / Meteoalarm-warning

Warnings from meteoalarm.org for eumetnet.org countries
GNU General Public License v3.0
4 stars 1 forks source link

how did you generate the map from EMMA_ID to region name (meteoalarm-codenames.json)? #1

Open tungdaomissmpeu opened 1 month ago

tungdaomissmpeu commented 1 month ago

I tried to find document for EMMA_ID on meteoalarm.org but cannot. Please help so I can generate a map by my self if I need a refresh data.

ktrue commented 1 month ago

I use a custom program to get the current meteoalarm.org data (from the two files listed at https://meteoalarm.org/en/live/page/redistribution-hub#list for Geocodes .json and Geocodes aliases .csv and process them to create the files used by the https://saratoga-weather.org/meteoalarm-map/ Map to find EMMA_IDs and by the get-meteoalarm-warning-inc.php program to retrieve/display the current warnings. I run the local script to create the files periodically as the data does not change often on meteoalarm.org.

Is there a reason you can't just use https://saratoga-weather.org/meteoalarm-map/ to find the EMMA_IDs? The code to create meteoalarm-codenames.json and meteoalarm-geocode-aliases.php has not been released since it involves detailed tweaking to correctly generate the files (the source data seems to change at a whim of the meteoalarm.org developers).