From 50c21613f58bb95bc391938c280d3ab79a4eb215 Mon Sep 17 00:00:00 2001 From: Jan Knieling Date: Sun, 12 Feb 2023 19:45:29 +0100 Subject: [PATCH] Update pvoutputorg.py Updated API specification URL and changed base url from http:// to https:// (TLS support) --- smadata2/pvoutputorg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smadata2/pvoutputorg.py b/smadata2/pvoutputorg.py index 50ee15c..5629ba5 100644 --- a/smadata2/pvoutputorg.py +++ b/smadata2/pvoutputorg.py @@ -78,7 +78,7 @@ def format_datetime(dt): class API(object): """Represents the pvoutput.org web API, for a particular system - API documentation can be found at http://pvoutput.org/help.html#api-spec""" + API documentation can be found at https://pvoutput.org/help/api_specification.html""" def __init__(self, baseurl, apikey, sid): if not baseurl: @@ -334,7 +334,7 @@ def days_ago_accepted_by_api(self): def main(): if len(sys.argv) == 3: - baseurl = "http://pvoutput.org" + baseurl = "https://pvoutput.org" apikey = sys.argv[1] sid = sys.argv[2] elif len(sys.argv) == 4: