Skip to content

Commit 6ffb10f

Browse files
authored
Merge pull request #53 from foxalex85/patch-1
Update WundergroundClient.cpp
2 parents 1e522a0 + e28e0df commit 6ffb10f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

WundergroundClient.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ void WundergroundClient::updateForecast(String apiKey, String language, String c
5656
doUpdate("/api/" + apiKey + "/forecast10day/lang:" + language + "/q/" + country + "/" + city + ".json");
5757
}
5858

59+
void WundergroundClient::updateForecast(String apiKey, String language, String zmwCode) {
60+
isForecast = true;
61+
doUpdate("/api/" + apiKey + "/forecast10day/lang:" + language + "/q/zmw:" + zmwCode + ".json");
62+
}
63+
5964
// JJG added ////////////////////////////////
6065
void WundergroundClient::updateAstronomy(String apiKey, String language, String country, String city) {
6166
isForecast = true;
@@ -757,4 +762,4 @@ String WundergroundClient::getMeteoconIcon(String iconText) {
757762
if (iconText == "nt_tstorms") return "&";
758763

759764
return ")";
760-
}
765+
}

WundergroundClient.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class WundergroundClient: public JsonListener {
104104
void updateConditions(String apiKey, String language, String country, String city);
105105
void updateConditions(String apiKey, String language, String zmwCode);
106106
void updateForecast(String apiKey, String language, String country, String city);
107+
void updateForecast(String apiKey, String language, String zmwCode);
107108
void updateAstronomy(String apiKey, String language, String country, String city);
108109
void updateAlerts(String apiKey, String language, String country, String city); // Added by fowlerk, 18-Dec-2016
109110
void initMetric(boolean isMetric); // Added by fowlerk, 12/22/16, as an option to change metric setting other than at instantiation

0 commit comments

Comments
 (0)