Weather Wizard is a web application that provides weather updates for a town or city, based on the location and country entered by the user. It uses the OpenWeatherMap API to fetch weather data, and displays basic information such as temperature, current weather conditions, air pressure, real feel, humidity, wind speed and direction, sunrise and sunset times, cloudiness, and visibility.
The application also features a dark mode, which can be toggled on or off, and saves the current status of the mode so that it is preserved upon refreshing the page.
To get started with Weather Wizard, simply visit the live demo of the application. The application is hosted on a remote server, so no installation is required.
Alternatively, you can download the source code from the GitHub repository and run it locally on your computer.
Before running Weather Wizard locally, you will need to have the following software installed on your computer:
- A web browser (such as Chrome, Firefox, or Safari)
- A code editor (such as Visual Studio Code, Sublime Text, or Atom)
You will also need an API key from OpenWeatherMap in order to access weather data. You can sign up for a free account on their website to obtain an API key.
To install Weather Wizard locally on your computer, follow these steps:
- Download the source code from the GitHub repository.
- Open the code in your preferred code editor.
- Navigate to the
js
folder and create aconfig.js
file. - Add
const YOUR_API_KEY = "Your_own_API_KEY";
line to the file, ReplaceYour_own_API_KEY
with your actual OpenWeatherMap API key. - Save the
config.js
file and close it. - Open the
index.html
file in your web browser.
That's it! You should now be able to use Weather Wizard to obtain weather updates for any town or city.
Using Weather Wizard is simple. Follow these steps to get started:
- Enter the name of a town or city in the
Location
field. - Select a country from the
Country
field. - Click the
Get Weather
button. - The weather update for the location you entered should now be displayed.
- You can view basic weather information, such as temperature, humidity, wind speed and direction, and more.
- You can enable Dark Mode by enabling of disabling the toggle button above.
This project is licensed under the GNU General Public License. See the LICENSE
file for details.
Weather Wizard was built using the following technologies:
- HTML
- CSS
- JavaScript
- OpenWeatherMap API
Special thanks to OpenWeatherMap for providing the API used by this application.