Skip to content

Commit

Permalink
Add current feels_like (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstoer authored May 15, 2023
1 parent 0310d33 commit 6820941
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/OpenWeatherMapCurrent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ void OpenWeatherMapCurrent::value(String value) {
if (currentKey == "temp") {
this->data->temp = value.toFloat();
}
// "feelsLike": 290.87, float feelsLike;
if (currentKey == "feelsLike") {
this->data->feelsLike = value.toFloat();
}
// "pressure": 1013, uint16_t pressure;
if (currentKey == "pressure") {
this->data->pressure = value.toInt();
Expand Down
2 changes: 2 additions & 0 deletions src/OpenWeatherMapCurrent.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ typedef struct OpenWeatherMapCurrentData {
String iconMeteoCon;
// "temp": 290.56,
float temp;
// feels_like 290.87
float feelsLike;
// "pressure": 1013,
uint16_t pressure;
// "humidity": 87,
Expand Down

0 comments on commit 6820941

Please sign in to comment.