Page 1 of 1

warningsDE - local level filter

Posted: Sat Dec 09, 2017 11:02 am
by ChrisBoom
Hi all,

I've been playing around with the warningsDE block, which I like because it uses the DWD as a reliable data source.

However, when you hit the "more" button, the block explodes into a list of one zillion warnings, because DWD issues detailed warnings on a district and municipality level. To collapse this huge list of warnings, you'll then have to scroll down for about five minutes to find the "close" button. ;) Plus, you'll have to search your home town or district warnings, as the list is alphabetically sorted on state level. In large states (like NRW or Bayern), you will receive warnings for districts and towns about 200km away.

Would it be possible to filter the JSON data on a district (Landkreis) or local (Gemeinde) level? I think the latter requires the JSONP feed from DWD to be parsed, but district level should be possible with the JSON feed that warningsDE already uses as raw data.

As filter parameter, the district warncellID could be used and defined in the settings. A list of those is available here:
https://www.dwd.de/DE/leistungen/openda ... ds_csv.csv

I tried to do this myself but my JS/JSON skills are poor still. Perhaps anyone here on the board can play around with that idea.

Best regards
Chris

Re: warningsDE - local level filter

Posted: Sat Dec 09, 2017 12:24 pm
by Jachym
Hi Chris,
this is tough. I have to say I receive about 5-10 block/plugin requests a week which are related to something "regional", something that goes further than national level. I always said national level is as far as I want to go. With the exception of the US and Canada, because of the size of those countries. As soon as I make 1 or 2 blocks that go deeper, the number of blocks/plugins will start growing exponentially, which is also not ideal for new users. On the other hand I see what you mean, so I really am a bit stuck and undecided about this. I will think about it, or I would just do it as a customized block ,but not one offered on my main page.

Re: warningsDE - local level filter

Posted: Sat Dec 09, 2017 7:28 pm
by ChrisBoom
Thanks for chewing this over. I see your point. Once you go local on one block and once country, it will be demanded for all blocks and data sources.

Until I figure out how to tweak the JSON feed, I worked my way around it by using the dynamicImage block to display state warning levels (sectioned into districts) and the rssFeed block below it to display the local warnings. The RSS feed comes from another website (wettwarn.de) that filters and converts the DWD output.

Cheers
Chris