File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,12 @@ void WundergroundClient::value(String value) {
136136 if (currentKey == " pressure_in" && !isMetric) {
137137 pressure = value + " in" ;
138138 }
139+ if (currentKey == " dewpoint_f" && !isMetric) {
140+ dewPoint = value;
141+ }
142+ if (currentKey == " dewpoint_c" && isMetric) {
143+ dewPoint = value;
144+ }
139145 if (currentKey == " precip_today_metric" && isMetric) {
140146 precipitationToday = value + " mm" ;
141147 }
@@ -252,6 +258,10 @@ String WundergroundClient::getPressure() {
252258 return pressure;
253259}
254260
261+ String WundergroundClient::getDewPoint () {
262+ return dewPoint;
263+ }
264+
255265String WundergroundClient::getPrecipitationToday () {
256266 return precipitationToday;
257267}
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class WundergroundClient: public JsonListener {
4444 String weatherText;
4545 String humidity;
4646 String pressure;
47+ String dewPoint;
4748 String precipitationToday;
4849 void doUpdate (String url);
4950
@@ -78,6 +79,8 @@ class WundergroundClient: public JsonListener {
7879
7980 String getPressure ();
8081
82+ String getDewPoint ();
83+
8184 String getPrecipitationToday ();
8285
8386 String getForecastIcon (int period);
You can’t perform that action at this time.
0 commit comments