From c4920ac1e6242b29a3dfec21b6a4d3441082e9b7 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Wed, 30 Oct 2024 09:49:09 +0000 Subject: [PATCH] use DB_URL --- README.md | 6 +++--- pvconsumer/app.py | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 32a09a5..c179db4 100644 --- a/README.md +++ b/README.md @@ -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 ✨ diff --git a/pvconsumer/app.py b/pvconsumer/app.py index 37dd3f0..2a1d5df 100644 --- a/pvconsumer/app.py +++ b/pvconsumer/app.py @@ -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, ) @@ -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: """