Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vatsalj17/c-weatherapp
C-WeatherApp is a command-line tool in C that fetches real-time weather data for any city using the OpenWeatherMap API, displaying information like temperature, humidity, wind speed, and weather conditions.
https://github.com/vatsalj17/c-weatherapp
api c cjson curl json openweathermap-api weather weather-api
Last synced: about 2 months ago
JSON representation
C-WeatherApp is a command-line tool in C that fetches real-time weather data for any city using the OpenWeatherMap API, displaying information like temperature, humidity, wind speed, and weather conditions.
- Host: GitHub
- URL: https://github.com/vatsalj17/c-weatherapp
- Owner: Vatsalj17
- Created: 2024-11-11T16:50:30.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T17:35:05.000Z (about 2 months ago)
- Last Synced: 2024-11-11T17:43:25.929Z (about 2 months ago)
- Topics: api, c, cjson, curl, json, openweathermap-api, weather, weather-api
- Language: C
- Homepage: https://github.com/Vatsalj17/Weather_forcast_in_C
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather Checker
A simple C program that retrieves and displays the current weather information for a specified city using the OpenWeatherMap API.## Features
- Shows current temperature, feels-like temperature, minimum and maximum temperatures, pressure, and humidity.
- Displays the general weather condition and wind speed.
- Shows sunrise and sunset times (adjusted for local timezone) and the country code.## Requirements
- C Compiler (e.g., GCC)
- libcurl for making HTTP requests
- cJSON library for parsing JSON responses## Usage
- Enter the name of the city for which you want to check the weather.\## Example
```bash
Enter the city name: Delhi
```#### Output:
```yaml
Welcome to the Weather Checker!
-------------------------------------------
This program shows you the current weather in any city.Temperature: 20.05 °C
It feels like: 20.41 °C
Minimum Tempreature: 20.05 °C
Maximum Tempreature: 20.05 °CPressure: 1014 mBar
Humidity: 88 %
Weather Condition: mist
Wind Speed: 2.57 kphSunrise: 06:41:40
Sunset: 17:29:05Country Code: IN
```
## Note
To use this program, replace "e6d43eafcf69f246c6180b997c652ea7" with your own OpenWeatherMap API key.## Contributing
Feel free to reach out or contribute to this project! Contributions, issues, and feature requests are welcome.