B4A Library ICOSWorldForecast 3.50

fanfalveto

Active Member
Licensed User
Longtime User
i think from then server change the code and then the library don´t work fine,lonelystar do a great work but the problems must continue ever
 

fanfalveto

Active Member
Licensed User
Longtime User
now all is ok,but few days ago don´t works fine images of tomorrow for example,and name of days.
but now works fine.
and thank you very much for your great work
 

metrick

Active Member
Licensed User
Longtime User
Got error on img3.Bitmap = wwo.FCIcon(1) here are are the message.
"An error has occurred in sub:forecast_weather(Java line:437) Java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1 Continue?"
Device Samsung Galaxy Tab 2, 7" model.
 

sdb

Member
Licensed User
Longtime User
Got error on img3.Bitmap = wwo.FCIcon(1) here are are the message.
"An error has occurred in sub:forecast_weather(Java line:437) Java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1 Continue?"
Device Samsung Galaxy Tab 2, 7" model.

I am getting a similar error as above starting last night. It is either an error from the provider which I am not handling properly or they changed something. My program has been working fine for several months and I am using the latest version of the library.
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi guys , here the fixed library.

Hi metrick u got this error why the World weather online changed again from 7 to 5 days.

I added 2 new commands:



WeaterByLocalIpAddress
LocalIpAddress


U can use

WeaterByLocalIpAddress = LocalIpAddress

or

WeaterByLocalIpAddress = "146.185.31.213"
 

Laurent95

Active Member
Licensed User
Longtime User
Hello Giuseppe,
Thank you for all, indeed all works again.
But that's a shame that they have never warned us about any change.
For now that not give us the envy to have a premium account, wait and see.

Regards.
 

Laurent95

Active Member
Licensed User
Longtime User

Hi Giuseppe,
Thank you for this !!!!!!!
You can count on us, we stay with you for all, no worries.
Just it's a shame you pass so many time on this, only because they change without warning us.
I really respect your work, who is very awesome, but i hate people who don't take care about their equals in world.
Like these new waves who consider that it's not a problem that someone don't feel good.
you can count of us, i believe (please, all people do it, and say it !!!!!).
Sorry for the most of time that they ask to you, for me you stay as a very good mentor.
Thank you to help us :=)

And please, hold on, i am soon to be released and i still believe in human race

P.S : without abusing can i ask you to correct me for German translation ?
 

Laurent95

Active Member
Licensed User
Longtime User
Hi Laurent, thx you and every body to understand me, for the german translation of cours i´ll be happy.
Hi Giuseppe, thank you i will send you the string's files, English and German, this week end
And of course if you need the inverse in French that would be a pleasure.

Hi Giuseppe, i will wait that you have more time for take a look on my german translation, no worries. I wish you a good WE.
 
Last edited:

javiers

Active Member
Licensed User
Longtime User
Hello, when I get coordinates of a point on the sea (eg coordinates are: 44.99511917343001 / 44.99511917343001 ) I get the following error.
Is there any way to solve it? Thanks.

B4X:
a.LatAndLong = CoorXY.Latitude & "," & CoorXY.Longitude
java.lang.NullPointerException: Error Parsing Weather!!!
  at it.giuseppe.salvi.icos.library.weather.forecast.provider.ICOSForecastWrapper.getWeather(ICOSForecastWrapper.java:75)
  at it.giuseppe.salvi.icos.library.weather.ICOSWorldForecastWrapper.setLatAndLong(ICOSWorldForecastWrapper.java:320)
  at b4a.example.main._weather(main.java:5670)
  at b4a.example.main._mapfragment1_click(main.java:3595)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:511)
  at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
  at anywheresoftware.b4a.BA.raiseEvent2(BA.java:157)
  at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
  at anywheresoftware.b4a.objects.MapFragmentWrapper$2.onMapClick(MapFragmentWrapper.java:152)
  at com.google.android.gms.maps.GoogleMap$5.onMapClick(Unknown Source)
  at com.google.android.gms.maps.internal.h$a.onTransact(Unknown Source)
  at android.os.Binder.transact(Binder.java:297)
  at bor.a(SourceFile:93)
  at maps.af.q.b(Unknown Source)
  at maps.ap.bo.b(Unknown Source)
  at maps.ap.bk.onSingleTapConfirmed(Unknown Source)
  at maps.bt.g.onSingleTapConfirmed(Unknown Source)
  at maps.bt.i.handleMessage(Unknown Source)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:137)
  at android.app.ActivityThread.main(ActivityThread.java:4424)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:511)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  at dalvik.system.NativeStart.main(Native Method)
 
Last edited:

javiers

Active Member
Licensed User
Longtime User
Thanks for your answer.
Is there a problem now? I have errors:
image3.bitmap = Main.a.FCIcon (1) ... Invalid index 1, size is 1
 

Laurent95

Active Member
Licensed User
Longtime User
Thanks for your answer.
Is there a problem now? I have errors:
image3.bitmap = Main.a.FCIcon (1) ... Invalid index 1, size is 1
Hi Javiers, the index is from 0 to 4 just 5 days weather.

let me know.
Hi,
Their server don't work yesterday again........ I have also problems with my widget, no update work.
Regards
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…