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 ID

  • component_map (dict[str, Any]) – mapping of the components

  • start (Union[str, datetime]) – start of the period

  • end (Union[str, datetime]) – end of the period

  • resolution (str) – resolution of the data (raw, minute/5min, hour, day, week, month, year) Note: raw, minute/5min are overwritten to hour

  • kwargs

    /

Return type:

DataFrame

Returns:

loaded data in DataFrame format