This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
AndrewTrieu 2ea1abec02 Repush
2023-01-05 21:27:30 +02:00
2023-01-05 21:27:30 +02:00
2023-01-05 21:27:30 +02:00
2023-01-05 21:27:30 +02:00

Simple Weather App

This app allows users to search for the weather in a given location. It consists of an HTML file and a JavaScript file. Check it out here.

Instructions

To use the app, simply enter a location (city, state, and country) in the form and click the "Get Weather" button. The app will display the details of the current weather of that location. If no location is provided, the app will display the weather for the user's current location as determined by their IP address.

However, due to the nature of GitHub Pages, the deployment will not work correctly. Please test it locally as the link above is for reference purpose only. Actual usage is demonstrated in the following video:

New video.webm

API

This app uses the OpenWeatherMap API to retrieve weather data and the Rest Countries API to retrieve country names. It also uses the ipapi API to determine the user's current location.

Notes

This app was built using Bootstrap for styling and layout. It also utilizes fetch() and async/await to handle API calls.

Description
A simple weather app that allows users to search for the current weather in a given location
Readme 28 KiB
Languages
JavaScript 75.8%
HTML 24.2%