Skip to content

Commit

Permalink
- Removed OpenWeatherMap app debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
genemars committed Jun 16, 2020
1 parent afaea40 commit 532dff9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions BaseFiles/Common/programs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 532dff9

Please sign in to comment.