Skip to content

simple educational console app for fetching city-specific weather data using C#, SQLite, JsonConverter, HTTPClient and OpenWeatherMap API

Notifications You must be signed in to change notification settings

v-valdo/PuppetWeatherConsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PuppetWeather

educational C# Console App printing city-specific and current weather data with OpenWeatherMap API, SQLite, JsonConverter

logic

  • client retrieves city ID (needed for api request) from the SQLite database, and sends an API request
  • json response is deserialized into objects and selected values are printed: temperature, feels_like, and description
  • if the description contains "cloud" or "rain" - ascii art is printed accordingly

notes:

  • ParseCities.cs uses a big JSON sample file (bulk.openweathermap.org/sample/daily_14.json.gz) to retrieve city NAME and ID and insert into local SQLite file. It inserts 22 000+ records. The .db file included is already loaded.
  • this is an unfinished demonstrative project with educational intent

screenshots

About

simple educational console app for fetching city-specific weather data using C#, SQLite, JsonConverter, HTTPClient and OpenWeatherMap API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages