https://github.com/kindermax/weather-cli
Weather cli based on openweathermap.org api written in C++
https://github.com/kindermax/weather-cli
Last synced: about 1 month ago
JSON representation
Weather cli based on openweathermap.org api written in C++
- Host: GitHub
- URL: https://github.com/kindermax/weather-cli
- Owner: kindermax
- Created: 2024-01-22T21:16:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T20:37:00.000Z (almost 2 years ago)
- Last Synced: 2025-02-26T10:32:42.823Z (over 1 year ago)
- Language: C++
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Weather cli
This is a simple c++ cli which calls https://home.openweathermap api
## Build
```bash
cmake -S . -B build && cmake --build build
```
## Development
In order for nvim lsp to understand the project, you need to generate compile_commands.json file:
```bash
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1
```
## Run
```bash
export API_KEY=
./build/weather_cli Kyiv
```
You will see something like:
```bash
The weather in Kyiv:
Temp: -1.73
Temp feels like: -1.73
Humidity:87
Wind: 0.45
```