From 3575d93dd0349b1b5d5025cd2531ae9e811f5b69 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 4 Oct 2022 08:24:52 +0200 Subject: adding prefix to environmental variables --- yr2pgsql.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'yr2pgsql.py') diff --git a/yr2pgsql.py b/yr2pgsql.py index f37f0be..28bb06e 100755 --- a/yr2pgsql.py +++ b/yr2pgsql.py @@ -6,11 +6,11 @@ import json import psycopg2 import requests -lat = str(os.environ['yr_lat']) -lon = str(os.environ['yr_lon']) +lat = str(os.environ['el_yr_lat']) +lon = str(os.environ['el_yr_lon']) -pg_db = os.environ['pg_db'] -pg_host = os.environ['pg_host'] +pg_db = os.environ['el_pg_db'] +pg_host = os.environ['el_pg_host'] pg_table = "yr" apiUrl = "https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=" + lat + "&lon=" + lon -- cgit v1.2.3