After updating to WeeWx 5.0 I got DWD forecasts and warnings working, but 
since several days DWD warnings are no longer updated.
I am getting the same error message as one year ago ...

teffi@WXvm:/etc/weewx$ sudo dwd-cap-warnings --resolution=city --verbose

Using test configuration

-- configuration data ----------------------------------

log success:   True

log failure:   True

filter area:   {'Stadt Döbeln': 'DL', 'Stadt Leipzig': 'L', 'Stadt Jena': 
'J', 'Stadt Dresden': 'DD'}

target path:   .

icon URL:      ../dwd/warn_icons_50x50

logo URL:      None

-- configuration dict ----------------------------------

{

    "log_success": true,

    "log_failure": true,

    "path": ".",

    "dwd_icons": "../dwd/warn_icons_50x50",

    "dwd_resolution": "city",

    "1": {

        "path": ".",

        "provider": "MSC",

        "office": "CWHX",

        "county": "Upper Lake Melville",

        "file": "XX"

    },

    "counties": {

        "Kreis Mittelsachsen - Tiefland": "DL",

        "Stadt Leipzig": "L",

        "Stadt Jena": "J",

        "Stadt Dresden": "DD"

    },

    "cities": {

        "Stadt Döbeln": "DL",

        "Stadt Leipzig": "L",

        "Stadt Jena": "J",

        "Stadt Dresden": "DD"

    }

}

--------------------------------------------------------

-- get_warnings -------------------------------

INFO about to download zip file list from 
https://opendata.dwd.de/weather/alerts/cap/COMMUNEUNION_CELLS_STAT

INFO zip file list from 
https://opendata.dwd.de/weather/alerts/cap/COMMUNEUNION_CELLS_STAT/ 
successfully downloaded

INFO processing file 
Z_CAP_C_EDZW_LATEST_PVW_STATUS_PREMIUMCELLS_COMMUNEUNION_DE.zip

INFO about to download 
https://opendata.dwd.de/weather/alerts/cap/COMMUNEUNION_CELLS_STAT/Z_CAP_C_EDZW_LATEST_PVW_STATUS_PREMIUMCELLS_COMMUNEUNION_DE.zip

INFO successfully downloaded 
https://opendata.dwd.de/weather/alerts/cap/COMMUNEUNION_CELLS_STAT/Z_CAP_C_EDZW_LATEST_PVW_STATUS_PREMIUMCELLS_COMMUNEUNION_DE.zip

teffi@WXvm:/etc/weewx$ sudo dwd-cap-warnings --resolution=city --verbose 
--weewx

Using configuration file /etc/weewx/weewx.conf

Traceback (most recent call last):

  File "/usr/local/bin/dwd-cap-warnings", line 1993, in <module>

    cap = CAPwarnings(config,provider,options.verbose)

  File "/usr/local/bin/dwd-cap-warnings", line 1761, in __init__

    sec_dict = 
accumulateLeaves(config_dict['WeatherServices']['warning'][sec])

  File "/usr/local/bin/dwd-cap-warnings", line 142, in accumulateLeaves

    y.update({a:x.parent.parent[a] for a in x.parent.parent.scalars})

AttributeError: 'str' object has no attribute 'parent'

teffi@WXvm:/etc/weewx$ sudo dwd-cap-warnings --resolution=county --verbose 
--weewx

Using configuration file /etc/weewx/weewx.conf

Traceback (most recent call last):

  File "/usr/local/bin/dwd-cap-warnings", line 1993, in <module>

    cap = CAPwarnings(config,provider,options.verbose)

  File "/usr/local/bin/dwd-cap-warnings", line 1761, in __init__

    sec_dict = 
accumulateLeaves(config_dict['WeatherServices']['warning'][sec])

  File "/usr/local/bin/dwd-cap-warnings", line 142, in accumulateLeaves

    y.update({a:x.parent.parent[a] for a in x.parent.parent.scalars})

AttributeError: 'str' object has no attribute 'parent'

and my /etc/weewx/weewx.conf

[DeutscherWetterdienst]

    # Konfiguration für dwd-cap-warnings

    [[warning]]

        icons = ../images

        states = Niedersachsen

        resolution = county|city

        [[[counties]]]

            Kreis Hildesheim = HIX

        [[[cities]]]

            Stadt Hildesheim = HI

[WeatherServices]

    path = /etc/weewx/skins/Belchertown/dwd

    [[current]]

        safe = True

    [[forecast]]

        icons = ../images

        orientation = "h,v"

        show_obs_symbols = True

        show_obs_description = True

        show_placemark = True

    [[warning]]

        icons = ../images

        # icons = replace_me

        [[[103254000]]]

            provider = BBK

            # Die Überschrift ist die Kreiskennung.

            file = HIX

        [[[Hildesheim]]]

            provider = BBK

            county = 8032540210000

            file = HI


    [[Belchertown]]

        section = Belchertown

        warnings = HIX

        forecast = K1546

        include_advance_warings = 3600

        aqi_source = aeris

        #compass_lang = replace_me

any hint would be highly appreciate ...

Thank you,
Stefan


On Monday, July 17, 2023 at 3:31:12 PM UTC+2 Stefan Gliessmann wrote:

I solved it by reverting back to a previous saved weewx.conf ;)

Thank you, Karen, nevertheless!


On Friday, July 14, 2023 at 7:39:24 PM UTC+2 Karen K wrote:

Could you provide the weewx.conf, that causes the problem? Please, make 
sure to obfuscate user names and passwords within that file before.

Stefan Gliessmann schrieb am Freitag, 14. Juli 2023 um 13:53:03 UTC+2:

Hi folks -

I had everything configured correctly and got the warnings correctly 
displayed in the Belchertown skin.
Yesterday, I enabled DWD forecasts, too.

Since then, DWD forecasts are working and the DWD warnings have stopped 
working.

I cannot figure out what I may have changed in the weewx.conf.

Here is the output of: dwd-cap-warnings --weewx -v

teffi@weewx:/etc/weewx$ sudo dwd-cap-warnings --weewx -v
Using configuration file /etc/weewx/weewx.conf
Traceback (most recent call last):
  File "/usr/local/bin/dwd-cap-warnings", line 1992, in <module>
    cap = CAPwarnings(config,provider,options.verbose)
  File "/usr/local/bin/dwd-cap-warnings", line 1760, in __init__
    sec_dict = 
accumulateLeaves(config_dict['WeatherServices']['warning'][sec])
  File "/usr/local/bin/dwd-cap-warnings", line 142, in accumulateLeaves
    y.update({a:x.parent.parent[a] for a in x.parent.parent.scalars})
AttributeError: 'str' object has no attribute 'parent'

Can anybody point me to the item I need to change in weewx.conf?

TIA,
Stefan

http://teffi71.spdns.de:8181/weewx/belchertown/

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f097ad51-12e4-4289-af02-bc22df8c0ce5n%40googlegroups.com.

Reply via email to