Animaonline Weather API - Tutorials - VB.NET

Tutorial
  • Start Visual Studio
  • Go to "File" --> "New" --> "Project" --> "Console Application"
  • Click OK
Now you will have to add the Animaonline Weather API Library to your project's reference list
  • Go to "Project" --> "Add Reference..." --> Open the "Browse" tab, and browse for the compiled Animaonline Weather API Library --> "OK"
Now you are set to start writing some code.

Add the following code to the application's Sub Main()
        Dim wD As Animaonline.WeatherAPI.WeatherData = New Animaonline.WeatherAPI.WeatherData(Animaonline.WeatherAPI.LanguageCode.en_US, "Phoenix, AZ")
        Console.WriteLine("Condition:{0} Temperature:{1}°F {2}°C", wD.condition, wD.temp_f, wD.temp_c)

The application will look like this when you're done
Module Module1

    Sub Main()
        Dim wD As Animaonline.WeatherAPI.WeatherData = New Animaonline.WeatherAPI.WeatherData(Animaonline.WeatherAPI.LanguageCode.en_US, "Phoenix, AZ")
        Console.WriteLine("Condition:{0} Temperature:{1}°F {2}°C", wD.condition, wD.temp_f, wD.temp_c)
    End Sub

End Module
  • Now start your application by pressing Ctrl + F5

If you encounter any errors , feel free to ask in the forums.

P.S. For a full list of properties refer to API Overview page.

Programmed by Roman Alifanov, uses Google's Weather Feed, licensed under GNU General Public License version 2
© 2007-2009 Roman Alifanov

Last edited Jul 31, 2009 at 2:27 PM by animaonline, version 5

Comments

No comments yet.