Skip to content
Miro382 edited this page Aug 12, 2016 · 4 revisions

Welcome to the CSharp_Weather wiki!

Csharp Weather is easy to use library to receive weather.

Example:

        Weather weather = new Weather("1234567891011121345", Weather.Celsius);
        weather.SetLanguage("en",true);
        if(weather.GetWeather(weather.GetCountry()))
        {
            if(weather.GetWeatherIsSuccessful())
            {
                label2.Text = weather.weatherinfo.Temperature +weather.UnitSymbol();
                label4.Text = weather.weatherinfo.Humidity + " " + weather.weatherinfo.HumidityUnit;
                label6.Text = weather.weatherinfo.WindSpeed;
                label8.Text = weather.weatherinfo.Pressure + " " + weather.weatherinfo.PressureUnit;
                label10.Text = weather.weatherinfo.CityName + "  ( " + weather.weatherinfo.CountryCode+" )";
            }
        }

You may use this units:
Weather.Celsius
Weather.Kelvin
Weather.Fahrenheit

If you want use Open Weather Map go to OWM

If you want use The Norwegian Meteorological Institute go to MET

Clone this wiki locally