From e10fc08d1be3f4b3cf32bfc3e935abb8c2742793 Mon Sep 17 00:00:00 2001 From: foxalex85 Date: Wed, 1 Feb 2017 15:54:34 +0100 Subject: [PATCH 1/2] Update WundergroundClient.cpp --- WundergroundClient.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/WundergroundClient.cpp b/WundergroundClient.cpp index 5ad964e..1e0ea46 100644 --- a/WundergroundClient.cpp +++ b/WundergroundClient.cpp @@ -56,6 +56,11 @@ void WundergroundClient::updateForecast(String apiKey, String language, String c doUpdate("/api/" + apiKey + "/forecast10day/lang:" + language + "/q/" + country + "/" + city + ".json"); } +void WundergroundClient::updateForecast(String apiKey, String language, String zmwCode) { + isForecast = true; + doUpdate("/api/" + apiKey + "/forecast10day/lang:" + language + "/q/zmw:" + zmwCode + ".json"); +} + // JJG added //////////////////////////////// void WundergroundClient::updateAstronomy(String apiKey, String language, String country, String city) { isForecast = true; @@ -757,4 +762,4 @@ String WundergroundClient::getMeteoconIcon(String iconText) { if (iconText == "nt_tstorms") return "&"; return ")"; -} \ No newline at end of file +} From e28e0df885b475ee9ca4877ba59d5cad545786cd Mon Sep 17 00:00:00 2001 From: Alessandro Date: Wed, 1 Feb 2017 16:18:51 +0100 Subject: [PATCH 2/2] Update WundergroundClient.h --- WundergroundClient.h | 1 + 1 file changed, 1 insertion(+) diff --git a/WundergroundClient.h b/WundergroundClient.h index d1ea028..7573e40 100644 --- a/WundergroundClient.h +++ b/WundergroundClient.h @@ -104,6 +104,7 @@ class WundergroundClient: public JsonListener { void updateConditions(String apiKey, String language, String country, String city); void updateConditions(String apiKey, String language, String zmwCode); void updateForecast(String apiKey, String language, String country, String city); + void updateForecast(String apiKey, String language, String zmwCode); void updateAstronomy(String apiKey, String language, String country, String city); void updateAlerts(String apiKey, String language, String country, String city); // Added by fowlerk, 18-Dec-2016 void initMetric(boolean isMetric); // Added by fowlerk, 12/22/16, as an option to change metric setting other than at instantiation