kilianknoll / DWDForecast

Python module to query the DWD Mosmix data for irridation - and other relevant data to forecast solar generation
GNU General Public License v3.0
34 stars 4 forks source link

dwdforecast

Introduction

This library provides a Python interface to access DWD weatherforecast data to project solar power generation: It will extract the following data from a MOSMIX file -see further down below for specifications

It uses pvlib to leverage the parameters above in conjunction with a configurable solar system and present hourly forecast the next 10 days. Forecast data contains:

It has been tested with Python version 3.10.5, 3.9.2 (OLD: 3.6.2, 3.7.3)

Tested with


* Raspberry & Windows

Installation
------------
Clone / Download repo and use dwdforecast.py 

Configuration
-------------

To adapt to your needs - familiarize yourself with the content of data we are about to parse  (Keyword : Mosmix):
https://www.dwd.de/DE/leistung…_blob=publicationFile&v=3

List of available (virtual) weatherstations:
https://www.dwd.de/DE/leistung…=nasPublication&nn=495490

Please check the closest weatherstation to your location:
https://wettwarn.de/mosmix/mosmix.html

Once you found the closest station, note the number and change the python script in the inline comments to your needs

Next major section is the configuration is to change the solar system´s key characteristics such as location, azimuth, elevation, inverter, pannels etc.
Please see configuration.ini file for more description.

Running the script
------------------
python3 dwdforecast.py

Features

Disclaimer

.. Warning::

Please note that you are responsible to operate this program and comply with regulations imposed on you by other Website providers (such as the DWD website being polled)

Therefore, the author does not provide any guarantee or warranty concerning to correctness, functionality or performance and does not accept any liability for damage caused by this module, examples or mentioned information.

Thus, use it on your own risk!

License

Distributed under the terms of the GNU General Public License v3.