From e4d86628aa2f46cd30f4653bc3ebb64322a36957 Mon Sep 17 00:00:00 2001 From: JayWll Date: Sat, 16 May 2020 15:34:59 -0600 Subject: [PATCH] Change to method used for retrieving settings data from Settings::instance() to Settings::get() Seems simpler and more reliable. --- .../calgaryconditions/components/CurrentInfo.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/www/plugins/jasonwilliams/calgaryconditions/components/CurrentInfo.php b/www/plugins/jasonwilliams/calgaryconditions/components/CurrentInfo.php index 4412b82..a89e0c4 100644 --- a/www/plugins/jasonwilliams/calgaryconditions/components/CurrentInfo.php +++ b/www/plugins/jasonwilliams/calgaryconditions/components/CurrentInfo.php @@ -1,15 +1,13 @@ weatherstack_api_key.'&query=Calgary')); + return json_decode(Http::get('http://api.weatherstack.com/current?access_key='.Settings::get('weatherstack_api_key').'&query=Calgary')); }); date_default_timezone_set('America/Edmonton');