Solution for the weather-api challenge from roadmap.sh.
A command-line weather application built in Python that fetches real-time weather data using the Visual Crossing API.
Supports current weather, hourly forecast, 7-day forecast, and location handling with a simple menu-based interface.
Clone the repository and run:
git clone https://github.com/Abhinav08bhatt/stormbit.gitcd stormbitpython main.pypip install requestsVersion 1.0 (latest)
- Current weather report
- Hourly forecast for today
- 7-day forecast
- Location management:
- Save a location
- Set default location
- View all saved locations
- Save a new location (
a) - View data of a saved location (
b) - Change default location (
c) - Present weather (
d) - Weather of whole day (
e) - Weather for next 7 days (
f)
{
"default": "dehradun",
"saved": ["mumbai","delhi"]
}Stores last successful response from the API.
Visual Crossing Weather API
(Free tier — requires an API key)
This project is open-source and available under the MIT license.