Skip to content

Commit

Permalink
Swithed to http
Browse files Browse the repository at this point in the history
The online API for the calculations of sunrise and sunset in the future has a broken SSL certificate - switched to plain http....
  • Loading branch information
J-Lindvig authored Apr 18, 2022
1 parent 47d5b4d commit 1215b8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/flagdays_dk/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
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'

CREDITS = [
{ '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)' }
]
]

0 comments on commit 1215b8e

Please sign in to comment.