Skip to content

Commit c8d4161

Browse files
committed
Add current feels_like (#212)
1 parent 0310d33 commit c8d4161

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/OpenWeatherMapCurrent.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ void OpenWeatherMapCurrent::value(String value) {
137137
if (currentKey == "temp") {
138138
this->data->temp = value.toFloat();
139139
}
140+
// "feels_like": 290.87, float feelsLike;
141+
if (currentKey == "feels_like") {
142+
this->data->feelsLike = value.toFloat();
143+
}
140144
// "pressure": 1013, uint16_t pressure;
141145
if (currentKey == "pressure") {
142146
this->data->pressure = value.toInt();

src/OpenWeatherMapCurrent.h

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ typedef struct OpenWeatherMapCurrentData {
4141
String iconMeteoCon;
4242
// "temp": 290.56,
4343
float temp;
44+
// feels_like 290.87
45+
float feelsLike;
4446
// "pressure": 1013,
4547
uint16_t pressure;
4648
// "humidity": 87,

0 commit comments

Comments
 (0)