From 1215b8ed2837fd7f18e43c6b9edc22d691c728dd Mon Sep 17 00:00:00 2001 From: J-Lindvig <54498188+J-Lindvig@users.noreply.github.com> Date: Mon, 18 Apr 2022 20:34:38 +0200 Subject: [PATCH] Swithed to http The online API for the calculations of sunrise and sunset in the future has a broken SSL certificate - switched to plain http.... --- custom_components/flagdays_dk/const.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/flagdays_dk/const.py b/custom_components/flagdays_dk/const.py index efb2ac2..0d0fd6a 100644 --- a/custom_components/flagdays_dk/const.py +++ b/custom_components/flagdays_dk/const.py @@ -18,7 +18,7 @@ HALF_MAST_DAYS = ['besættelsesdagen', 'langfredag'] HALF_MAST_ALL_DAY_STR = 'hele dagen' MONTHS_DK = ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'] -SUN_URL = 'https://api.sunrise-sunset.org/json' +SUN_URL = 'http://api.sunrise-sunset.org/json' UPDATE_INTERVAL = 60 UTC_FORMAT = '%Y-%m-%dT%H:%M:%S%z' @@ -26,4 +26,4 @@ { 'Created by': 'J-Lindvig (https://github.com/J-Lindvig)' }, { 'Data provided by': 'Justitsministeriet (' + FLAGDAY_URL + ')' }, { 'Sunrise/sunset provided by': 'Sunrise-Sunset (https://sunrise-sunset.org/api)' } -] \ No newline at end of file +]