Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Question: Acquisition interval and weather alerts #342

Open
jwillmer opened this issue Feb 4, 2021 · 2 comments
Open

API Question: Acquisition interval and weather alerts #342

jwillmer opened this issue Feb 4, 2021 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@jwillmer
Copy link

jwillmer commented Feb 4, 2021

I would like to use the app as a proxy to query the DWD - so I get an easy WEB API and reduce the load on the actual DWD site. I read the docs but I couldn't find all information I was looking for. In particular:

  • How often does this app query the DWD and can I modify it?
  • Can I also get the weather alerts from the WEB API or is this something you do not provide (yet?)
@amotl
Copy link
Member

amotl commented Feb 4, 2021

Dear Jens,

thank you for looking into this and also thanks for asking. Let me tell you a bit more about the background of the subsystem you are investigating here: The HTTP API was just a quick shot to accompany the CLI API we added the other day, see #55 and #178. While it might work reasonably already, it should definitively get more love.

Caching and scheduling

In general, we want to improve and refine the situation with this subsystem in order to make it production ready. The details you are talking about resonate very much with that. While we want to provide a convenient and sound general purpose HTTP API, we are also looking at things like #281.

In order to make that possible, we will probably have to improve the current situation with the caching logic, see also #243. The current cache implementation is located at wetterdienst.util.cache. So, this might fit your bill already and will get you an insight into how Wetterdienst already tries to be efficient in order not to hit upstream on each and every request. We will be happy to hear back from you if you think those cache ttl values should be adjusted into any direction to better serve your needs.

Weather alerts

When talking about weather alerts, you are referring to [1]? Our take: In general, yes, we would very much like to also ingest and process this data, but there is no subsystem module available within Wetterdienst yet.

While we haven't been able to add a documentation page about other excellent programs in this area yet, I want to specifically point out Unwetter [2], FOSS Weather [3] and MMM-DWD-WarnWeather [4] here. Beyond weather alerts, there is also Bright Sky [5], which is worth mentioning.

Thoughts

We would very much like to stay in touch in order to improve the situation with the HTTP API of Wetterdienst and might move this into a dedicated discussion thread. Please let us know if you have further questions or ideas.

With kind regards,
Andreas.

[1] https://opendata.dwd.de/weather/alerts/
[2] https://github.com/wdr-data/unwetter
[3] https://github.com/scoute-dich/Weather
[4] https://github.com/LukeSkywalker92/MMM-DWD-WarnWeather
[5] https://github.com/jdemaeyer/brightsky

@jwillmer
Copy link
Author

jwillmer commented Feb 4, 2021

Wow, just wow. Love this detailed answer! The caching times looks good to me. And the referred alert API [1] is the one I was also thinking about. I will definitely look into your provided links and see if other services will fit. I will stay subscribed to the repo to track progress. I'm not a python developer so I can't really help but I would be happy to test the API as soon as you feel it is ready.

@amotl amotl changed the title [Question] API Functionallity [Question] API Functionality Feb 5, 2021
@gutzbenj gutzbenj added question Further information is requested enhancement New feature or request labels Apr 13, 2021
@amotl amotl changed the title [Question] API Functionality API Question: Acquisition interval and weather alerts Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants