preheat_open.data.load_weather_data¶
- preheat_open.data.load_weather_data(location_id, component_map, start, end, resolution='hour', **kwargs)¶
Loads weather data from the API
- Parameters:
location_id (
int
) – location IDcomponent_map (
dict
[str
,Any
]) – mapping of the componentsstart (
Union
[str
,datetime
]) – start of the periodend (
Union
[str
,datetime
]) – end of the periodresolution (
str
) – resolution of the data (raw, minute/5min, hour, day, week, month, year) Note: raw, minute/5min are overwritten to hourkwargs –
/
- Return type:
DataFrame
- Returns:
loaded data in DataFrame format