Skip to content

Commit

Permalink
use pvlive 1.4.0 ad use correct url
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 18, 2024
1 parent a494623 commit e08cf89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pvliveconsumer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ def pull_data_and_save(
:param datetime_utc: datetime now, this is optional
"""

pvlive = PVLive()
pvlive.base_url = "https://api.pvlive.uk/pvlive/api/v4/"
pvlive = PVLive(domain_url="api.pvlive.uk")

if datetime_utc is None:
datetime_utc = datetime.utcnow().replace(tzinfo=timezone.utc) # add timezone
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ urllib3
requests
nowcasting_datamodel==1.5.46
sentry-sdk==2.13.0
#git+https://github.com/SheffieldSolar/PV_Live-API#pvlive_api
click
pvlib
pvlive-api==1.4.0

0 comments on commit e08cf89

Please sign in to comment.