„sunshine“-Array hat fehlerhaften Beginn
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.
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.
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!