Comments (2)
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.
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)
- Installation steps HOT 5
- Add possibility to use https endpoint
- Add timezone field to `QueryResponse`
- Add Daily Forecast HOT 2
- Temperature value ignores decimal separator
- Decimal Seeparator HOT 2
- System.NullReferenceException: Object Reference not set to an instance of an object HOT 2
- Kevin is showing the Fahrenheit HOT 1
- Make nuget package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openweathermap-api-csharp.