Welcome to the Weather Information App! This application allows users to fetch current weather information for a specific city using the OpenWeatherMap API. The fetched data is then displayed on the console and saved to a text file for future reference.
- Fetches current weather data from OpenWeatherMap API.
- Displays weather information including temperature, weather description, humidity, and wind speed.
- Writes weather information to a text file for offline access.
- Python 3.x installed on your system.
- OpenWeatherMap API key. You can obtain it by signing up at OpenWeatherMap.
-
Obtain your OpenWeatherMap API key by signing up at OpenWeatherMap.
-
Run the application:
python weather_app.py
-
Obtain your OpenWeatherMap API key by signing up at OpenWeatherMap.
-
Run the application:
python weather_app.py
-
Follow the on-screen prompts to enter your API key and the city name for which you want to fetch weather information.
Note: When entering the city name, ensure to provide the following:
- Exact City Name: Spell the city name correctly to ensure accurate results (e.g., "New York", "London").
- City Name and Country Code (Optional): Use the format "City, Country Code" to specify the country if needed (e.g., "London, UK", "Springfield, US").
- Special Characters: Input special characters or diacritics correctly if applicable (e.g., "Paris", "München").
- Alternative Names: Use alternative or local names if known (e.g., "Mumbai" for "Bombay").
- City Name with Spaces: Input the city name with spaces as it appears (e.g., "Los Angeles", "San Francisco").
- City District or Area (Optional): Specify a district or area within larger cities for more localized weather data (e.g., "Manhattan, New York", "Shinjuku, Tokyo").
This project is licensed under the MIT License - see the LICENSE file for details.