Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use DB_URL #78

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading