pakOrbit is a weather forecasting application focused on various cities in Pakistan. The application fetches weather data from the 7Timer! API and displays it to the user in a user-friendly format. The main highlights of this solution include:
- A simple and intuitive user interface.
- Ability to select different cities in Pakistan to fetch weather data.
- Display of weather data using relevant emojis and descriptions.
- Option to toggle between Celsius and Fahrenheit temperature units.
The solution achieves its objectives by:
- Providing a dropdown menu for users to select their desired city.
- Fetching weather data from the 7Timer! API based on the selected city's latitude and longitude.
- Parsing and displaying the fetched data in a visually appealing manner using weather-related emojis and descriptions.
- Offering a toggle option for users to switch between Celsius and Fahrenheit temperature units.
The steps taken to complete the project include:
- Setting up the basic HTML structure with relevant CSS for styling.
- Integrating the 7Timer! API to fetch weather data.
- Writing JavaScript functions to handle the fetching, parsing, and displaying of weather data.
- Implementing a temperature unit toggle feature to switch between Celsius and Fahrenheit.