Welcome to BASH-weather, a weather forecasting application built using Bash! This application utilizes API requests with the wget
command to fetch details of the current weather at a given location.
BASH-weather is a simple yet effective weather forecasting tool designed to run in a Bash terminal. It provides current weather details for a specified location, allowing users to either enter the location manually or find it through their device's IP address.
- 📍 Fetches weather details for a specified location
- 🌡️ Provides current temperature, humidity, wind speed, and weather condition
- 📅 Displays forecast for up to 2 days
- 🌈 Colorful and appealing display elements in the terminal
-
Clone the repository:
git clone https://github.com/22pt16/BASH-weather.git
-
Navigate to the project directory:
cd BASH-weather
-
Run the
weather.sh
script with the desired location:./main.sh "Coimbatore"
or
./main.sh
-
Follow the on-screen prompts to enter the location manually or use the device's IP.
- IP Finder: Retrieves the present active device's IP address.
- Location Coordinates: Determines the latitude and longitude of the location using the IP address.
- Realtime Weather API: Fetches JSON and HTML files containing details of the weather forecast for the specified location.
Thank you for exploring BASH-weather! If you encounter any issues or have suggestions for improvements, feel free to open an issue or contribute to the project.
Happy forecasting! 🌤️