WeatherScope is my Open API Project for Code the Dream. It uses the Open-Meteo API to compare weather data for Richmond, Virginia and Kandahar, Afghanistan.
This project allows users to explore weather information through two interactive views:
- Temperature Comparison
- Conditions & Time
Each button triggers a new GET request and displays the requested weather data dynamically.
This project uses the Open-Meteo API.
- Compare weather between Richmond, VA and Kandahar, Afghanistan
- View temperatures in both Celsius and Fahrenheit
- View weather conditions with icons
- Compare local times and time difference
- Responsive design for desktop, tablet, and mobile
- Separate button-based requests for different data views
- HTML
- CSS
- JavaScript
- Open-Meteo API
index.htmlindex.cssindex.jsREADME.md
- Download or clone this repository.
- Open the project folder in VS Code or another code editor.
- Open
index.htmlin your browser.
You can also use the Live Server extension in VS Code:
- Open the folder in VS Code.
- Right-click
index.html. - Select Open with Live Server.
- Clicking Temperature Comparison sends GET requests to retrieve temperature data only.
- Clicking Conditions & Time sends GET requests to retrieve weather condition data and displays local time information.
- Add more cities for comparison
- Add more weather details such as humidity or wind speed
- Add more visual icons or animations
- Perform cross-browser testing in Firefox and other browsers
Raz Ebrat