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

„sunshine“-Array hat fehlerhaften Beginn #21

Open
bronger opened this issue Mar 8, 2024 · 2 comments
Open

„sunshine“-Array hat fehlerhaften Beginn #21

bronger opened this issue Mar 8, 2024 · 2 comments

Comments

@bronger
Copy link

bronger commented Mar 8, 2024

In https://dwd.api.proxy.bund.dev/v30/stationOverviewExtended?stationIds=10505 enthält "sunshine" in "forecast1" folgendes Array:

[
    490, 540, 540, 530, 530, 530, 510, 470, 370, 190,   0,   0,   0,   0,
      0,   0,   0,   0,   0,   0,   0,   0,  80, 210, 320, 390, 410, 390,
    370, 340, 270, 230, 140,  50,   0,   0,   0,   0,   0,   0,   0,   0,
      0,   0,   0,   0,  30, 100, 170, 200, 220, 210, 180, 150, 120,  80,
     10,   0,   0,   0,   0,   0,   0
  ]

Das ergibt keinen Sinn wenn man bedenkt, daß das stündliche Werte sind, die bei Mitternacht beginnen. In "forecast2" sieht es sinnvoll aus:

[
      0,   0, 110, 400, 430, 200,  10,   0,   0,   0, 160, 560, 540, 390,
     40,   0,   0,   0, 220, 630, 650, 400,  30,   0,   0,   0, 280, 720,
    660, 450,  30,   0,   0,   0, 230, 560, 590, 400,  30,   0,   0,   0,
    240, 620, 610, 450,  50,   0,   0,   0, 290, 620, 620, 450,  60,   0
  ]

Hier liegen 3 Stunden zwischen zwei Einträgen, d.h. die Sonne fängt um 6 Uhr morgens an zu scheinen. Das ist plausibel.

@wirthual
Copy link
Member

wirthual commented Jul 1, 2024

Hi @bronger ,

Good catch, seems this is a problem in the implementation of the API.

We are only documenting the Endpoints dwd provides so for changes you have to contact dwd directly.

Here are some possible contacts:
https://www.dwd.de/DE/klimaumwelt/ku_beratung/ansprechpartner/klimabueros_node.html

Good luck and let us know how it goes.

@crizzzly
Copy link

crizzzly commented Jul 1, 2024

am i getting this right: "sunshine" contains values from night times - even though there is no sun at night?

this would be exactly what i need ;)
"sunshine" at night means clear skies for astronomers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants