I developed a straightforward weather website that enables users to input a specific location and obtain relevant weather information. The data retrieved is stored in an SQL database using XAMPP. This software solution offers users an intuitive interface for searching and accessing weather data. It effectively displays both current and historical weather conditions on the screen. Access to accurate and timely weather information can significantly benefit individuals and organisations.
Integrating standardised Application Programming Interfaces (APIs) has significantly enhanced the accessibility and simplicity of obtaining weather data.
I completed the following activities.
I built a user-friendly front-end using HTML, CSS, JavaScript, and Bootstrap.
Integrated JSON-based API calls to retrieve live weather details, including temperature, humidity, wind speed, and forecasts.
Developed a PHP 8.2.12 back-end to manage API requests, cache data, and reduce excessive API calls.
Designed and optimized a SQL 5.2.1 database to store user preferences and historical weather data for enhanced user experience.
Ensured cross-browser compatibility and implemented error-handling mechanisms for smooth API integration
Location Search Box: This box is used to obtain all the necessary information about the weather in a particular location.
When the user searches for a location, the system accesses APIs to retrieve the current weather information for that location, along with any historical weather data. This historical data, displayed beneath the main weather information, is presented in text format and includes details such as temperature and weather conditions (e.g., daytime, overcast, sunny, etc).
A display of “City not found “on the screen.
The administrator can effortlessly modify the system's settings and configurations through the URL weather_api/admin/index.php. The interface provides easy access to features like Weather Today, History, Setting New Setting, and Manage Files. sistory, Setting New Setting, and Manage Files.