updated warningsEUregions

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

updated warningsEUregions

Post by davidefa » Wed Jun 02, 2021 3:13 pm

Preamble
Meteoalarm.eu is due to retire on 31 May 2021, but as of 2 June everything is still working, so there is no need to update now.

meteoalarm.org is already working and providing the necessary feed.
The only thing lacking in the new site is a graphical representation of the warnings on a country map.

Good news I made a script to display this country map... bad news it need a configuration file for every country ( not difficult but a little bit tedious ).
I made the configuration file for Italy and UK, so these are the only fully functional countries ( the others need to edit the file regions/xx.php, and for each region included, specify the coordinates of a point ( on the country map ) inside the region, and the coordinates where to display the warning icon, generally these points may be coincident )
Attachments
warningsEUregions_2.2d.zip
(961.15 KiB) Downloaded 90 times
Image

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Sat Jun 05, 2021 6:07 am

Hello Davide
To edit the regions / xx.php file, and for each region included, I have to specify the coordinates of a point (on the country map) inside the region, and the coordinates where to display the icon of warning,, can I find them where coordinates of a point?
France has 95 departments.
Thanks for getting on the track.

José Luis
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: updated warningsEUregions

Post by davidefa » Sat Jun 05, 2021 5:54 pm

I generally use gimp for this ( another image editing software is ok )
The icon upper left coordinates is generally enough ( if it is inside the region itself ).
Yes is going to be a little tedious repeating the process 100 times ; - )

france.png
france.png (134.47 KiB) Viewed 5466 times
Image

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Sun Jun 06, 2021 6:26 am

Hello Davide

I did a test with the regions on alert in France, and here is the result.
duplicates on alerts and map that is not displayed.
I emptied the cache and identical.

I probably made a mistake?
example of modification
"FR028"=>array("name"=>"Var", "x"=>array(486), "y"=>array(461), "xi"=>486, "yi"=>461),

Image
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: updated warningsEUregions

Post by davidefa » Mon Jun 07, 2021 6:51 am

Please attach the complete fr.php file
Image

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Mon Jun 07, 2021 6:54 pm

Ok Davide
I would do this on time, 95 departments is a long time and for the meteo alarm monment is working.
what is weird is that the map of italy is displayed without the alerts, I tried it. and at this moment I find the link of the map of France.

José Luis


José Luis
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: updated warningsEUregions

Post by davidefa » Tue Jun 08, 2021 1:26 pm

I have corrected the duplicated warnings.
Added an option to show only the active warnings ( and to deactivate caching, for debug )
If the map does not show it means there is an error/warning in the map.php script.
In this case please upload the fr.php script ( and the cache directory ) so I can replicate it.
I have separated the countries directory in a different file
Attachments
warningsEUregions_2.2h.zip
(963.55 KiB) Downloaded 77 times
warningsEUregions_countries_2.2h.zip
(32.08 KiB) Downloaded 74 times
Image

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Tue Jun 08, 2021 7:22 pm

Bonsoir Davide

Perfect, I just have to enter all the coordinates, these are the icons that are more difficult to place, small offset

attached an example, now at work.
the error of the map I found an omission of parenthesis in the coordinates
"FR090"=>array("name"=>"Corse du Sud", "x"=>array(54), "y"=>array(482), "xi"=>50, "yi"=>488),
When I'm done, I'll send you the fr.php file
But don't be in a hurry

Image

with google translator
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Wed Jun 09, 2021 7:27 am

Hello Davide

Herewith full fr.php
Now wait for alerts, to detect errors, especially icon location.
the 27 alerts of the day, everything is OK

Have a good day and thanks again

José Luis
Attachments
fr.7z
(1.81 KiB) Downloaded 67 times
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: updated warningsEUregions

Post by davidefa » Wed Jun 09, 2021 9:35 am

Thank you José Luis.
I have attached the mapall.php script which shows all regions/departments on a single page, it can be used to check for imperfections.
Attachments
mapall_01.zip
(1.45 KiB) Downloaded 69 times
Image

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Thu Jun 10, 2021 11:43 am

Hello Davide

I find myself with the countries in text: Black, I was able to modify the background, but do not see how to put the text in white.
can you help me?
José Luis


Image
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: updated warningsEUregions

Post by davidefa » Thu Jun 10, 2021 1:49 pm

Added an option to define region name text color
Colors can be conventional color names ( white, yellow... ) or rgb values ( format: #rrggbb )
Attachments
warningsEUregions_2.2i.zip
(970.4 KiB) Downloaded 66 times
Image

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Fri Jun 11, 2021 6:41 am

Hello Davide

countries .fr.php full update done.
I still have a small request, could we classify the countries in alphabetical order, like in the original Jachym block,
Thank you
José Luis
Attachments
fr.a.7z
(1.81 KiB) Downloaded 64 times
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: updated warningsEUregions

Post by davidefa » Fri Jun 11, 2021 3:15 pm

Sorted region names in alphabetical order
Attachments
warningsEUregions_countries_2.2l.zip
(51.58 KiB) Downloaded 127 times
warningsEUregions_2.2l.zip
(974.8 KiB) Downloaded 140 times
Image

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Fri Jun 11, 2021 3:56 pm

Ciao David

Perfetto e grazie ancora per il tuo lavoro.

amicizie

José Luis
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Fri Jun 18, 2021 5:16 am

Hello Davide

the development of the Block is perfect and complete, BUT there are some inconsistencies and delays with the official alert updates ...
at least for France.

correct
Image

inconsistently
Image
So I come back for the moment to the Jachym Block which still works (see meteoAlarm for the update in the future of these URLs).

You will look for Italy, this morning 4 coutries in alerts and on your Block (No warnings)
friendships
José Luis
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: updated warningsEUregions

Post by davidefa » Tue Jun 22, 2021 5:37 pm

I have seen these differences between the old and the new site.
But ( apart from errors I may have introduced ) these are mainly due to differences in the xml feeds that the two sites report.
I think the new meteoalarm.org has a few 'hiccups' ( imperfections )
For example in this moment the italian region Valle d'Aosta shows two overlapping warnings ( that should be merged in a single extended warning )
Similar is the case of the neighbouring province Haute Savoie report two overlapping warning ( the first is a 2 minute warning today from 18:51 to 18:52 )
I think there is still something to be 'fine tuned' on meteoalarm.org

P.S.
Regarding Italy, for more than a week meteoalarm.org stopped reporting italian warnings.
I sent an email to meteoalarm@zamg.ac.at reporting this. Got a reply that they where investigating... now warnings are available again
Image

johnathan
Observer
Observer
Posts: 29
Joined: Thu Apr 08, 2021 1:14 pm
Station model: wh1080
Software: WU

Re: updated warningsEUregions

Post by johnathan » Mon Jun 28, 2021 5:13 pm

I like this weathe software. Thanks! With the increasing popularity of mobile devices and their increasing functionality, there is an increased need for app development software and services https://mlsdev.com/services/business-analysis. Businesses and organizations around the world are looking for ways to improve their business practices and increase their profitability by developing apps that target specific audiences and help convert web visitors into paying customers. In addition, it enables organizations to measure performance across the organization and reduce the time spent implementing the required policies. Custom app development software development platforms support these activities by providing app development services, application programming interfaces (APIs) and mobile device management.

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Wed Aug 18, 2021 8:53 am

Ciao Davide
Hai un'idea dell'errore che si verifica da questa settimana sugli avvisi UE nella tua versione, Nessun avviso sulla Francia, è quello della Svezia che viene visualizzato.
ho svuotato la cache
Grazie Davide

Image
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: updated warningsEUregions

Post by davidefa » Wed Aug 18, 2021 2:34 pm

There is something ( wrong ) going on with meteoalarm.org rss feed.
The French feed contains data relative to Finland ( the items geocode is always Finnish: <link>https://meteoalarm.org?geocode=EMMA_ID:FI001</link> )

I have sent an email ( to meteoalarm at zamg.ac.at ) signalling the problem.
Image

User avatar
Jolumarali
Forecaster
Forecaster
Posts: 240
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: updated warningsEUregions

Post by Jolumarali » Thu Aug 19, 2021 3:25 pm

Tornando alla normalità, grazie, Davide
Image
Station météo amateur Lignerolles
OS : Windows 10 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

lasybird
Newbie
Newbie
Posts: 1
Joined: Mon Apr 08, 2019 6:09 pm
Station model: WMR200
Software: Cumulus

Re: updated warningsEUregions

Post by lasybird » Sat Sep 17, 2022 6:42 am

I found and issue.

in Slovenia we have red weather alert in southeast region right now. But on my page are all region green.

Any suggestion what to do?

Andrej

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: updated warningsEUregions

Post by davidefa » Sun Sep 18, 2022 9:25 pm

Did the block function correctly in the past?

I'm asking because I noticed the format of the warning issued by meteoalarm.org for slovenia does not correspond to the standard.
Maybe this is a temporary issue that will resolve in the next days.
If not I can notify the meteoalarm support contact.

In any case I made a quick fix ( to derive a code, that is missing in the alerts, from the region name, but this could fail in the future if region names are changed )

ver 2.3
http://realrunning.netsons.org/template ... ns_2.3.zip
- added quick fix for slovenia warnings missing geocode
Image

User avatar
meteolopik
Observer
Observer
Posts: 26
Joined: Tue Jun 04, 2019 11:09 am
Location: Lopik
Station model: Davis Pro 2 Plus
Software: Weather Display
Contact:

Re: updated warningsEUregions

Post by meteolopik » Thu Dec 15, 2022 7:04 pm

Hmm, I’m not a coder like some guys here but it occurred to me that the link to the actual feed is not the same as the current feed meteoalarm uses. They refer to https://feeds.meteoalarm.org/feeds/mete ... rss-europe while the file warningsEUregionsBlock.php points to a different one. Might that be an issue or am I just being a code n00b? :D
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: updated warningsEUregions

Post by davidefa » Sun Jan 29, 2023 9:55 am

Meteoalarm.org has several rss feeds: https://feeds.meteoalarm.org ( whit only limited informations )
The one you refer to is a general european feed.
The block uses the nation specific feed ( which contain more information ), this is the Netherlands one: https://feeds.meteoalarm.org/feeds/mete ... etherlands
Image

Post Reply