jdemaeyer / brightsky

JSON API for DWD's open weather data.
https://brightsky.dev/
MIT License
287 stars 18 forks source link

Solar power #141

Closed chrbru closed 1 year ago

chrbru commented 1 year ago

Hi, thank's for asking what I am looking for. Maybe my request was already mentioned somewhere and I was blind to find it. What I like to have on hourly base is a prediction for today and tomorrow about the expected solar radiation. Something like Wh / m². Or I can tell you how my solar panels are aligned in relation to compass direction and inclination, and the api responds with the expected solar power. With this data I like to pre-control my solar based equipment.

jdemaeyer commented 1 year ago

Hi @chrbru, thanks for reaching out!

You have great timing - I am actually in the process of adding a solar field, which will be the hourly global irradiation (in J/m²). I hope to launch this as an experimental / undocumented feature tomorrow morning, I'll post here once it's live!

jdemaeyer commented 1 year ago

One of these days I'll learn to always double my estimates...

I have just released v2.0.1 :tada:. This release makes solar irradiation available as

The database should fill up within the next hour as we (re-)parse the DWD files.

solar is the global irradiation for the past hour. It will be returned as kWh / m² if you're using the default dwd units, or J / m² if you're using si units.

@chrbru If you can find the time, I would love some feedback if the values look reasonable.

jdemaeyer commented 1 year ago

Closing as this is now officially part of the API :)