eta_nexus.nodes.wetterdienst_node module

class eta_nexus.nodes.wetterdienst_node.WetterdienstNode(name: str, url: str, protocol: str, *args: Any, **kwargs: Any)[source]

Bases: Node

Abstract Base Node for the Wetterdienst API. This class is not meant to be used directly, but to be subclassed by WetterdienstObservationNode and WetterdienstPredictionNode.

parameter: str

Parameter to read from wetterdienst (e.g HUMIDITY or TEMPERATURE_AIR_200)

station_id: str | None

The id of the weather station

latlon: str | None

latitude and longitude (not necessarily a weather station)

number_of_stations: int | None

Number of stations to be used for the query

class eta_nexus.nodes.wetterdienst_node.WetterdienstObservationNode(name: str, url: str, protocol: str, *args: Any, **kwargs: Any)[source]

Bases: WetterdienstNode

Node for the Wetterdienst API to get weather observations. For more information see: https://wetterdienst.readthedocs.io/en/latest/data/provider/dwd/observation/.

interval: str

Redeclare interval attribute, but don’t allow it to be optional

static convert_interval_to_resolution(interval: int | str | timedelta) str[source]
class eta_nexus.nodes.wetterdienst_node.WetterdienstPredictionNode(name: str, url: str, protocol: str, *args: Any, **kwargs: Any)[source]

Bases: WetterdienstNode

Node for the Wetterdienst API to get weather predictions. For more information see: https://wetterdienst.readthedocs.io/en/latest/data/provider/dwd/mosmix/.

mosmix_type: str

Type of the MOSMIX prediction. Either ‘SMALL’ or ‘LARGE’