From 532dff9a38860c4264b3d3b187484d20bebf5650 Mon Sep 17 00:00:00 2001 From: Generoso Martello Date: Tue, 16 Jun 2020 20:02:04 +0200 Subject: [PATCH] - Removed OpenWeatherMap app debug output --- BaseFiles/Common/programs.xml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/BaseFiles/Common/programs.xml b/BaseFiles/Common/programs.xml index 3207593a1..ee6ab256a 100644 --- a/BaseFiles/Common/programs.xml +++ b/BaseFiles/Common/programs.xml @@ -749,12 +749,7 @@ When.WebServiceCallReceived("HomeAutomation.OpenWeatherMap", (args) => { if (query.IndexOf("?") > 0) { query = query.Substring(0, query.IndexOf("?")); } - string apikey = Program.Option("ApiKey").Value.Trim(); - if (apikey.Contains("?") || apikey.Length == 0) { - // default OWM key - apikey = "439d4b804bc8187953eb36d2a8c26a02"; - } - Program.Notify(apikey); + string apikey = "439d4b804bc8187953eb36d2a8c26a02"; var result = Net.WebService("https://openweathermap.org/data/2.5/find?type=like&sort=population&cnt=10&appid=" + apikey + "&q=" + query).GetData(); var matches = new List<dynamic>(); foreach (var match in result.list) {