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 +} 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