Write a realization for weather conditions monitoring using OpenWeatherMap API and components from Boost library.
The program is divided into 3 modules:
network- is responsible for connecting to the external server, sending a request, and receiving a response.client- is responsible for passing data tonetwork, processing results from it, and printing results on a screen.application- is responsible for processing command-line arguments and passing them toclient.
The program is capable of:
- Showing help , if no arguments present or it was
-hor--helpargument; - Reading city from the console;
- Reading token from console (If not present, check the file
token.txtin the same directory as executable). - Showing information about the weather in specified city:
- Name of the city
- Temperature (degree Celsius)
- Wind velocity (meters per second)
- Wind direction (degrees)
- Open the following site: https://home.openweathermap.org/users/sign_up
- Sing up there
- In the purpose field select "Education/science"
- Check your email, open letter, and press "Verify"
- Your API will be here: https://home.openweathermap.org/api_keys
- Read the API doc: https://openweathermap.org/current
- CMake for building
- boost::asio
- boost::beast
- boost::program
- install boost
- From terminal:
- mkdir build/
- cd build/
- cmake ..
- make
- ./Weather --city Kherson