#include <ArduinoJson.h>
String Stringcode = "{\"cod\":\"200\",\"message\":0,\"cnt\":40,\"list\":[{\"dt\":1728388800,\"main\":{\"temp\":290.86,\"feels_like\":291.22,\"temp_min\":289.33,\"temp_max\":290.86,\"pressure\":1014,\"sea_level\":1014,\"grnd_level\":889,\"humidity\":97,\"temp_kf\":1.53},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":73},\"wind\":{\"speed\":1.04,\"deg\":296,\"gust\":0.91},\"visibility\":10000,\"pop\":0.96,\"rain\":{\"3h\":1.13},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-08 12:00:00\"},{\"dt\":1728399600,\"main\":{\"temp\":290.17,\"feels_like\":290.49,\"temp_min\":288.79,\"temp_max\":290.17,\"pressure\":1014,\"sea_level\":1014,\"grnd_level\":889,\"humidity\":98,\"temp_kf\":1.38},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":82},\"wind\":{\"speed\":1.04,\"deg\":278,\"gust\":0.91},\"visibility\":10000,\"pop\":0.32,\"rain\":{\"3h\":0.25},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-08 15:00:00\"},{\"dt\":1728410400,\"main\":{\"temp\":289.3,\"feels_like\":289.53,\"temp_min\":288.52,\"temp_max\":289.3,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":888,\"humidity\":98,\"temp_kf\":0.78},\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04n\"}],\"clouds\":{\"all\":91},\"wind\":{\"speed\":1.31,\"deg\":289,\"gust\":1.21},\"visibility\":10000,\"pop\":0.36,\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-08 18:00:00\"},{\"dt\":1728421200,\"main\":{\"temp\":288.27,\"feels_like\":288.4,\"temp_min\":288.27,\"temp_max\":288.27,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":887,\"humidity\":98,\"temp_kf\":0},\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04n\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":1.41,\"deg\":289,\"gust\":1.31},\"visibility\":10000,\"pop\":0.32,\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-08 21:00:00\"},{\"dt\":1728432000,\"main\":{\"temp\":290.23,\"feels_like\":290.45,\"temp_min\":290.23,\"temp_max\":290.23,\"pressure\":1014,\"sea_level\":1014,\"grnd_level\":889,\"humidity\":94,\"temp_kf\":0},\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":1.05,\"deg\":299,\"gust\":1.63},\"visibility\":10000,\"pop\":0.36,\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-09 00:00:00\"},{\"dt\":1728442800,\"main\":{\"temp\":294.23,\"feels_like\":294.4,\"temp_min\":294.23,\"temp_max\":294.23,\"pressure\":1014,\"sea_level\":1014,\"grnd_level\":891,\"humidity\":77,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":1.44,\"deg\":50,\"gust\":2.11},\"visibility\":10000,\"pop\":0.64,\"rain\":{\"3h\":0.75},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-09 03:00:00\"},{\"dt\":1728453600,\"main\":{\"temp\":294.46,\"feels_like\":294.66,\"temp_min\":294.46,\"temp_max\":294.46,\"pressure\":1012,\"sea_level\":1012,\"grnd_level\":889,\"humidity\":77,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":1.06,\"deg\":54,\"gust\":1.9},\"visibility\":10000,\"pop\":0.8,\"rain\":{\"3h\":1.56},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-09 06:00:00\"},{\"dt\":1728464400,\"main\":{\"temp\":293.7,\"feels_like\":293.87,\"temp_min\":293.7,\"temp_max\":293.7,\"pressure\":1010,\"sea_level\":1010,\"grnd_level\":887,\"humidity\":79,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":1.79,\"deg\":85,\"gust\":3.01},\"visibility\":10000,\"pop\":0.6,\"rain\":{\"3h\":1},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-09 09:00:00\"},{\"dt\":1728475200,\"main\":{\"temp\":289.53,\"feels_like\":289.76,\"temp_min\":289.53,\"temp_max\":289.53,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":888,\"humidity\":97,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":85},\"wind\":{\"speed\":0.81,\"deg\":256,\"gust\":0.7},\"visibility\":10000,\"pop\":0.64,\"rain\":{\"3h\":0.38},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-09 12:00:00\"},{\"dt\":1728486000,\"main\":{\"temp\":289.08,\"feels_like\":289.26,\"temp_min\":289.08,\"temp_max\":289.08,\"pressure\":1014,\"sea_level\":1014,\"grnd_level\":888,\"humidity\":97,\"temp_kf\":0},\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04n\"}],\"clouds\":{\"all\":88},\"wind\":{\"speed\":1.48,\"deg\":281,\"gust\":1.33},\"visibility\":10000,\"pop\":0.32,\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-09 15:00:00\"},{\"dt\":1728496800,\"main\":{\"temp\":288.63,\"feels_like\":288.74,\"temp_min\":288.63,\"temp_max\":288.63,\"pressure\":1012,\"sea_level\":1012,\"grnd_level\":887,\"humidity\":96,\"temp_kf\":0},\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04n\"}],\"clouds\":{\"all\":94},\"wind\":{\"speed\":1.59,\"deg\":288,\"gust\":1.81},\"visibility\":10000,\"pop\":0.36,\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-09 18:00:00\"},{\"dt\":1728507600,\"main\":{\"temp\":288.33,\"feels_like\":288.41,\"temp_min\":288.33,\"temp_max\":288.33,\"pressure\":1012,\"sea_level\":1012,\"grnd_level\":886,\"humidity\":96,\"temp_kf\":0},\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04n\"}],\"clouds\":{\"all\":99},\"wind\":{\"speed\":1.59,\"deg\":293,\"gust\":1.41},\"visibility\":10000,\"pop\":0.24,\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-09 21:00:00\"},{\"dt\":1728518400,\"main\":{\"temp\":290.71,\"feels_like\":290.85,\"temp_min\":290.71,\"temp_max\":290.71,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":889,\"humidity\":89,\"temp_kf\":0},\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":84},\"wind\":{\"speed\":1.16,\"deg\":302,\"gust\":1.81},\"visibility\":10000,\"pop\":0.24,\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-10 00:00:00\"},{\"dt\":1728529200,\"main\":{\"temp\":294.42,\"feels_like\":294.61,\"temp_min\":294.42,\"temp_max\":294.42,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":890,\"humidity\":77,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":60},\"wind\":{\"speed\":1.12,\"deg\":77,\"gust\":1.61},\"visibility\":10000,\"pop\":0.36,\"rain\":{\"3h\":0.44},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-10 03:00:00\"},{\"dt\":1728540000,\"main\":{\"temp\":294.14,\"feels_like\":294.57,\"temp_min\":294.14,\"temp_max\":294.14,\"pressure\":1011,\"sea_level\":1011,\"grnd_level\":888,\"humidity\":87,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":65},\"wind\":{\"speed\":1.16,\"deg\":70,\"gust\":1.63},\"visibility\":6747,\"pop\":0.84,\"rain\":{\"3h\":3},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-10 06:00:00\"},{\"dt\":1728550800,\"main\":{\"temp\":293.1,\"feels_like\":293.58,\"temp_min\":293.1,\"temp_max\":293.1,\"pressure\":1010,\"sea_level\":1010,\"grnd_level\":887,\"humidity\":93,\"temp_kf\":0},\"weather\":[{\"id\":501,\"main\":\"Rain\",\"description\":\"moderate rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":73},\"wind\":{\"speed\":0.91,\"deg\":63,\"gust\":1.7},\"visibility\":7100,\"pop\":0.8,\"rain\":{\"3h\":3.56},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-10 09:00:00\"},{\"dt\":1728561600,\"main\":{\"temp\":289.93,\"feels_like\":290.2,\"temp_min\":289.93,\"temp_max\":289.93,\"pressure\":1012,\"sea_level\":1012,\"grnd_level\":887,\"humidity\":97,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":56},\"wind\":{\"speed\":0.86,\"deg\":293,\"gust\":0.8},\"visibility\":10000,\"pop\":1,\"rain\":{\"3h\":1.31},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-10 12:00:00\"},{\"dt\":1728572400,\"main\":{\"temp\":289.43,\"feels_like\":289.67,\"temp_min\":289.43,\"temp_max\":289.43,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":888,\"humidity\":98,\"temp_kf\":0},\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"clouds\":{\"all\":47},\"wind\":{\"speed\":1.3,\"deg\":285,\"gust\":1.2},\"visibility\":10000,\"pop\":0.4,\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-10 15:00:00\"},{\"dt\":1728583200,\"main\":{\"temp\":289.01,\"feels_like\":289.21,\"temp_min\":289.01,\"temp_max\":289.01,\"pressure\":1012,\"sea_level\":1012,\"grnd_level\":887,\"humidity\":98,\"temp_kf\":0},\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04n\"}],\"clouds\":{\"all\":55},\"wind\":{\"speed\":1.36,\"deg\":294,\"gust\":1.21},\"visibility\":10000,\"pop\":0.36,\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-10 18:00:00\"},{\"dt\":1728594000,\"main\":{\"temp\":288.74,\"feels_like\":288.91,\"temp_min\":288.74,\"temp_max\":288.74,\"pressure\":1011,\"sea_level\":1011,\"grnd_level\":886,\"humidity\":98,\"temp_kf\":0},\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"clouds\":{\"all\":46},\"wind\":{\"speed\":1.31,\"deg\":295,\"gust\":1.22},\"visibility\":10000,\"pop\":0.16,\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-10 21:00:00\"},{\"dt\":1728604800,\"main\":{\"temp\":290.73,\"feels_like\":291,\"temp_min\":290.73,\"temp_max\":290.73,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":888,\"humidity\":94,\"temp_kf\":0},\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03d\"}],\"clouds\":{\"all\":44},\"wind\":{\"speed\":0.89,\"deg\":287,\"gust\":1.3},\"visibility\":10000,\"pop\":0.24,\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-11 00:00:00\"},{\"dt\":1728615600,\"main\":{\"temp\":294.78,\"feels_like\":295.04,\"temp_min\":294.78,\"temp_max\":294.78,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":890,\"humidity\":78,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":38},\"wind\":{\"speed\":1.31,\"deg\":72,\"gust\":1.5},\"visibility\":9776,\"pop\":0.64,\"rain\":{\"3h\":0.69},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-11 03:00:00\"},{\"dt\":1728626400,\"main\":{\"temp\":293.99,\"feels_like\":294.48,\"temp_min\":293.99,\"temp_max\":293.99,\"pressure\":1011,\"sea_level\":1011,\"grnd_level\":888,\"humidity\":90,\"temp_kf\":0},\"weather\":[{\"id\":501,\"main\":\"Rain\",\"description\":\"moderate rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":53},\"wind\":{\"speed\":1.87,\"deg\":52,\"gust\":2.51},\"visibility\":5289,\"pop\":1,\"rain\":{\"3h\":4.44},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-11 06:00:00\"},{\"dt\":1728637200,\"main\":{\"temp\":292.67,\"feels_like\":293.13,\"temp_min\":292.67,\"temp_max\":292.67,\"pressure\":1010,\"sea_level\":1010,\"grnd_level\":887,\"humidity\":94,\"temp_kf\":0},\"weather\":[{\"id\":501,\"main\":\"Rain\",\"description\":\"moderate rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":67},\"wind\":{\"speed\":1.59,\"deg\":54,\"gust\":2.83},\"visibility\":10000,\"pop\":0.92,\"rain\":{\"3h\":3.94},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-11 09:00:00\"},{\"dt\":1728648000,\"main\":{\"temp\":290.06,\"feels_like\":290.34,\"temp_min\":290.06,\"temp_max\":290.06,\"pressure\":1012,\"sea_level\":1012,\"grnd_level\":888,\"humidity\":97,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":70},\"wind\":{\"speed\":0.44,\"deg\":336,\"gust\":0.4},\"visibility\":10000,\"pop\":1,\"rain\":{\"3h\":1.13},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-11 12:00:00\"},{\"dt\":1728658800,\"main\":{\"temp\":289.73,\"feels_like\":289.98,\"temp_min\":289.73,\"temp_max\":289.73,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":888,\"humidity\":97,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":91},\"wind\":{\"speed\":0.59,\"deg\":295,\"gust\":0.51},\"visibility\":10000,\"pop\":0.52,\"rain\":{\"3h\":0.13},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-11 15:00:00\"},{\"dt\":1728669600,\"main\":{\"temp\":289.87,\"feels_like\":290.16,\"temp_min\":289.87,\"temp_max\":289.87,\"pressure\":1012,\"sea_level\":1012,\"grnd_level\":887,\"humidity\":98,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":95},\"wind\":{\"speed\":0.59,\"deg\":297,\"gust\":0.51},\"visibility\":10000,\"pop\":0.56,\"rain\":{\"3h\":0.44},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-11 18:00:00\"},{\"dt\":1728680400,\"main\":{\"temp\":289.96,\"feels_like\":290.28,\"temp_min\":289.96,\"temp_max\":289.96,\"pressure\":1011,\"sea_level\":1011,\"grnd_level\":887,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":501,\"main\":\"Rain\",\"description\":\"moderate rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.31,\"deg\":10,\"gust\":0.4},\"visibility\":3884,\"pop\":0.84,\"rain\":{\"3h\":4.38},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-11 21:00:00\"},{\"dt\":1728691200,\"main\":{\"temp\":290.22,\"feels_like\":290.57,\"temp_min\":290.22,\"temp_max\":290.22,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":888,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":501,\"main\":\"Rain\",\"description\":\"moderate rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.28,\"deg\":311,\"gust\":0.5},\"visibility\":700,\"pop\":0.96,\"rain\":{\"3h\":11.13},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-12 00:00:00\"},{\"dt\":1728702000,\"main\":{\"temp\":290.85,\"feels_like\":291.26,\"temp_min\":290.85,\"temp_max\":290.85,\"pressure\":1014,\"sea_level\":1014,\"grnd_level\":889,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":501,\"main\":\"Rain\",\"description\":\"moderate rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.5,\"deg\":348,\"gust\":0.8},\"visibility\":2338,\"pop\":1,\"rain\":{\"3h\":10.94},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-12 03:00:00\"},{\"dt\":1728712800,\"main\":{\"temp\":290.72,\"feels_like\":291.12,\"temp_min\":290.72,\"temp_max\":290.72,\"pressure\":1012,\"sea_level\":1012,\"grnd_level\":887,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":502,\"main\":\"Rain\",\"description\":\"heavy intensity rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.52,\"deg\":33,\"gust\":1.12},\"visibility\":7681,\"pop\":1,\"rain\":{\"3h\":24.5},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-12 06:00:00\"},{\"dt\":1728723600,\"main\":{\"temp\":290.18,\"feels_like\":290.52,\"temp_min\":290.18,\"temp_max\":290.18,\"pressure\":1011,\"sea_level\":1011,\"grnd_level\":887,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":501,\"main\":\"Rain\",\"description\":\"moderate rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.58,\"deg\":50,\"gust\":1},\"visibility\":10000,\"pop\":1,\"rain\":{\"3h\":5.81},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-12 09:00:00\"},{\"dt\":1728734400,\"main\":{\"temp\":289.34,\"feels_like\":289.6,\"temp_min\":289.34,\"temp_max\":289.34,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":888,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.08,\"deg\":340,\"gust\":0.4},\"visibility\":10000,\"pop\":1,\"rain\":{\"3h\":2.25},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-12 12:00:00\"},{\"dt\":1728745200,\"main\":{\"temp\":289.83,\"feels_like\":290.14,\"temp_min\":289.83,\"temp_max\":289.83,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":888,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04n\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.23,\"deg\":332,\"gust\":0.3},\"visibility\":10000,\"pop\":0.24,\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-12 15:00:00\"},{\"dt\":1728756000,\"main\":{\"temp\":289.77,\"feels_like\":290.07,\"temp_min\":289.77,\"temp_max\":289.77,\"pressure\":1012,\"sea_level\":1012,\"grnd_level\":887,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.35,\"deg\":339,\"gust\":0.31},\"visibility\":10000,\"pop\":0.48,\"rain\":{\"3h\":1.19},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-12 18:00:00\"},{\"dt\":1728766800,\"main\":{\"temp\":289.85,\"feels_like\":290.19,\"temp_min\":289.85,\"temp_max\":289.85,\"pressure\":1011,\"sea_level\":1011,\"grnd_level\":887,\"humidity\":100,\"temp_kf\":0},\"weather\":[{\"id\":501,\"main\":\"Rain\",\"description\":\"moderate rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.32,\"deg\":49,\"gust\":0.31},\"visibility\":5816,\"pop\":0.92,\"rain\":{\"3h\":4.06},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2024-10-12 21:00:00\"},{\"dt\":1728777600,\"main\":{\"temp\":289.96,\"feels_like\":290.31,\"temp_min\":289.96,\"temp_max\":289.96,\"pressure\":1013,\"sea_level\":1013,\"grnd_level\":888,\"humidity\":100,\"temp_kf\":0},\"weather\":[{\"id\":501,\"main\":\"Rain\",\"description\":\"moderate rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.84,\"deg\":96,\"gust\":3.2},\"visibility\":108,\"pop\":1,\"rain\":{\"3h\":11.5},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-13 00:00:00\"},{\"dt\":1728788400,\"main\":{\"temp\":290.46,\"feels_like\":290.83,\"temp_min\":290.46,\"temp_max\":290.46,\"pressure\":1015,\"sea_level\":1015,\"grnd_level\":890,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":501,\"main\":\"Rain\",\"description\":\"moderate rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":0.23,\"deg\":311,\"gust\":0.5},\"visibility\":1126,\"pop\":1,\"rain\":{\"3h\":8.44},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-13 03:00:00\"},{\"dt\":1728799200,\"main\":{\"temp\":293.73,\"feels_like\":294.14,\"temp_min\":293.73,\"temp_max\":293.73,\"pressure\":1011,\"sea_level\":1011,\"grnd_level\":888,\"humidity\":88,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":100},\"wind\":{\"speed\":1.6,\"deg\":65,\"gust\":2.31},\"visibility\":10000,\"pop\":1,\"rain\":{\"3h\":1.81},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-13 06:00:00\"},{\"dt\":1728810000,\"main\":{\"temp\":293.4,\"feels_like\":293.78,\"temp_min\":293.4,\"temp_max\":293.4,\"pressure\":1010,\"sea_level\":1010,\"grnd_level\":887,\"humidity\":88,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":95},\"wind\":{\"speed\":1.82,\"deg\":83,\"gust\":2.6},\"visibility\":10000,\"pop\":1,\"rain\":{\"3h\":1},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2024-10-13 09:00:00\"}],\"city\":{\"id\":1905468,\"name\":\"Thanh Pho GJa Nang\",\"coord\":{\"lat\":16,\"lon\":108},\"country\":\"VN\",\"population\":0,\"timezone\":25200,\"sunrise\":1728340725,\"sunset\":1728383522}}";
void setup() {
Serial.begin(115200);
JsonDocument doc;
DeserializationError error = deserializeJson(doc, Stringcode);
delay(2000);
if (error) {
Serial.print(F("deserializeJson() failed: "));
Serial.println(error.f_str());
return;
}
// XU LY XONG
// DOAN CODE Lay GIA TRI TU OBJECT
//Lay city name
Serial.print("Name of city: ");
String city_name = doc["city"]["name"];
Serial.print(city_name);
// Duyệt qua từng phần tử trong mảng "list"
for (JsonObject elem : doc["list"].as<JsonArray>()) {
// Lấy giá trị dt
long dt = elem["dt"]; // Lấy giá trị dt
String dt_txt = elem["dt_txt"]; // Lấy giá trị dt_txt
// In ra giá trị dt và dt_txt
Serial.print("dt: ");
Serial.println(dt);
Serial.print("dt_txt: ");
Serial.println(dt_txt);
}
}
void loop() {
// put your main code here, to run repeatedly:
}