Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 23 hours 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 (12 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T20:37:00.000Z (4 months ago)
- Last Synced: 2024-09-12T06:58:33.792Z (4 months 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
```