Closed asmod3us closed 3 weeks ago
We're having the same issue. It seems to be similar to issue 1277
The stations list was updated again on May 14 and the column labels and data below seem to be misaligned: https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/daily/kl/recent/
Same problem here
Oh wow, there's now a complete chaos amongst all station lists :/ will try to find a solution asap
@gutzbenj: You probably have a way better grasp on parsing the lists. My solution would be something like replacing whitespace in the Text with commas and then treating the lists as csv
@LalonSander I think it is not as simple as that because there are some station names with one or more whitespaces and commas in it. But nonetheless I will try my best to build a more sustainable (and similarly fast) solution.
New version should have fixed it, please give it a try!
Confirmed working again! Thanks @gutzbenj for the quick fix 👍 I had to delete the cache at ~/Library/Caches/wetterdienst
to get going again.
We're up and running again, thnsk for the quick fix!
Yes it works, thx for the fix!
Can we persuade the DWD somehow to format its files such that they are more easily machine-readable? This has really bugged me multiple times. If they would at least use a separator other than space, it would make life so much easier, not only for wetterdienst
As @jeremiahpslewis once said: The DWDs most important task here is to make the data available and we (private entities) are there to provide the data even nicer. Still though some normal separator would be nice :D
Describe the bug Reading through https://wetterdienst.readthedocs.io/en/latest/usage/cli.html, I attempted a few commands. E.g.
wetterdienst stations --provider=dwd --network=observation --parameter=kl --resolution=daily --all
Fails with
To Reproduce Python 3.12.3, fresh
pip install wetterdienst
in a new venv.Expected behavior A list of stations as JSON :)
Desktop (please complete the following information):
Additional context I attempted to run a few other Command Line examples and got the same error. The streamlit app also seems to have issues, and other (previously working) programs using wetterdienst exhibit the same behaviour. Could this be a backend issue / change in data format? I noticed #1272 talks about a similar error: