roe-dl / weewx-DWD

Darstellung von Wettersymbolen in WeeWX sowie Vorhersage- und Warndaten herunterladen und für WeeWX und Web-Darstellung aufbereiten
GNU General Public License v3.0
19 stars 4 forks source link

No warnings displayed #22

Closed msman0 closed 2 years ago

msman0 commented 2 years ago

Hi, the system works fine last weeks but now we have warnings (in warnings.json) but they are not displayed. Is these a general issue? Thank you. Regards, Martin

dwd:
/usr/local/bin/dwd-warnings 2>/dev/null >/dev/null
[DeutscherWetterdienst]
    path = /etc/weewx/skins/neowx-material/dwd
    [[warning]]
        icons = ../neo/dwd/warn_icons_50x50
        states = Bayern
        [[[counties]]]
            Kreis Miltenberg = BY
msman0 commented 2 years ago

Here ist the files which display no warning: 20220522_2340warnings-nok.zip And here the file with warning: 20220523_2040warnings-ok.zip

Is there no warning if level 1 or should they warn every time when the selected region is in the json file?

roe-dl commented 2 years ago

I will have a look at it.

roe-dl commented 2 years ago

The warnings file provided by the DWD contains of two sections: warnings and preliminary information ("Vorabinformation Unwetter"). The entries you are missing are in the preliminary information section. This section is not included. To include it you could add

        wrn.update(vrb)

in line 124 of /usr/local/bin/dwd-warnings. That is before the line

        region={}

It's arguable to include or not to include the preliminary information entries. So I am not sure what would be better and what the users would expect.

msman0 commented 2 years ago

Thank you very much for the information.