earthobservations / wetterdienst

Open weather data for humans.
https://wetterdienst.readthedocs.io/
MIT License
350 stars 54 forks source link

Forecast CLI commands fail with DWD provider: No API available for provider DWD and network forecast #593

Closed saschnet closed 2 years ago

saschnet commented 2 years ago

Describe the bug I am not able to obtain forecast data with the cli. When setting network to forecast, I always receive a No API available for provider DWD and network forecast error using the newest docker image ghcr.io/earthobservations/wetterdienst-standard.

The other cli commands work, as far as I was able to test it, correctly.

To Reproduce Execute the forecast cli command from the documentation

docker run -it --rm ghcr.io/earthobservations/wetterdienst-standard wetterdienst values --provider=dwd --network=forecast --parameter=ttt,ff --resolution=large --station=65510

The response: No API available for provider DWD and network forecast

Expected behavior I would expect to obtain forecast values.

Desktop (please complete the following information):

saschnet commented 2 years ago

I was just able to fix it with a closer look into the api. The correct command would be

docker run -it --rm ghcr.io/earthobservations/wetterdienst-standard wetterdienst values --provider=dwd --network=mosmix --station=65510 --parameter=ttt,ff --resolution=large

Seems like that the documentation has not been updated for the CLI commands to use the network mosmix instead of forecast.

Thanks for this great tool!

gutzbenj commented 2 years ago

Dear @saschnet ,

great that you could already fix it on your own and sorry for the outdated documentation in this case! I had just renamed the module from mosmix to forecast and obviously forget to update this part of the documentation!

If you have further suggestions please let us know what to change/improve as we are always looking for feedback on this side.

Cheers Benjamin

saschnet commented 2 years ago

Dear @gutzbenj,

thanks for your quick response. Since I am currently a little bit lost where to find the exact names of the huge amount of parameters, I tried to explore them via the UI interface. While it works fine for the historical observations, it looks like there are also some renaming issues for the MOSMIX frontend component:

grafik grafik

I cannot select any parameter of any dataset in the UI Explorer and as you see there are issues raised in the console in the docker backend.

So besides this additional fix, a list of the main parameters in the documentation would be helpful for a starter like me (I guess this would be the job of DWD to provide a better documentation actually, but I doubt this will happen). EDIT: Perhaps provide a link to this file: https://www.dwd.de/DE/leistungen/met_verfahren_mosmix/mosmix_parameteruebersicht.pdf

Once I am into the topic and understand what is happing, I will also send PRs on such fixes for the code and documentation since I have some experience FastAPI and Python.