Skip to content

Weather forecast for the selected list of cities using third-party libraries

License

Notifications You must be signed in to change notification settings

W-y-l-t/WeatherForecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherForecast

Weather forecast for the selected list of cities using third-party libraries

Technical specification

  • Display the weather forecast for several days ahead (the default value is set by the config)

  • Update with some frequency (set by the config)

  • Switch between cities using the "n", "p" keys

  • End the program by Esc

  • To increase / decrease the number of forecast days by pressing the "+", "-" keys

  • The list of cities, the update frequency, the number of forecast days must be defined in the config

An example of a running console app

Weather data sources

  • Open-Meteo for the weather forecast
  • Api-Ninjas to determine the coordinates by the name of the city

Third-party libraries

  1. C++ requests to work with HTTP requests
  2. Nlohmann's json to parse JSONs
  3. FTXUI to create a user interface
  4. RapidXML to process the config in XML format

Config example

<?xml version="1.0" encoding="utf-8"?>
<MyWeatherConfiguration>
    <ListOfCities>
        <City>Saint Petersburg, RU</City>
        <City>Miami, US</City>
        <City>Tokyo, JP</City>
    </ListOfCities>
    <UpdateFrequency>15</UpdateFrequency>
    <NumberOfDays>3</NumberOfDays>
</MyWeatherConfiguration>

About

Weather forecast for the selected list of cities using third-party libraries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published