Code: Select all
{"coord":{"lon":14.4028,"lat":31.2602},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"base":"stations","main":{"temp":1.81,"feels_like":1.81,"temp_min":0.06,"temp_max":3.08,"pressure":1029,"humidity":94,"sea_level":1029,"grnd_level":1027},"visibility":10000,"wind":{"speed":0.89,"deg":68,"gust":1.34},"clouds":{"all":60},"dt":1732921533,"sys":{"type":2,"id":2012050,"country":"BE","sunrise":1732951431,"sunset":1732981133},"timezone":3600,"id":2798873,"name":"Ekeren","cod":200}
For now I use the NetworkComms SEND a
Code: Select all
"GET http://api.openweathermap.org/data/2.5/weather?lat=41.26197&lon=14.402771&appid=900447etvtbgyjnki5514299984&units=metric\r\n\r\n"
That puts the above value in a string.
But I want to retrieve certain values like "temp" out of this string and use it further in the flowchart.
Can I use the JSONdecoder to get the value for temp (and others) for this?
Or should I use another component to retrieve the wanted value?
Any help is welcome..