Skip to content

Commit

Permalink
use DB_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Oct 30, 2024
1 parent d369342 commit c4920ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ poetry run pytest tests

## Environmental Variables

- DB_URL: The database url which the forecasts will be saved too
- API_KEY: API key for pvoutput.org
- SYSTEM_ID: System id for pvoutput.org
- DATA_SERVICE_URL: data service url for pvoutput.org
- SS_URL: Sheffield Solar URL
- SS_API_KEY: Sheffield Solar API key
- SS_SYSTEM_ID: Sheffield Solar System ID
- DB_URL: Save in database to the pv database
- DB_URL_FORECAST: Let the database not that this service has run, `input_data_last_updatded` table
- DB_URL_PV_SITE: PV Site database

## Contributors ✨

Expand Down
3 changes: 1 addition & 2 deletions pvconsumer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
@click.option(
"--db-url",
default=None,
envvar="DB_URL_PV_SITE",
envvar="DB_URL",
help="The PV site Database URL where update latest data will be saved",
type=click.STRING,
)
Expand All @@ -70,7 +70,6 @@ def app(
Run PV consumer app, this collect live PV data and save it to a database.
:param db_url: the Database url to save the PV system data
:param db_url_forecast: the Database url to save the Input data last updated
:param filename: the local file name for the pv systems
:return:
"""
Expand Down

0 comments on commit c4920ac

Please sign in to comment.