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 @@ -136,6 +136,12 @@ void WundergroundClient::value(String value) {
136
136
if (currentKey == " pressure_in" && !isMetric) {
137
137
pressure = value + " in" ;
138
138
}
139
+ if (currentKey == " dewpoint_f" && !isMetric) {
140
+ dewPoint = value;
141
+ }
142
+ if (currentKey == " dewpoint_c" && isMetric) {
143
+ dewPoint = value;
144
+ }
139
145
if (currentKey == " precip_today_metric" && isMetric) {
140
146
precipitationToday = value + " mm" ;
141
147
}
@@ -252,6 +258,10 @@ String WundergroundClient::getPressure() {
252
258
return pressure;
253
259
}
254
260
261
+ String WundergroundClient::getDewPoint () {
262
+ return dewPoint;
263
+ }
264
+
255
265
String WundergroundClient::getPrecipitationToday () {
256
266
return precipitationToday;
257
267
}
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class WundergroundClient: public JsonListener {
44
44
String weatherText;
45
45
String humidity;
46
46
String pressure;
47
+ String dewPoint;
47
48
String precipitationToday;
48
49
void doUpdate (String url);
49
50
@@ -78,6 +79,8 @@ class WundergroundClient: public JsonListener {
78
79
79
80
String getPressure ();
80
81
82
+ String getDewPoint ();
83
+
81
84
String getPrecipitationToday ();
82
85
83
86
String getForecastIcon (int period);
You can’t perform that action at this time.
0 commit comments