B4A Library ICOSWorldForecast 3.50

Brad

Active Member
Licensed User
Longtime User
Getting a IndexOutOfBounds error with FCTempMinFahrenheit and FCTempMaxFahrenheit.

B4X:
...
   lblDay2Desc.Text = Currweather.FCTempMinFahrenheit(1)&"° / "&Currweather.FCTempMaxFahrenheit(1)&"°"
...

Error:
 

GMan

Well-Known Member
Licensed User
Longtime User
If it is the 1st index it has to be set to 0 (Zero) ?
At least the erros says, that there is no Index(1)
 

Brad

Active Member
Licensed User
Longtime User
The index size should be 5 or 7.
 
Last edited:

Brad

Active Member
Licensed User
Longtime User
Same problem with FCTempMinCelsius, FCTempMaxCelsius, and FCIcon
 

Laurent95

Active Member
Licensed User
Longtime User
Hi,

Same for me, but it's weird because if i try directly on their website that's ok i have 7 days forecasted.
See the xml file attached (put it in zip file the xml aren't allowed on forum).

Regards.


Ooooppppps, not seen your post, Giuseppe, sorry.
But it seems the build of link is not the same for me.
This link works, maybe it's that, for the extras they are separate by a comma, but past in unicode.

http://api.worldweatheronline.com/free/v1/weather.ashx?q=berlin&format=xml&extra=localObsTime%2CisDayTime%2CutcDateTime&num_of_days=7&show_comments=no&key=YOUR KEY HERE
 

Attachments

  • weather.ashx-newyork-05092013.zip
    966 bytes · Views: 162
Last edited:

Laurent95

Active Member
Licensed User
Longtime User
Hi Laurent, i really dont know what appen to the provider but I think they have a momentary problem.

This morning at 6 o'clock everything was fine.
I checked this afternoon with my samsung s4, again the problem.

Ok, and yes i think it's their server also.
I have tried several time and also sometime i have had weird messages but no data.
Hopefully this problem don't continue so long.
Thanks for give us your time for the library.
Best regards, Laurent.
 

GMan

Well-Known Member
Licensed User
Longtime User
Since today in the morning i have also probs (germany)
 

Laurent95

Active Member
Licensed User
Longtime User
Hi Laurent, i really dont know what appen to the provider but I think they have a momentary problem.

This morning at 6 o'clock everything was fine.

I checked this afternoon with my samsung s4, again the problem.

Hi Giuseppe,

It's weird the old library v 2.81 seems continue to work, and now with the first 9 days of month who bugs before !!!!!!!!
Maybe an indication about their own problem until today, i'm not sure.

But i continue to test my widget with the 2.81 and that works fine.
Even for the test i do on the first days of month with a space after. That's your 2.81 library who give me the days of week not my sub routine.
If you want, for better understanding, i can send you my own project by mail (It's a bit complicated now for give only a simple example here).

[Edit :]
Better for all for work on it and understand as put an example of how the server works
For the second screen of weather, the library give the Full7DayName, for the first screen it's my Sub

It's weird because on my widget it's the 2.81 version who work each time, maybe i don't do the things correctly on the example of code (do it so fast).
For have the second screen, you must touch the icon of the day's forecast.
Enjoy it
[/Edit]

Regards, and hold on
 

Attachments

  • ICOSWorldForecast_v2.81Demo.zip
    474.1 KB · Views: 186
Last edited:

GMan

Well-Known Member
Licensed User
Longtime User
2.81 works also fine on my Device
 

Laurent95

Active Member
Licensed User
Longtime User
The last version seems work fine now.
But i still don't understand why there are these problems recently.
And often with the emulator it's worst, sometime make me

Thank you Giuseppe, maybe now we can have soon the premium version (just joking)
Best regards.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…