frequenz.api.weather.weather_pb2 ¤
Generated protocol buffer code.
Attributes¤
frequenz.api.weather.weather_pb2.FORECAST_FEATURE_SURFACE_NET_SOLAR_RADIATION
module-attribute
¤
Amount of solar radiation (shortwave radiation, direct and diffused) that reaches a horizontal plane at the surface of the Earth minus the amount reflected by the Earth's surface (which is governed by the albedo). The value is the forecast of the average solar irradiance from the validity time until the next validity timestamp. Measured in W/m².
frequenz.api.weather.weather_pb2.FORECAST_FEATURE_SURFACE_SOLAR_RADIATION_DOWNWARDS
module-attribute
¤
Amount of solar radiation (shortwave radiation, direct and diffused) that reaches a horizontal plane at the surface of the Earth. The value is the forecast of the average solar irradiance from the validity time until the next validity timestamp. Measured in W/m².
frequenz.api.weather.weather_pb2.FORECAST_FEATURE_TEMPERATURE_2_METRE
module-attribute
¤
Temperature at 2 m above the earth's surface. It is the temperature of the air at a height of 2 metres above the surface of land, sea or in-land waters. Measured in Kelvin. To convert to Celsius, subtract 273.15.
frequenz.api.weather.weather_pb2.FORECAST_FEATURE_UNSPECIFIED
module-attribute
¤
Default value. When used, the API responds with all features listed below.
frequenz.api.weather.weather_pb2.FORECAST_FEATURE_U_WIND_COMPONENT_100_METRE
module-attribute
¤
Eastward component of the wind at 100 m altitude. It is the horizontal speed of air moving towards the east, at a height of 100 metres above the surface of the Earth. A positive value indicates eastward wind, and a negative value indicates westward wind. Typical range is -20 to 20 m/s. Measured in m/s.
frequenz.api.weather.weather_pb2.FORECAST_FEATURE_U_WIND_COMPONENT_10_METRE
module-attribute
¤
Eastward component wind at 10 m altitude. It is the horizontal speed of air moving towards the east, at a height of 10 metres above the surface of the Earth. A positive value indicates eastward wind, and a negative value indicates westward wind. Typical values are smaller than their 100 m counterparts since it is stronger influenced by local terrain, vegetation and buildings. Measured in m/s.
frequenz.api.weather.weather_pb2.FORECAST_FEATURE_V_WIND_COMPONENT_100_METRE
module-attribute
¤
Northward component wind at 100 m altitude. It is the horizontal speed of air moving towards the north, at a height of 100 metres above the surface of the Earth. A positive value indicates northward wind, and a negative value indicates southward wind. Typical range is -20 to 20 m/s. Measured in m/s.
frequenz.api.weather.weather_pb2.FORECAST_FEATURE_V_WIND_COMPONENT_10_METRE
module-attribute
¤
Northward component wind at 10 m altitude. It is the horizontal speed of air moving towards the north, at a height of 100 metres above the surface of the Earth. A positive value indicates northward wind, and a negative value indicates southward wind. Typical values are smaller than their 100 m counterparts since it is stronger influenced by local terrain, vegetation and buildings. Measured in m/s.
Classes¤
frequenz.api.weather.weather_pb2.ForecastFeature ¤
Bases: _ForecastFeature
Weather features (e.g. wind speeds or solar radiation) available for query through the API.
frequenz.api.weather.weather_pb2.GetHistoricalWeatherForecastRequest ¤
Bases: Message
The GetHistoricalWeatherForecastRequest
message defines parameters for
retrieving historical weather forecasts, targeting a specific location
and time period, with designated features.
Attributes¤
end_ts
property
¤
The UTC timestamp indicating the end of the requested historical forecast period.
features
property
¤
List of required features. If none are specified, all available features will be returned.
locations
property
¤
The locations for which the forecast is being requested. The maximum number of locations that can be requested is 50. If the request exceeds this limit, the API will respond with an error.
pagination_params
property
¤
The parameters define the 'page_size' and the 'page_token'. An inital query of a request will omit the 'page_token'. Subsequent queries of the same request must include the 'page_token' from the previous response.
start_ts
property
¤
The UTC timestamp indicating the start of the requested historical forecast period.
frequenz.api.weather.weather_pb2.GetHistoricalWeatherForecastResponse ¤
Bases: Message
The message encapsulates a collection of historical weather forecasts, each corresponding to a requested location.
frequenz.api.weather.weather_pb2.LocationForecast ¤
Bases: Message
The ForecastResponse
message provides a structured format for representing
forecast data for a specific location, including UTC timestamps for validity
and creation.
Attributes¤
creation_ts
property
¤
The UTC timestamp indicating when the forecast was originally created.
Classes¤
frequenz.api.weather.weather_pb2.ReceiveLiveWeatherForecastRequest ¤
Bases: Message
The ReceiveLiveWeatherForecastRequest
message defines parameters for
requesting live weather forecasts for a specified location, with designated
features.
Attributes¤
features
property
¤
List of required features. If none are specified, all available features will be streamed.
forecast_horizon_max
instance-attribute
¤
Maximum forecast horizon (in hours) to include in the returned forecasts. If not specified, forecasts up to their maximum available horizon will be returned. If the requested horizon exceeds the available forecast data, the maximum available horizon will be used.
forecast_horizon_min
instance-attribute
¤
Minimum forecast horizon (in hours) to include in the returned forecasts. Each forecast predicts weather conditions for a certain time span into the future (the forecast horizon). If not specified, forecasts starting from the earliest available horizon will be returned.
locations
property
¤
The locations for which the forecast is being requested. The maximum number of locations that can be requested is 50. If the request exceeds this limit, the API will respond with an error.
frequenz.api.weather.weather_pb2.ReceiveLiveWeatherForecastResponse ¤
Bases: Message
The message encapsulates a collection of live weather forecasts, each corresponding to a requested location.