diff --git a/src/main.cpp b/src/main.cpp index cbb7281..be871ba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -194,8 +194,10 @@ bool fetchWeatherData() { DynamicJsonDocument doc(1024); if (!deserializeJson(doc, payload)) { - weatherState = doc["weather"][0]["description"].as(); - capitalizeFirstLetter(const_cast(weatherState.c_str())); + String mainWeather = doc["weather"][0]["main"].as(); + String description = doc["weather"][0]["description"].as(); + capitalizeFirstLetter(const_cast(description.c_str())); + weatherState = mainWeather + " " + description; temperature = doc["main"]["temp"].as() - 273.15; humidity = doc["main"]["humidity"]; pressure = doc["main"]["pressure"].as() / 1000;