B4A Library ICOSWorldForecast 3.50

gadgetmonster

Active Member
Licensed User
Longtime User
Incidentally, I signed up for an API key but the new keys are not compatible with your library. I'm presuming that this is because ICOSWorldForecast is referencing the older URL?

Anyway, to get up and running I had to trawl the internet until I found (and borrowed) an old api key. Will you be updating your library to work with the new API keys / URL?
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi paulchatwin, I´ve allready updated with new keys but the provider is down.
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi

Dont get an error, it just pauses fir a ling long time. Occasionally after a while it will come back with the data but normally android will ask me if I want to terminate the app or wait.

THis morning it seems a little quicker.
Hi paulchatwin the new Update is there just download.
 

dxxxyyyzzz

Member
Licensed User
Longtime User
Hi Lonelystar.

Thanks for all the effort that you invest into development of this library.
I just tried your new library with demo you provided, and so far it works flawlessly.
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Thank you Giuseppe but when I run your demo I get an indexoutofbounds error in sub forecast_weather java line 399. Invalid index 0, size 0

Hi paulchatwin, you have to replace the XXXXXXXXXXXXXXXXXX with your key


a.ApiKey="XXXXXXXXXXXXXXXXXXXXXXXX"
 

lonleystar

Well-Known Member
Licensed User
Longtime User
I have put my key in both modules and I still get the error.

Secondly I was asking how you get the weather icon name as I thought you was adding that option to this release.
open the demo, in Files folder u´ll find the weathericon folder if not extract again it and put the weathericon folder in Files folder so u´ll not get any error.
 

gadgetmonster

Active Member
Licensed User
Longtime User
Hi,

I have re-unzipped your example and have checked and your supplied sample does have icons in the files/weathericon folder but still the error happens.

In B4A i checked that the version of the library was 2.7 as well.

For information, if i enter a city into the getlist box it does get a list but when I select one it errors as above.
 
Last edited:

lonleystar

Well-Known Member
Licensed User
Longtime User
hi again, but u still use the old key?
 

gadgetmonster

Active Member
Licensed User
Longtime User
Great - it was me being an idiot

Yes it works - I had two problems. 1, I didn;t have the icons in the files folder and two I was using the old API.

I have one last question, in post 112 I asked if it was possible to get the weather code, name of the icon being used and a couple of other parameters. Are these now available?

Thank you so much for your hard work.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…