Conversione stringa (String conversion)

I count Nusco as the 4th item.

Grazie
puoi fare l'esempio con split at spaces ?
Ripeto la richiesta:

Ho il testo:

Via eliodoro Capobianco,13,83051 Nusco Av,Italia

Voglio estrarre Nusco e caricare il risultato in una textbox


(draggable)

Perfetto,bravissimo...un grazie di cuore

Could have sworn that was all one word when I first answered :upside_down_face:

Buongiorno,un altro piccolo aiuto.
Devo estrarre da un file json (vedi screenshot) una immagine "icon":"02d'.
QUESTA IMMAGINE VA inserita nel blocco (vedi screenshot) e visualizzata nell'app.
Il key numerico NON VA BENE,essendo "02d" NON NUMERICO

Puoi completare o correggere lo screenshot ?

Grazie per l'aiuto che puoi dare


Immagine1

How do you get an image from the text '02d'?

How do you get an image from the text '02d'?

THANKS FOR THE REPLY !
image '02d' is offered in string from openweathormap.org when i run the json file. I don't know if they are automatically loaded. I tried to get some from their site by uploading it to my APP The ideal WOULD BE that using the json file, they AUTOMATICALLY appear in the APP

THANK YOU

You have to get all the png files at
https://openweathermap.org/weather-conditions#How-to-get-icon-URL
and load them into your Media folder.

Add .png to the end of the icon name to get the file name.

I HAVE UPLOADED THE IMAGES I SERVE IN MY APP. MAYBE IT'S BETTER
I DON'T KNOW HOW TO DO IT EXACTLY BECAUSE THE KEY IS NOT NUMERICAL

I uploaded the icons.png to my APP....but is the block I sent correct? Is it incomplete? It's useless ?

There is no need to SHOUT, it is considered rude on this community.
Please use normal sentence case text.

I'm sorry, I didn't notice

Your path to the icon value is List From CSV Row('coord,weather,1,icon')
After you get the icon value, do a Text JOIN of it to ".png" to complete the file name.

P.S. I assume you got global response from a Web1.JSONDecodeWithDictionaries against a responseContent text value?

Taking advantage of your kindness you can view the block List From CSV Row('coord,weather,1,icon')

thank you very much

If you can paste the JSON text into this thread, I can prove the blocks work.

A picture of the text is not text.

ok..

I don't know where to get the json file. It appears in text form in the app but I don't know how to extract it. Do you have a suggestion?

How did you get the text in

?

If you can display it in the browser, you can highlight it and copy (Ctrl-C) it, for a paste (Ctrl-V) into this thread.

{"coord":
{"lon":15.0883,"lat":40.8871},"weather":
[{"id":800,"main":"clear","description":clear
sky","icon":01n"}],"base":"station","main":
{"temp":20.19,"feels_like"20.48,"temp_min":18.44,"temp_max":20.99,"pressure":1012,"grnd_level":916},"visibility":10000,"wind"{"speed":0.88,"deg":219,"gust":1.4},"clouds":
{"all":0},"dt":1691099757","sys":
{"type":2,"id":20357884","country":"it",,"sunrise":1691035036,"sunset":1691086462},"timezone":7200,"id":3172134,"name":"Nusco","cod":200}

You typed that JSON by hand, and did a sloppy job of it.

I stopped at the 5th correction.

See

Also see json.org for the specification.