it works perfectly. Again 1000 thanks in all languages
Good morning Antonio.Thanks to you, I have partially completed my first APP . If I'm not intrusive, I would like to take advantage of your kindness and skill to complete it with the missing blocks. Let me explain: by clicking on the FORECAST button I want to get the graph you see with the data
my API
api.openweathermap.org/data/2.5/forecast?lat={lat}lon={lon}&appid={API key}
WHILE AN EXAMPLE OF JSON, for the forecast,
Simple example:
borrar_grafico2.aia (3.0 KB)
json
{
"cod": "200",
"message": 0,
"cnt": 40,
"list": [
{
"dt": 1661871600,
"main": {
"temp": 296.76,
"feels_like": 296.98,
"temp_min": 296.76,
"temp_max": 297.87,
"pressure": 1015,
"sea_level": 1015,
"grnd_level": 933,
"humidity": 69,
"temp_kf": -1.11
},
"weather": [
{
"id": 500,
"main": "Rain",
"description": "light rain",
"icon": "10d"
}
],
"clouds": {
"all": 100
},
"wind": {
"speed": 0.62,
"deg": 349,
"gust": 1.18
},
"visibility": 10000,
"pop": 0.32,
"rain": {
"3h": 0.26
},
"sys": {
"pod": "d"
},
"dt_txt": "2022-08-30 15:00:00"
},
{
"dt": 1661882400,
"main": {
"temp": 295.45,
"feels_like": 295.59,
"temp_min": 292.84,
"temp_max": 295.45,
"pressure": 1015,
"sea_level": 1015,
"grnd_level": 931,
"humidity": 71,
"temp_kf": 2.61
},
"weather": [
{
"id": 500,
"main": "Rain",
"description": "light rain",
"icon": "10n"
}
],
"clouds": {
"all": 96
},
"wind": {
"speed": 1.97,
"deg": 157,
"gust": 3.39
},
"visibility": 10000,
"pop": 0.33,
"rain": {
"3h": 0.57
},
"sys": {
"pod": "n"
},
"dt_txt": "2022-08-30 18:00:00"
},
{
"dt": 1661893200,
"main": {
"temp": 292.46,
"feels_like": 292.54,
"temp_min": 290.31,
"temp_max": 292.46,
"pressure": 1015,
"sea_level": 1015,
"grnd_level": 931,
"humidity": 80,
"temp_kf": 2.15
},
"weather": [
{
"id": 500,
"main": "Rain",
"description": "light rain",
"icon": "10n"
}
],
"clouds": {
"all": 68
},
"wind": {
"speed": 2.66,
"deg": 210,
"gust": 3.58
},
"visibility": 10000,
"pop": 0.7,
"rain": {
"3h": 0.49
},
"sys": {
"pod": "n"
},
"dt_txt": "2022-08-30 21:00:00"
},
{
"dt": 1662292800,
"main": {
"temp": 294.93,
"feels_like": 294.83,
"temp_min": 294.93,
"temp_max": 294.93,
"pressure": 1018,
"sea_level": 1018,
"grnd_level": 935,
"humidity": 64,
"temp_kf": 0
},
"weather": [
{
"id": 804,
"main": "Clouds",
"description": "overcast clouds",
"icon": "04d"
}
],
"clouds": {
"all": 88
},
"wind": {
"speed": 1.14,
"deg": 17,
"gust": 1.57
},
"visibility": 10000,
"pop": 0,
"sys": {
"pod": "d"
},
"dt_txt": "2022-09-04 12:00:00"
}
],
"city": {
"id": 3163858,
"name": "Zocca",
"coord": {
"lat": 44.34,
"lon": 10.99
},
"country": "IT",
"population": 4593,
"timezone": 7200,
"sunrise": 1661834187,
"sunset": 1661882248
}
}
Good evening, very kind Antonio. In the meantime, thanks for the quick response to help. As already written, I have little experience with appinventor 2. I followed your instructions and created the blocks you see (to be corrected?). I am having difficulty obtaining the graph composed of two broken lines (temp_min / temp_max) to be extracted from the json file (attached) and take them as Cartesian coordinates in the chardata2d1 graph (for me it's the first time). This is for the days of the forecast. Your help is vital here. I have to get with the graph the image you see attached.
Thanks for your help
Uploading: grafico2 png.png...
Good evening Anthony. I ran the blocks, as you instructed, to get temp_max and temp_min to put into charth. Unlike you, I don't get the values of the 1 to 4 step1 loop.
The following is reported: error 4101: invalid charty enter is worth 1, not found
error 4101:invalid charty enter is worth 2,not found ...... what to do ?
A
curiosity: is the value 273.15 that appears in your block used for measuring the temperature and converting it into degrees Celsius?
This is the json for the forecast from August 14th to August 19th
{"cod":"200","message":0,"cnt":40,"list":[{"dt":1692036000,"main":{"temp":22.64,"feels_like":22,"temp_min":19.82,"temp_max":22.64,"pressure":1022,"sea_level":1022,"grnd_level":923,"humidity":40,"temp_kf":2.82},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"clouds":{"all":75},"wind":{"speed":0.75,"deg":233,"gust":1.35},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2023-08-14 18:00:00"},{"dt":1692046800,"main":{"temp":20.74,"feels_like":20.12,"temp_min":16.94,"temp_max":20.74,"pressure":1021,"sea_level":1021,"grnd_level":923,"humidity":48,"temp_kf":3.8},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"clouds":{"all":50},"wind":{"speed":0.25,"deg":275,"gust":0.89},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-14** 21:00:00"},{"dt":1692057600,"main":{"temp":18.36,"feels_like":17.74,"temp_min":16.22,"temp_max":18.36,"pressure":1020,"sea_level":1020,"grnd_level":922,"humidity":57,"temp_kf":2.14},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"clouds":{"all":25},"wind":{"speed":0.03,"deg":49,"gust":1.02},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-15** 00:00:00"},{"dt":1692068400,"main":{"temp":15.3,"feels_like":14.66,"temp_min":15.3,"temp_max":15.3,"pressure":1018,"sea_level":1018,"grnd_level":921,"humidity":68,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.48,"deg":293,"gust":0.91},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-15** 03:00:00"},{"dt":1692079200,"main":{"temp":20.17,"feels_like":19.57,"temp_min":20.17,"temp_max":20.17,"pressure":1019,"sea_level":1019,"grnd_level":923,"humidity":51,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":0.39,"deg":322,"gust":0.65},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-15** 06:00:00"},{"dt":1692090000,"main":{"temp":26.64,"feels_like":26.64,"temp_min":26.64,"temp_max":26.64,"pressure":1018,"sea_level":1018,"grnd_level":924,"humidity":32,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.05,"deg":268,"gust":1.92},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-15** 09:00:00"},{"dt":1692100800,"main":{"temp":28.98,"feels_like":27.8,"temp_min":28.98,"temp_max":28.98,"pressure":1017,"sea_level":1017,"grnd_level":924,"humidity":29,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":3.66,"deg":253,"gust":3.13},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2023-08-15 12:00:00"},{"dt":1692111600,"main":{"temp":26.88,"feels_like":26.64,"temp_min":26.88,"temp_max":26.88,"pressure":1017,"sea_level":1017,"grnd_level":923,"humidity":37,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":2},"wind":{"speed":4.85,"deg":243,"gust":3.79},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2**023-08-15** 15:00:00"},{"dt":1692122400,"main":{"temp":19.7,"feels_like":19.29,"temp_min":19.7,"temp_max":19.7,"pressure":1018,"sea_level":1018,"grnd_level":923,"humidity":60,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":2},"wind":{"speed":1.24,"deg":251,"gust":1.87},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-15** 18:00:00"},{"dt":1692133200,"main":{"temp":17.37,"feels_like":16.94,"temp_min":17.37,"temp_max":17.37,"pressure":1019,"sea_level":1019,"grnd_level":923,"humidity":68,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.21,"deg":196,"gust":1.26},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-15** 21:00:00"},{"dt":1692144000,"main":{"temp":16.37,"feels_like":15.86,"temp_min":16.37,"temp_max":16.37,"pressure":1018,"sea_level":1018,"grnd_level":922,"humidity":69,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.68,"deg":257,"gust":0.97},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-16** 00:00:00"},{"dt":1692154800,"main":{"temp":15.26,"feels_like":14.77,"temp_min":15.26,"temp_max":15.26,"pressure":1018,"sea_level":1018,"grnd_level":921,"humidity":74,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.43,"deg":267,"gust":1},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-16** 03:00:00"},{"dt":1692165600,"main":{"temp":20.4,"feels_like":19.96,"temp_min":20.4,"temp_max":20.4,"pressure":1018,"sea_level":1018,"grnd_level":923,"humidity":56,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":0.61,"deg":253,"gust":0.83},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-16** 06:00:00"},{"dt":1692176400,"main":{"temp":27.63,"feels_like":27.12,"temp_min":27.63,"temp_max":27.63,"pressure":1017,"sea_level":1017,"grnd_level":924,"humidity":36,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.05,"deg":288,"gust":3.31},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-16** 09:00:00"},{"dt":1692187200,"main":{"temp":30.34,"feels_like":29.16,"temp_min":30.34,"temp_max":30.34,"pressure":1016,"sea_level":1016,"grnd_level":924,"humidity":31,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":1},"wind":{"speed":2.36,"deg":280,"gust":4.21},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-16** 12:00:00"},{"dt":1692198000,"main":{"temp":25.55,"feels_like":25.44,"temp_min":25.55,"temp_max":25.55,"pressure":1016,"sea_level":1016,"grnd_level":923,"humidity":49,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":{"all":74},"wind":{"speed":1.9,"deg":277,"gust":3.23},"visibility":10000,"pop":0.2,"rain":{"3h":0.13},"sys":{"pod":"d"},"dt_txt":"2023-08-16 15:00:00"},{"dt":1692208800,"main":{"temp":21.67,"feels_like":21.51,"temp_min":21.67,"temp_max":21.67,"pressure":1017,"sea_level":1017,"grnd_level":922,"humidity":62,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":69},"wind":{"speed":1.04,"deg":338,"gust":1.3},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-16** 18:00:00"},{"dt":1692219600,"main":{"temp":19.29,"feels_like":18.97,"temp_min":19.29,"temp_max":19.29,"pressure":1017,"sea_level":1017,"grnd_level":922,"humidity":65,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"clouds":{"all":15},"wind":{"speed":0.17,"deg":54,"gust":0.92},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2023-08-16 21:00:00"},{"dt":1692230400,"main":{"temp":18.3,"feels_like":18.01,"temp_min":18.3,"temp_max":18.3,"pressure":1017,"sea_level":1017,"grnd_level":921,"humidity":70,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":9},"wind":{"speed":0.59,"deg":231,"gust":0.89},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-17** 00:00:00"},{"dt":1692241200,"main":{"temp":17.33,"feels_like":17.1,"temp_min":17.33,"temp_max":17.33,"pressure":1016,"sea_level":1016,"grnd_level":920,"humidity":76,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.21,"deg":298,"gust":0.61},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-17** 03:00:00"},{"dt":1692252000,"main":{"temp":21.89,"feels_like":21.68,"temp_min":21.89,"temp_max":21.89,"pressure":1016,"sea_level":1016,"grnd_level":921,"humidity":59,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":0.47,"deg":331,"gust":0.72},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-17** 06:00:00"},{"dt":1692262800,"main":{"temp":28.74,"feels_like":27.97,"temp_min":28.74,"temp_max":28.74,"pressure":1015,"sea_level":1015,"grnd_level":922,"humidity":35,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.52,"deg":317,"gust":2.32},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-17** 09:00:00"},{"dt":1692273600,"main":{"temp":31.08,"feels_like":29.73,"temp_min":31.08,"temp_max":31.08,"pressure":1014,"sea_level":1014,"grnd_level":922,"humidity":29,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.91,"deg":324,"gust":4.13},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":**"2023-08-17** 12:00:00"},{"dt":1692284400,"main":{"temp":29.33,"feels_like":28.51,"temp_min":29.33,"temp_max":29.33,"pressure":1013,"sea_level":1013,"grnd_level":921,"humidity":35,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":{"all":25},"wind":{"speed":2.18,"deg":23,"gust":3.44},"visibility":10000,"pop":0.02,"sys":{"pod":"d"},"dt_txt":"**2023-08-17** 15:00:00"},{"dt":1692295200,"main":{"temp":21.58,"feels_like":21.36,"temp_min":21.58,"temp_max":21.58,"pressure":1015,"sea_level":1015,"grnd_level":921,"humidity":60,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10n"}],"clouds":{"all":32},"wind":{"speed":1.88,"deg":8,"gust":2.25},"visibility":10000,"pop":0.34,"rain":{"3h":0.2},"sys":{"pod":"n"},"dt_txt":"2023-08-17 18:00:00"},{"dt":1692306000,"main":{"temp":19.48,"feels_like":19.05,"temp_min":19.48,"temp_max":19.48,"pressure":1015,"sea_level":1015,"grnd_level":920,"humidity":60,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":1},"wind":{"speed":0.36,"deg":45,"gust":1.05},"visibility":10000,"pop":0.04,"sys":{"pod":"n"},"dt_txt":"**2023-08-17** 21:00:00"},{"dt":1692316800,"main":{"temp":18.39,"feels_like":17.98,"temp_min":18.39,"temp_max":18.39,"pressure":1015,"sea_level":1015,"grnd_level":919,"humidity":65,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":1},"wind":{"speed":0.4,"deg":316,"gust":0.82},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-18** 00:00:00"},{"dt":1692327600,"main":{"temp":17.79,"feels_like":17.35,"temp_min":17.79,"temp_max":17.79,"pressure":1014,"sea_level":1014,"grnd_level":919,"humidity":66,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.45,"deg":12,"gust":0.81},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-18** 03:00:00"},{"dt":1692338400,"main":{"temp":22.46,"feels_like":22.07,"temp_min":22.46,"temp_max":22.46,"pressure":1015,"sea_level":1015,"grnd_level":920,"humidity":50,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":0.76,"deg":3,"gust":1.15},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-18** 06:00:00"},{"dt":1692349200,"main":{"temp":28.91,"feels_like":27.69,"temp_min":28.91,"temp_max":28.91,"pressure":1014,"sea_level":1014,"grnd_level":922,"humidity":28,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.3,"deg":328,"gust":3.81},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-18** 09:00:00"},{"dt":1692360000,"main":{"temp":31.87,"feels_like":30.11,"temp_min":31.87,"temp_max":31.87,"pressure":1013,"sea_level":1013,"grnd_level":921,"humidity":24,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.24,"deg":357,"gust":4.42},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-18** 12:00:00"},{"dt":1692370800,"main":{"temp":30.27,"feels_like":28.93,"temp_min":30.27,"temp_max":30.27,"pressure":1013,"sea_level":1013,"grnd_level":921,"humidity":29,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":3.3,"deg":32,"gust":3.96},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2023-08-18 15:00:00"},{"dt":1692381600,"main":{"temp":22.26,"feels_like":21.93,"temp_min":22.26,"temp_max":22.26,"pressure":1014,"sea_level":1014,"grnd_level":920,"humidity":53,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.18,"deg":32,"gust":1.39},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-18** 18:00:00"},{"dt":1692392400,"main":{"temp":20.73,"feels_like":20.24,"temp_min":20.73,"temp_max":20.73,"pressure":1016,"sea_level":1016,"grnd_level":921,"humidity":53,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.74,"deg":25,"gust":1.17},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-18** 21:00:00"},{"dt":1692403200,"main":{"temp":19.43,"feels_like":18.89,"temp_min":19.43,"temp_max":19.43,"pressure":1015,"sea_level":1015,"grnd_level":920,"humidity":56,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.6,"deg":18,"gust":0.98},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-19** 00:00:00"},{"dt":1692414000,"main":{"temp":18.23,"feels_like":17.6,"temp_min":18.23,"temp_max":18.23,"pressure":1015,"sea_level":1015,"grnd_level":919,"humidity":57,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.66,"deg":35,"gust":1.07},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-19** 03:00:00"},{"dt":1692424800,"main":{"temp":23.16,"feels_like":22.63,"temp_min":23.16,"temp_max":23.16,"pressure":1016,"sea_level":1016,"grnd_level":921,"humidity":42,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.04,"deg":11,"gust":1.42},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-19** 06:00:00"},{"dt":1692435600,"main":{"temp":30.15,"feels_like":28.63,"temp_min":30.15,"temp_max":30.15,"pressure":1015,"sea_level":1015,"grnd_level":923,"humidity":26,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.44,"deg":4,"gust":4.2},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-19** 09:00:00"},{"dt":1692446400,"main":{"temp":32.89,"feels_like":31.16,"temp_min":32.89,"temp_max":32.89,"pressure":1014,"sea_level":1014,"grnd_level":923,"humidity":24,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":3.77,"deg":20,"gust":4.38},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-19** 12:00:00"},{"dt":1692457200,"main":{"temp":31.42,"feels_like":29.9,"temp_min":31.42,"temp_max":31.42,"pressure":1014,"sea_level":1014,"grnd_level":923,"humidity":27,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":4.16,"deg":29,"gust":4.9},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":**"2023-08-19** 15:00:00"}],"city":{"id":3172134,"name":"Nusco","coord":{"lat":40.887,"lon":15.0883},"country":"IT","population":4420,"timezone":7200,"sunrise":1691986093,"sunset":1692036050}}
[quote="Amato_Prudente, post:39, topic:89970"]
{"cod":"200","message":0,"cnt":40,"list":[{"dt":1692036000,"main":{"temp":22.64,"feels_like":22,"temp_min":19.82,"temp_max":22.64,"pressure":1022,"sea_level":1022,"grnd_level":923,"humidity":40,"temp_kf":2.82},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04d"}],"clouds":{"all":75},"wind":{"speed":0.75,"deg":233,"gust":1.35},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2023-08-14 18:00:00"},{"dt":1692046800,"main":{"temp":20.74,"feels_like":20.12,"temp_min":16.94,"temp_max":20.74,"pressure":1021,"sea_level":1021,"grnd_level":923,"humidity":48,"temp_kf":3.8},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"clouds":{"all":50},"wind":{"speed":0.25,"deg":275,"gust":0.89},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-14** 21:00:00"},{"dt":1692057600,"main":{"temp":18.36,"feels_like":17.74,"temp_min":16.22,"temp_max":18.36,"pressure":1020,"sea_level":1020,"grnd_level":922,"humidity":57,"temp_kf":2.14},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03n"}],"clouds":{"all":25},"wind":{"speed":0.03,"deg":49,"gust":1.02},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-15** 00:00:00"},{"dt":1692068400,"main":{"temp":15.3,"feels_like":14.66,"temp_min":15.3,"temp_max":15.3,"pressure":1018,"sea_level":1018,"grnd_level":921,"humidity":68,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.48,"deg":293,"gust":0.91},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-15** 03:00:00"},{"dt":1692079200,"main":{"temp":20.17,"feels_like":19.57,"temp_min":20.17,"temp_max":20.17,"pressure":1019,"sea_level":1019,"grnd_level":923,"humidity":51,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":0.39,"deg":322,"gust":0.65},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-15** 06:00:00"},{"dt":1692090000,"main":{"temp":26.64,"feels_like":26.64,"temp_min":26.64,"temp_max":26.64,"pressure":1018,"sea_level":1018,"grnd_level":924,"humidity":32,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.05,"deg":268,"gust":1.92},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-15** 09:00:00"},{"dt":1692100800,"main":{"temp":28.98,"feels_like":27.8,"temp_min":28.98,"temp_max":28.98,"pressure":1017,"sea_level":1017,"grnd_level":924,"humidity":29,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":3.66,"deg":253,"gust":3.13},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2023-08-15 12:00:00"},{"dt":1692111600,"main":{"temp":26.88,"feels_like":26.64,"temp_min":26.88,"temp_max":26.88,"pressure":1017,"sea_level":1017,"grnd_level":923,"humidity":37,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":2},"wind":{"speed":4.85,"deg":243,"gust":3.79},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2**023-08-15** 15:00:00"},{"dt":1692122400,"main":{"temp":19.7,"feels_like":19.29,"temp_min":19.7,"temp_max":19.7,"pressure":1018,"sea_level":1018,"grnd_level":923,"humidity":60,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":2},"wind":{"speed":1.24,"deg":251,"gust":1.87},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-15** 18:00:00"},{"dt":1692133200,"main":{"temp":17.37,"feels_like":16.94,"temp_min":17.37,"temp_max":17.37,"pressure":1019,"sea_level":1019,"grnd_level":923,"humidity":68,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.21,"deg":196,"gust":1.26},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-15** 21:00:00"},{"dt":1692144000,"main":{"temp":16.37,"feels_like":15.86,"temp_min":16.37,"temp_max":16.37,"pressure":1018,"sea_level":1018,"grnd_level":922,"humidity":69,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.68,"deg":257,"gust":0.97},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-16** 00:00:00"},{"dt":1692154800,"main":{"temp":15.26,"feels_like":14.77,"temp_min":15.26,"temp_max":15.26,"pressure":1018,"sea_level":1018,"grnd_level":921,"humidity":74,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.43,"deg":267,"gust":1},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-16** 03:00:00"},{"dt":1692165600,"main":{"temp":20.4,"feels_like":19.96,"temp_min":20.4,"temp_max":20.4,"pressure":1018,"sea_level":1018,"grnd_level":923,"humidity":56,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":0.61,"deg":253,"gust":0.83},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-16** 06:00:00"},{"dt":1692176400,"main":{"temp":27.63,"feels_like":27.12,"temp_min":27.63,"temp_max":27.63,"pressure":1017,"sea_level":1017,"grnd_level":924,"humidity":36,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.05,"deg":288,"gust":3.31},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-16** 09:00:00"},{"dt":1692187200,"main":{"temp":30.34,"feels_like":29.16,"temp_min":30.34,"temp_max":30.34,"pressure":1016,"sea_level":1016,"grnd_level":924,"humidity":31,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":1},"wind":{"speed":2.36,"deg":280,"gust":4.21},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-16** 12:00:00"},{"dt":1692198000,"main":{"temp":25.55,"feels_like":25.44,"temp_min":25.55,"temp_max":25.55,"pressure":1016,"sea_level":1016,"grnd_level":923,"humidity":49,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"clouds":{"all":74},"wind":{"speed":1.9,"deg":277,"gust":3.23},"visibility":10000,"pop":0.2,"rain":{"3h":0.13},"sys":{"pod":"d"},"dt_txt":"2023-08-16 15:00:00"},{"dt":1692208800,"main":{"temp":21.67,"feels_like":21.51,"temp_min":21.67,"temp_max":21.67,"pressure":1017,"sea_level":1017,"grnd_level":922,"humidity":62,"temp_kf":0},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"clouds":{"all":69},"wind":{"speed":1.04,"deg":338,"gust":1.3},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-16** 18:00:00"},{"dt":1692219600,"main":{"temp":19.29,"feels_like":18.97,"temp_min":19.29,"temp_max":19.29,"pressure":1017,"sea_level":1017,"grnd_level":922,"humidity":65,"temp_kf":0},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02n"}],"clouds":{"all":15},"wind":{"speed":0.17,"deg":54,"gust":0.92},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"2023-08-16 21:00:00"},{"dt":1692230400,"main":{"temp":18.3,"feels_like":18.01,"temp_min":18.3,"temp_max":18.3,"pressure":1017,"sea_level":1017,"grnd_level":921,"humidity":70,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":9},"wind":{"speed":0.59,"deg":231,"gust":0.89},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-17** 00:00:00"},{"dt":1692241200,"main":{"temp":17.33,"feels_like":17.1,"temp_min":17.33,"temp_max":17.33,"pressure":1016,"sea_level":1016,"grnd_level":920,"humidity":76,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.21,"deg":298,"gust":0.61},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-17** 03:00:00"},{"dt":1692252000,"main":{"temp":21.89,"feels_like":21.68,"temp_min":21.89,"temp_max":21.89,"pressure":1016,"sea_level":1016,"grnd_level":921,"humidity":59,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":0.47,"deg":331,"gust":0.72},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-17** 06:00:00"},{"dt":1692262800,"main":{"temp":28.74,"feels_like":27.97,"temp_min":28.74,"temp_max":28.74,"pressure":1015,"sea_level":1015,"grnd_level":922,"humidity":35,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.52,"deg":317,"gust":2.32},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-17** 09:00:00"},{"dt":1692273600,"main":{"temp":31.08,"feels_like":29.73,"temp_min":31.08,"temp_max":31.08,"pressure":1014,"sea_level":1014,"grnd_level":922,"humidity":29,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.91,"deg":324,"gust":4.13},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":**"2023-08-17** 12:00:00"},{"dt":1692284400,"main":{"temp":29.33,"feels_like":28.51,"temp_min":29.33,"temp_max":29.33,"pressure":1013,"sea_level":1013,"grnd_level":921,"humidity":35,"temp_kf":0},"weather":[{"id":802,"main":"Clouds","description":"scattered clouds","icon":"03d"}],"clouds":{"all":25},"wind":{"speed":2.18,"deg":23,"gust":3.44},"visibility":10000,"pop":0.02,"sys":{"pod":"d"},"dt_txt":"**2023-08-17** 15:00:00"},{"dt":1692295200,"main":{"temp":21.58,"feels_like":21.36,"temp_min":21.58,"temp_max":21.58,"pressure":1015,"sea_level":1015,"grnd_level":921,"humidity":60,"temp_kf":0},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10n"}],"clouds":{"all":32},"wind":{"speed":1.88,"deg":8,"gust":2.25},"visibility":10000,"pop":0.34,"rain":{"3h":0.2},"sys":{"pod":"n"},"dt_txt":"2023-08-17 18:00:00"},{"dt":1692306000,"main":{"temp":19.48,"feels_like":19.05,"temp_min":19.48,"temp_max":19.48,"pressure":1015,"sea_level":1015,"grnd_level":920,"humidity":60,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":1},"wind":{"speed":0.36,"deg":45,"gust":1.05},"visibility":10000,"pop":0.04,"sys":{"pod":"n"},"dt_txt":"**2023-08-17** 21:00:00"},{"dt":1692316800,"main":{"temp":18.39,"feels_like":17.98,"temp_min":18.39,"temp_max":18.39,"pressure":1015,"sea_level":1015,"grnd_level":919,"humidity":65,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":1},"wind":{"speed":0.4,"deg":316,"gust":0.82},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-18** 00:00:00"},{"dt":1692327600,"main":{"temp":17.79,"feels_like":17.35,"temp_min":17.79,"temp_max":17.79,"pressure":1014,"sea_level":1014,"grnd_level":919,"humidity":66,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.45,"deg":12,"gust":0.81},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-18** 03:00:00"},{"dt":1692338400,"main":{"temp":22.46,"feels_like":22.07,"temp_min":22.46,"temp_max":22.46,"pressure":1015,"sea_level":1015,"grnd_level":920,"humidity":50,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":0.76,"deg":3,"gust":1.15},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-18** 06:00:00"},{"dt":1692349200,"main":{"temp":28.91,"feels_like":27.69,"temp_min":28.91,"temp_max":28.91,"pressure":1014,"sea_level":1014,"grnd_level":922,"humidity":28,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.3,"deg":328,"gust":3.81},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-18** 09:00:00"},{"dt":1692360000,"main":{"temp":31.87,"feels_like":30.11,"temp_min":31.87,"temp_max":31.87,"pressure":1013,"sea_level":1013,"grnd_level":921,"humidity":24,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.24,"deg":357,"gust":4.42},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-18** 12:00:00"},{"dt":1692370800,"main":{"temp":30.27,"feels_like":28.93,"temp_min":30.27,"temp_max":30.27,"pressure":1013,"sea_level":1013,"grnd_level":921,"humidity":29,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":3.3,"deg":32,"gust":3.96},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"2023-08-18 15:00:00"},{"dt":1692381600,"main":{"temp":22.26,"feels_like":21.93,"temp_min":22.26,"temp_max":22.26,"pressure":1014,"sea_level":1014,"grnd_level":920,"humidity":53,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":1.18,"deg":32,"gust":1.39},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-18** 18:00:00"},{"dt":1692392400,"main":{"temp":20.73,"feels_like":20.24,"temp_min":20.73,"temp_max":20.73,"pressure":1016,"sea_level":1016,"grnd_level":921,"humidity":53,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.74,"deg":25,"gust":1.17},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-18** 21:00:00"},{"dt":1692403200,"main":{"temp":19.43,"feels_like":18.89,"temp_min":19.43,"temp_max":19.43,"pressure":1015,"sea_level":1015,"grnd_level":920,"humidity":56,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.6,"deg":18,"gust":0.98},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-19** 00:00:00"},{"dt":1692414000,"main":{"temp":18.23,"feels_like":17.6,"temp_min":18.23,"temp_max":18.23,"pressure":1015,"sea_level":1015,"grnd_level":919,"humidity":57,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"clouds":{"all":0},"wind":{"speed":0.66,"deg":35,"gust":1.07},"visibility":10000,"pop":0,"sys":{"pod":"n"},"dt_txt":"**2023-08-19** 03:00:00"},{"dt":1692424800,"main":{"temp":23.16,"feels_like":22.63,"temp_min":23.16,"temp_max":23.16,"pressure":1016,"sea_level":1016,"grnd_level":921,"humidity":42,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":1.04,"deg":11,"gust":1.42},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-19** 06:00:00"},{"dt":1692435600,"main":{"temp":30.15,"feels_like":28.63,"temp_min":30.15,"temp_max":30.15,"pressure":1015,"sea_level":1015,"grnd_level":923,"humidity":26,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":2.44,"deg":4,"gust":4.2},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-19** 09:00:00"},{"dt":1692446400,"main":{"temp":32.89,"feels_like":31.16,"temp_min":32.89,"temp_max":32.89,"pressure":1014,"sea_level":1014,"grnd_level":923,"humidity":24,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":3.77,"deg":20,"gust":4.38},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":"**2023-08-19** 12:00:00"},{"dt":1692457200,"main":{"temp":31.42,"feels_like":29.9,"temp_min":31.42,"temp_max":31.42,"pressure":1014,"sea_level":1014,"grnd_level":923,"humidity":27,"temp_kf":0},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"clouds":{"all":0},"wind":{"speed":4.16,"deg":29,"gust":4.9},"visibility":10000,"pop":0,"sys":{"pod":"d"},"dt_txt":**"2023-08-19** 15:00:00"}],"city":{"id":3172134,"name":"Nusco","coord":{"lat":40.887,"lon":15.0883},"country":"IT","population":4420,"timezone":7200,"sunrise":1691986093,"sunset":1692036050}}
[/quote],
Greetings Antonio
then the created blocks are not valid? I can't find the max and min of each day of the forecast....what to do?
I can't read non-English blocks, but I suspect from your blocks image that you are trying to decode a response from the web in the same event where you are asking for the web response?
good evening, the August 14 block is exactly what you proposed (eliminating the first 4). I can't get the temp_max and temp_min values of the entire forecast into chartdata 2d1 and chartdata2d2. The graph is important. Thank you
(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
Good morning. Thanks for the quick response and availability. I note that the API for forecast, about latitude and longitude, I added them manually. They should start automatically, knowing the lat and long coordinates initially. I didn't do this step.
MyMeteoXXX.aia (99.7 KB)
From what I see at
you can request a forecast with just the city name, country.
Add an extra Web component and name it WebForecast, to allow you to process the forecast properly into the chart data components using the code already supplied in prior posts.
Do your response content handling in a new WebForecast .GotText event, not in the click event.
For debugging purposes, add an extra global variable ForecastResponseContent to hold a copy of that particular response content.
Good morning and thanks again for your reply. I was already aware of much of what you wrote. As I have already said in the past, I am not very good with appinventor2 as I have only been practicing for a short time. In sending you the mymeteoxxx.aia file I thought you would have made the necessary corrections to that block (forecast button) which did not allow me to extract the json data (min_temp, max_temp) to be introduced in chartdata2d2 and obtain the 5-day forecast. Can you do anything? Thank you
Sorry, I was afraid to code it myself because my Italian was even poorer than your blocks skill, and I didn't see where to get the city and country from your component names.
sorry, I used the latitude and longitude of nusco(italy) as an exercise. The long and lat coordinates in the forecast belong to this place