Example #1
0
        private async void FeelsLike()
        {
            RootObject gotWeather =
                await GothenburgWeather.GetWeather();

            TextFeelsLike.Text = "Känns: " + ((int)gotWeather.main.feels_like).ToString() + "°";
        }
Example #2
0
        private async void GetDescription()
        {
            RootObject gotWeather = await GothenburgWeather.GetWeather();

            textDescription.Text = gotWeather.weather[0].description[0].ToString().ToUpper() +
                                   gotWeather.weather[0].description.Substring(1);
        }
Example #3
0
        private async void DegreeGetter()
        {
            RootObject gotWeather = await GothenburgWeather.GetWeather();

            string icon = String.Format("ms-appx:///Assets/Weather/{0}.png", gotWeather.weather[0].icon);

            ResultImage.Source = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(icon, UriKind.Absolute));
            celsius.Text       = ((int)gotWeather.main.temp).ToString() + "°";
        }
Example #4
0
        private async void ShowWind()
        {
            RootObject gotWeather = await GothenburgWeather.GetWeather();

            WindSpeedText.Text = "Vind: " + ((int)gotWeather.wind.speed).ToString() + " m/s";
        }
Example #5
0
        private async void MinCelsius()
        {
            RootObject gotWeather = await GothenburgWeather.GetWeather();

            Min_Celsius.Text = "Min: " + ((int)gotWeather.main.temp_min).ToString() + "°";
        }
Example #6
0
        private async void CityName()
        {
            RootObject gotWeather = await GothenburgWeather.GetWeather();

            cityResult.Text = gotWeather.name;
        }