Code Monkey home page Code Monkey logo

Comments (2)

swiftyspiffy avatar swiftyspiffy commented on July 17, 2024

Sorry for delay. Yes, "Weather" is "WeatherList" (multiple weathers can exist concurrently). I just tested this:

var openWeatherAPI = new OpenWeatherAPI.OpenWeatherApiClient("...");
var query = openWeatherAPI.Query("anchorage");
Console.WriteLine(string.Format("The temperature in {0}, {1} is currently {2} °F", query.Name,query.Sys.Country, query.Main.Temperature.FahrenheitCurrent));
foreach(var weather in query.WeatherList)
    Console.WriteLine($"Id: {weather.ID}\nMain: {weather.Main}\nDescription: {weather.Description}\nIcon: {weather.Icon}");

and got:

The temperature in Anchorage, US is currently 30.092 °F
Id: 803
Main: Clouds
Description: broken clouds
Icon: 04d

And with query mukachevo:

The temperature in Mukachevo, UA is currently 68.882 °F
Id: 804
Main: Clouds
Description: overcast clouds
Icon: 04d

And with query king cove:

The temperature in King Cove, US is currently 17.708 °F
Id: 701
Main: Mist
Description: mist
Icon: 50n
Id: 601
Main: Snow
Description: snow
Icon: 13n

from openweathermap-api-csharp.

swiftyspiffy avatar swiftyspiffy commented on July 17, 2024

This is 1.0.2 from nuget by the way. That is to say, I think things are working, its just the city you queried didnt have any weather data available from openweathermap. Closing (feel free to comment/reopen if needed).

from openweathermap-api-csharp.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.