Skip to content

Commit e10fc08

Browse files
authored
Update WundergroundClient.cpp
1 parent b383a85 commit e10fc08

File tree

1 file changed

+6
-1
lines changed

1 file changed

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

0 commit comments

Comments
 (0)