Skip to content

AsifMahsud/pakOrbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pakOrbit

Summary

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.

Solution

The solution achieves its objectives by:

  1. Providing a dropdown menu for users to select their desired city.
  2. Fetching weather data from the 7Timer! API based on the selected city's latitude and longitude.
  3. Parsing and displaying the fetched data in a visually appealing manner using weather-related emojis and descriptions.
  4. Offering a toggle option for users to switch between Celsius and Fahrenheit temperature units.

Approach

The steps taken to complete the project include:

  1. Setting up the basic HTML structure with relevant CSS for styling.
  2. Integrating the 7Timer! API to fetch weather data.
  3. Writing JavaScript functions to handle the fetching, parsing, and displaying of weather data.
  4. Implementing a temperature unit toggle feature to switch between Celsius and Fahrenheit.