Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion WundergroundClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -757,4 +762,4 @@ String WundergroundClient::getMeteoconIcon(String iconText) {
if (iconText == "nt_tstorms") return "&";

return ")";
}
}
1 change: 1 addition & 0 deletions WundergroundClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down