akkudoktoreos.prediction.prediction

Prediction module for weather and photovoltaic forecasts.

This module provides a Prediction class to manage and update a sequence of prediction providers. The Prediction class is a subclass of PredictionContainer and is initialized with a set of forecast providers, such as WeatherBrightSky, WeatherClearOutside, and PVForecastAkkudoktor.

Usage:

Instantiate the Prediction class with the required providers, maintaining the necessary order. Then call the update method to refresh forecasts from all providers in sequence.

Example

# Create singleton prediction instance with prediction providers from akkudoktoreos.prediction.prediction import prediction

prediction.update_data() print(“Prediction:”, prediction)

Classes:

Prediction: Manages a list of forecast providers to fetch and update predictions.

akkudoktoreos.prediction.prediction.pvforecast_akkudoktor

Forecast provider for photovoltaic data.

Type:

PVForecastAkkudoktor

akkudoktoreos.prediction.prediction.weather_brightsky

Weather forecast provider using BrightSky.

Type:

WeatherBrightSky

akkudoktoreos.prediction.prediction.weather_clearoutside

Weather forecast provider using ClearOutside.

Type:

WeatherClearOutside

Functions

get_prediction()

Gets the EOS prediction data.

main()

Main function to update and display predictions.

Classes

Prediction(*args, providers)

Prediction container to manage multiple prediction providers.

PredictionCommonSettings(*[, hours, ...])

General Prediction Configuration.