Skip to content

Commit

Permalink
update to use sheffield_solar_static_data/table_data
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 3, 2024
1 parent 1b20637 commit 2680148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pvconsumer/solar_sheffield_passiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def get_all_systems_from_solar_sheffield(pv_system_ids: List[int] = None) -> pd.
"""
logger.debug("Getting all pv systems")

full_url = f"{url}owner_system_params_rounded?user_id={user_id}&key={key}"
full_url = f"{url}sheffield_solar_static_data/table_data?user_id={user_id}&key={key}"
response = requests.get(full_url)
assert response.status_code == 200, f"Cant get data from {url}owner_system_params_rounded"
assert response.status_code == 200, f"Cant get data from {url}sheffield_solar_static_data/table_data"

data_df = raw_to_dataframe(response=response)

Expand Down

0 comments on commit 2680148

Please sign in to comment.