From 5388feaab4c7da0551cdd9f6e92b3c3a60584bef Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Thu, 5 Dec 2024 11:26:47 +0000 Subject: [PATCH 1/2] new pvlive url --- cloud_archives/pv/passiv/ss_rawdata_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud_archives/pv/passiv/ss_rawdata_api.py b/cloud_archives/pv/passiv/ss_rawdata_api.py index 4b4983f..66f0b8e 100644 --- a/cloud_archives/pv/passiv/ss_rawdata_api.py +++ b/cloud_archives/pv/passiv/ss_rawdata_api.py @@ -26,7 +26,7 @@ class ProxyDict(TypedDict): class SSRawDataAPI: def __init__(self, user_id: Union[int, str], api_key: str, proxies: Optional[ProxyDict] = None): - self.base_url = "https://api.solar.sheffield.ac.uk/rawdata/api/v4" + self.base_url = "https://api.pvlive.uk/rawdata/api/v4" # self.base_url = "https://staging.solar.shef.ac.uk/rawdata/api/v4" self.max_range = datetime.timedelta(days=1) self.proxies = proxies From e8cc229d231574a7885c7b0270a7f389861312c6 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Thu, 5 Dec 2024 13:40:34 +0000 Subject: [PATCH 2/2] update date --- tests/cloud_archives/pv/test_passiv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cloud_archives/pv/test_passiv.py b/tests/cloud_archives/pv/test_passiv.py index 6e9139d..6cdbe6e 100644 --- a/tests/cloud_archives/pv/test_passiv.py +++ b/tests/cloud_archives/pv/test_passiv.py @@ -4,5 +4,5 @@ def test_get_daily_passiv_data(): - start_date = datetime(2022, 1, 1, tzinfo=timezone.utc) + start_date = datetime(2024, 12, 5, tzinfo=timezone.utc) get_monthly_passiv_data(start_date, upload_to_hf=False, overwrite=True)