diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..1cbcf8b --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,7 @@ +# AGENTS.md + +## Build Command + +```sh +.venv-platformio/bin/pio run +``` diff --git a/src/api/weather_api.cpp b/src/api/weather_api.cpp index a27b16a..7d657e0 100644 --- a/src/api/weather_api.cpp +++ b/src/api/weather_api.cpp @@ -13,9 +13,6 @@ WeatherData fetchWeather() { data.willRainSoon = doc["willRainSoon"] | false; - JsonObject current = doc["current"]; - if (deserializeJson(doc, res.body)) { data.valid = false; return data; } - JsonObject current = doc["current"]; data.current.temperature = current["temperature"] | 0; data.current.symbol = current["symbol"] | "";