Skip to content

Commit a2b59c1

Browse files
committed
Added method to get the wundergound icon text
1 parent 5c3ebf3 commit a2b59c1

File tree

6 files changed

+32
-25
lines changed

6 files changed

+32
-25
lines changed

.DS_Store

2 KB
Binary file not shown.

WundergroundClient.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ String WundergroundClient::getTodayIcon() {
412412
return getMeteoconIcon(weatherIcon);
413413
}
414414

415+
String WundergroundClient::getTodayIconText() {
416+
return weatherIcon;
417+
}
418+
415419
String WundergroundClient::getForecastIcon(int period) {
416420
return getMeteoconIcon(forecastIcon[period]);
417421
}

WundergroundClient.h

+26-23
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ class WundergroundClient: public JsonListener {
4040
String date = "-";
4141
boolean isMetric = true;
4242
String currentTemp;
43-
// JJG added ... ////////////////////////////////// define returns /////////////////////////////////
44-
String moonPctIlum; // not used
45-
String moonAge; // make this a long?
46-
String moonPhase;
47-
String sunriseTime;
48-
String sunsetTime;
49-
String moonriseTime;
50-
String moonsetTime;
51-
String windSpeed;
52-
String windDir;
53-
// end JJG add ////////////////////////////////////////////////////////////////////////////////////
43+
// JJG added ... ////////////////////////////////// define returns /////////////////////////////////
44+
String moonPctIlum; // not used
45+
String moonAge; // make this a long?
46+
String moonPhase;
47+
String sunriseTime;
48+
String sunsetTime;
49+
String moonriseTime;
50+
String moonsetTime;
51+
String windSpeed;
52+
String windDir;
53+
// end JJG add ////////////////////////////////////////////////////////////////////////////////////
5454
String weatherIcon;
5555
String weatherText;
5656
String humidity;
@@ -72,28 +72,31 @@ class WundergroundClient: public JsonListener {
7272
WundergroundClient(boolean isMetric);
7373
void updateConditions(String apiKey, String language, String country, String city);
7474
void updateForecast(String apiKey, String language, String country, String city);
75-
void updateAstronomy(String apiKey, String language, String country, String city); // JJG added
75+
void updateAstronomy(String apiKey, String language, String country, String city);
76+
// JJG added
7677
String getHours();
7778
String getMinutes();
7879
String getSeconds();
7980
String getDate();
80-
// JJG added ... ///////////////////function name to string ////////////////////////////
81-
String getMoonPctIlum();
82-
String getMoonAge();
83-
String getMoonPhase();
84-
String getSunriseTime();
85-
String getSunsetTime();
86-
String getMoonriseTime();
87-
String getMoonsetTime();
88-
String getWindSpeed();
89-
String getWindDir();
90-
// end JJG add ///////////////////////////////////////////////////////////////////////
81+
// JJG added ... ///////////////////function name to string ////////////////////////////
82+
String getMoonPctIlum();
83+
String getMoonAge();
84+
String getMoonPhase();
85+
String getSunriseTime();
86+
String getSunsetTime();
87+
String getMoonriseTime();
88+
String getMoonsetTime();
89+
String getWindSpeed();
90+
String getWindDir();
91+
// end JJG add ///////////////////////////////////////////////////////////////////////
9192
long getCurrentEpoch();
9293

9394
String getCurrentTemp();
9495

9596
String getTodayIcon();
9697

98+
String getTodayIconText();
99+
97100
String getMeteoconIcon(String iconText);
98101

99102
String getWeatherText();

examples/.DS_Store

2 KB
Binary file not shown.

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
},
1313
"frameworks": "arduino",
1414
"platforms": "espressif",
15-
"version": "1.1.1"
15+
"version": "1.1.2"
1616
}

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP8266 Weather Station
2-
version=1.1.1
2+
version=1.1.2
33
author=Daniel Eichhorn
44
maintainer=Daniel Eichhorn <[email protected]>
55
sentence=ESP8266 based internet connected Weather Station

0 commit comments

Comments
 (0)