B4A Library ICOSWorldForecast 3.50

MarcoRome

Expert
Licensed User
Longtime User
Hi marco be patience because WorldWeatherOnline still not work some time yes but the most of the day it still not working.

I get the same error because it doesnt find the date.
ok Giuseppe no problem... we wait
Thank you
 

Laurent95

Active Member
Licensed User
Longtime User
Thank you for your reply Giuseppe.
Yes, there is long time i was not here.
I am released of work now But not without many things to do before, so i had no time for my hobbies.

Before we can get the weather by the IP address, in fact the server return the city of the Internet connexion management for the user.
That was an interesting possibility because that works in all places and i'm asking myself if i can use it always.
I thanks you for your time to take a look.

I wish you a nice evening.
Regards, Laurent.
 

MarcoRome

Expert
Licensed User
Longtime User
Hi marco be patience because WorldWeatherOnline still not work some time yes but the most of the day it still not working.

I get the same error because it doesnt find the date.

Good Morning Giuseppe.
Today all work
Thank you again
Marco
 

Laurent95

Active Member
Licensed User
Longtime User
Good Morning Giuseppe.
Today all work
Thank you again
Marco

Hi Marco & Giuseppe,
Yes all seems working since yesterday evening.
But i still have some questions for Giuseppe.
1) What's the difference between the new API2 method and the old method on the website ?
2) Can we use the same API keys on the website with API2 url, or we need to have new API keys for version 2 ?
I have try yesterday with the old keys and library v3.5 but i obtain errors.
For be honest it's hard to know now if it's due to the API key or the problems from their website.
3) Giuseppe, have you planned to put conditions weather for ski and marine in the library ?

Thank you for your time Giuseppe, as always you do your best.

Regards, Laurent.
 

lonleystar

Well-Known Member
Licensed User
Longtime User

Hi Laurent, the different between api and api2 they just changed the URL from API to API2.

Yes U can still use the old key.

I'm making the new library will include still 5 days and 3, 6, 12 and 24 hourly for the new library U'll need the new key.
 

Laurent95

Active Member
Licensed User
Longtime User
Hi Laurent, the different between api and api2 they just changed the URL from API to API2.

Yes U can still use the old key.

I'm making the new library will include still 5 days and 3, 6, 12 and 24 hourly for the new library U'll need the new key.

Hi Giuseppe,

Thanks for the informations.
That will be very nice to have the hourly conditions soon

Regards, Laurent.
 

Laurent95

Active Member
Licensed User
Longtime User
Hi Laurent, the different between api and api2 they just changed the URL from API to API2.

Yes U can still use the old key.

I'm making the new library will include still 5 days and 3, 6, 12 and 24 hourly for the new library U'll need the new key.

Hi Giuseppe,

Some news for the new version of the library ?
Because i'm working on a new update of my widget.
That would be nice to put the new hourly datas.

The Website seems not working good many time, have you the same problem ?

Regards, Laurent.
 

coslad

Well-Known Member
Licensed User
Longtime User
Hi Giuseppe, I tried your demo code but it references to the 'ICOSWorldForecast' library, but you attached at the fist post the 'ICOSWorldForecastfree' library. Is there a working demo?

Ciao Giuseppe, ho provato ad eseguire il tuo demo ma la libreria a cui si riferisce non è quella che hai allegato, alcuni metodi sono differenti, hai un demo funzionante ?
 

Laurent95

Active Member
Licensed User
Longtime User
Hi Laurent,.../...
I'm making the new library will include still 5 days and 3, 6, 12 and 24 hourly for the new library U'll need the new key.

Hi Giuseppe,

News about the new library ?
I am not sure i haven't missed something since i was in my new place, i'm still a bit busy.
Thanks for your reply.

Best regards, Laurent
 

MetalOS

Member
Licensed User
Longtime User
Hello, I started on Basic4Android and I just tested the example supplied with your library only I get several errors in the Log. Here is a screenshot to show you the problem. Thank you in advance for your help.

 

Laurent95

Active Member
Licensed User
Longtime User
Hello, I started on Basic4Android and I just tested the example supplied with your library only I get several errors in the Log. Here is a screenshot to show you the problem. Thank you in advance for your help.


Hello,

Your errors are not related to the library.
The variable 'a' is the instance of library, it's what i remember, that's why it generates errors because not assigned.
It's because you don't put the library in your additional library folder or you put it but you don't select it in the libraries tab inside B4A.
Tip : After put library in library additional folder, and select the library in libraries tab, if it's needed, click right and use refresh for B4A knows the new environment.

Regards.
Laurent
 
Last edited:

MetalOS

Member
Licensed User
Longtime User
Hello Laurent, thank you for your help,

The problem is just that I have checked the library in B4A and I still these errors

Bonjour Laurent, merci de ton aide.

Le problème est là justement, j'ai bien coché la librairie dans B4A mais j'obtient ces erreurs.
 

Laurent95

Active Member
Licensed User
Longtime User

Hello,

It's a bit weird, try to declare again the instance of the library in the code.
Or you can try to declare an instance of the library in a new project.
Normally in BA4 if your library is recognized you can access to the object ICOSWorldForecastFree, otherwise you don't see it in the IDE.
Take a look at the print screen below.
EDIT : Code in the print screen is not the example of Giuseppe, no matter if it's different, it's working in same way.

And you can verify if the instance of library is normally declared in the global (or local) module, but in the example normally that's done already.
I say that because the precedent post, indeed in example it's still declared like with the old library, see above : https://www.b4x.com/android/forum/threads/icosworldforecast-3-50.21852/page-24#post-336993
B4X:
Sub Process_Globals
  Dim a As ICOSWorldForecastFree         '< this line.
End Sub

In last, i have seen in posts that if you aren't registered within B4A, you can't access to additional libraries, maybe that's it the problem.
In this case try to contact Erel for that, it's better.

Good luck.

Regards, Laurent.

P.S.: Thank you for French, it's ok, you can use English language. I'm trained all days with my wife, even it's not my native language.
And it's better here in English forum.
 

Attachments

  • ba4libraryinIDE.png
    80.3 KB · Views: 168
Last edited:

MetalOS

Member
Licensed User
Longtime User
I have a business license B4A that normally allow me to use an external library. I try changing the code as you suggested but I still get errors.
 

Laurent95

Active Member
Licensed User
Longtime User
I have a business license B4A that normally allow me to use an external library. I try changing the code as you suggested but I still get errors.


Have you try to do another project with another library and declare the instance of it ?
If that not works also, the problem is not due to the library.
In this last case, it's better to open a new subject because maybe it's related to BA4 or Java directly.

The best way is you post your example that you try to use, Menu File, Export as Zip, and i will try to see where the errors are.
But i can't guarantee that's working at last, because for me the example works fine.

After we still have the church to put a candle (joke)
 

MetalOS

Member
Licensed User
Longtime User
I'll find 5 minutes to try a new project and I'll keep you posted. Thanks for your help.
 

lonleystar

Well-Known Member
Licensed User
Longtime User


Hi Laurent I'm back.

Sorry for the inconvenience
 

MetalOS

Member
Licensed User
Longtime User
Hello, I started on Basic4Android and I just tested the example supplied with your library only I get several errors in the Log. Here is a screenshot to show you the problem. Thank you in advance for your help.


Hello, I always encounter the same problem when compile the example. anyone have a solution? I use the latest version of Basic4Androidvet I have a business license. I Presice I am new on B4A. Thank you in advance for your help.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…