xlcnd / meteoalarmeu

A 'custom component' for Home-Assistant for Weather Warnings from meteoalarm.eu
GNU General Public License v3.0
20 stars 3 forks source link

Handle regions with "&" in the name #11

Closed wralb closed 3 years ago

wralb commented 3 years ago

Thanks for developing a useful integration.

My region is "London & South East". At first I could not get this to be recognised. By trial and error I discovered meteoalarmeu would work if I enter the region (previously in YAML, and now in the the configuration dialog) as London & South East as shown below. Many users will not realise this trick, so it would be good if the region string could properly handle "&" and any other special characters. Thanks!

image

xlcnd commented 3 years ago

The problem is that the server only accepts the format specified by the national authority. To solve that (in that way), I had to build a database of thousands of possibilities for more than 2000 regions on Europe!

Anyway, I see that you are from the UK, unfortunately UK stop to send data to meteoalarm.eu.

xlcnd commented 3 years ago

UK is sending data to meteoalarm.eu again. You can use release 2021.5.7+ to get your alarms.