Weather Information App
Welcome to the Weather Information App! This application allows users to fetch current weather information for a specific city using the OpenWeathe…
Welcome to the Weather Information App! This application allows users to fetch current weather information for a specific city using the OpenWeathe…
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.
Welcome to the Weather Information App!
You need an API key to access weather data from OpenWeatherMap.
You can obtain your API key by signing up at https://home.openweathermap.org/users/sign_up
Please enter your OpenWeatherMap API key: YOUR_API_KEY
Enter the city name: London
Enter the temperature unit. 'C' for Celsius and 'F' for Fahrenheit: C
Current City : London, GB
Current temperature is: 15.2 C
Current weather desc : light rain
Current Humidity : 82 %
Current wind speed : 5.1 kmph
Current wind direction: SW
Today's sunrise time : 05:12:34
Today's sunset time : 20:45:12
Weather information written to weatherinfo.txt
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:
This project is licensed under the MIT License - see the LICENSE file for details.