File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,12 @@ void WundergroundClient::value(String value) {
238
238
if (currentKey == " pressure_in" && !isMetric) {
239
239
pressure = value + " in" ;
240
240
}
241
+ if (currentKey == " dewpoint_f" && !isMetric) {
242
+ dewPoint = value;
243
+ }
244
+ if (currentKey == " dewpoint_c" && isMetric) {
245
+ dewPoint = value;
246
+ }
241
247
if (currentKey == " precip_today_metric" && isMetric) {
242
248
precipitationToday = value + " mm" ;
243
249
}
@@ -394,6 +400,10 @@ String WundergroundClient::getPressure() {
394
400
return pressure;
395
401
}
396
402
403
+ String WundergroundClient::getDewPoint () {
404
+ return dewPoint;
405
+ }
406
+
397
407
String WundergroundClient::getPrecipitationToday () {
398
408
return precipitationToday;
399
409
}
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ class WundergroundClient: public JsonListener {
55
55
String weatherText;
56
56
String humidity;
57
57
String pressure;
58
+ String dewPoint;
58
59
String precipitationToday;
59
60
void doUpdate (String url);
60
61
@@ -101,6 +102,8 @@ class WundergroundClient: public JsonListener {
101
102
102
103
String getPressure ();
103
104
105
+ String getDewPoint ();
106
+
104
107
String getPrecipitationToday ();
105
108
106
109
String getForecastIcon (int period);
You can’t perform that action at this time.
0 commit comments