/electricity_mix_traffic_light

Electricity Mix Traffic Light

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Electricity Mix Traffic Light

The returned status is intended to raise awareness about the current electricity mix. Based on this, people can consciously switch shiftable loads (such as washing machines or dishwashers) at times with a high renewable share. This conserves grid capacity and avoids the use of fossil fuels to generate electricity.

Description

With the help of this program, the current electricity mix of a European control area (freely selectable by the user) is evaluated and categorized with regard to the share of renewable energies (offshore wind, onshore wind, solar) - for example in a traffic light color scheme.

Forecast values from the entsoe-py platform are used as the data basis. Based on the shares of renewable energies of each hour of the last n and the next m days (freely selectable by the user) determined. From the frequency distribution of the different shares of renewable energies x quantiles (freely selectable by the user) are calculated. Each of these quantiles is assigned an attribute (for example, the colors of a traffic light).

For the current electricity mix, the current share of renewable energies and the status attribute are returned.

How To

Python 3.10 is required.

main_app(token='xxxxx', # An entsoe-py API token is required, which can be freely requested
         country_code='DE', # Controle area to be investigated, e.g. 'DE' for Germany
         no_of_quantiles=4, # Number of quantiles to be calculated
         color_scheme=['RED', 'ORANGE', 'YELLOW', 'GREEN'], # Status Attribute for every quantile
         days_in_past=5, # number of past days to be considered to calculate the quantiles
         days_in_future=5 # number of future days to be considered to calculate the quantiles
         )

Result

Result Output

Help Wanted!

We would like to host the electricity mix traffic light live as a web service. Feel free to contact us if you would like to contribute.

christian.klemm@fh-muenster.de