Skip to content

Realtime Weather🌦 is an interactive web app that provides weather details like temperature, 5-day forecasts, air quality, humidity, wind speed, and prayer times πŸ•Œ. πŸ›  This project uses (HTML5), (CSS3), and (JavaScript). The site is fully responsive to ensure a smooth user experience.

Notifications You must be signed in to change notification settings

OmarrSakr/Realtime-Weather-and-Prayer-Times-APP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŒ¦πŸ•Œ Realtime Weather and Prayer Times Application

RealtimeWeather 1 RealtimeWeather 2

  • This project is a Realtime Weather Application that provides live weather data along with daily prayer times.
  • This project is a Dynamic website.
  • The website features a user-friendly interface and updates weather and prayer data automatically every day.
  • Below are the main sections of the websiteπŸ‘‡:

Live Demo 🌐


πŸ›  Website Contents

1. Header:

  • Site Title: Displays "Weather & Prayer Times" with relevant icons.
  • Search Fields:
    • City Input Field: Enter the name of a city to get weather data.
    • Search Button: Fetches the weather of the specified city.
    • Current Location Button: Retrieves weather and prayer times based on the user’s current location.

2. Current Weather Section:

  • Current Temperature: Displays live temperature data in Celsius.
  • Weather Icon: Visual representation of the weather (e.g., sunny, rainy, cloudy).
  • Additional Weather Info:
    • Current date and time.
    • City name and country.

3. 5-Day Forecast Section:

  • Daily Forecast Cards: Each card displays:
  • Weather icon for each day.
  • Expected temperature.
  • Day and date.

4. Today's Highlights:

  • Air Quality Index (AQI): Displays air quality readings and pollutants such as PM2.5, PM10, CO, etc.
  • Sunrise & Sunset Times:
    • Icons for sunrise and sunset with their respective times.
  • Additional Indicators:
    • Humidity, Wind Speed, Pressure, Visibility, and Feels-Like Temperature.

5. Hourly Forecast Section:

  • Weather forecast by the hour (e.g., 6 AM, 9 AM, 12 PM).
  • Each block includes:
    • Weather icon and forecasted temperature.

6. Prayer Times Section:

  • Today’s Date and day.
  • Prayer Cards:
    • Includes Fajr, Dhuhr, Asr, Maghrib, and Isha prayers.
    • Displays icons and accurate prayer times for each prayer.

7. External Resources:

  • Font Awesome Icons for visual enhancements.
  • Google Fonts for stylish typography (e.g., Roboto, Montserrat).
  • Weather Images stored locally in assets/Imgs.

πŸš€ Navigation between Sections

  • Responsive Design: The navigation bar adjusts for different screen sizes. On mobile devices, the navigation will be accessible through a toggle menu.
  • Smooth Scrolling: When clicking on a section link, the page will smoothly scroll to the selected section.
  • Highlight Active Section: The active section in the navigation bar will be highlighted for better user guidance as you scroll through the app.

πŸ§‘β€πŸ’» Languages and Technologies Used

HTML5: Provides the structure and content of the web pages.

CSS3: Used for styling and layout, including frameworks like Bootstrap and Font Awesome for responsive design and iconography.

JavaScript: Implements the application's logic and facilitates interactions with APIs to fetch real-time weather and prayer times data.

APIs: Connects to weather and prayer times services to retrieve up-to-date information.

JSON: Data format used to handle information retrieved from APIs.


πŸ”‘ API Integration

The application uses the following APIs:

OpenWeather API: Retrieves current and forecast weather data. API endpoint: https://api.openweathermap.org/data/2.5/

Prayer Times API: Provides accurate prayer times for a specific location. API endpoint: https://api.aladhan.com/v1/timings


How to Use πŸš€

We welcome contributions to Realtime Weather and Prayer Times Application! Here’s how you can help:

  1. Fork the repository - Click the "Fork" button at the top right of the repository page.

  2. Clone your fork - Use the command:

    git clone https://github.com/OmarrSakr/Realtime-Weather-and-Prayer-Times-APP.git
    

πŸ“‚ Project Structure

πŸ“‚ realtime-weather-prayer-times-app/
β”‚  
β”œβ”€β”€ πŸ“ *assets/*
β”‚   └── πŸ–Ό *Imgs/*          # Local images for weather and UI  
β”œβ”€β”€ 🎨 *css/*
β”‚   β”œβ”€β”€ πŸ“ *styles.css*     # Main stylesheet  
β”‚   β”œβ”€β”€ 🌐 *all.min.css*    # Font Awesome Library
|   β”œβ”€β”€  bootstrap.min.css    # ❌Bootstrap CSS for layout and styling
β”œβ”€β”€ πŸ§‘β€πŸ’» *js/*
β”‚   β”œβ”€β”€ βš™ *app.js*         # Main logic for fetching weather and prayer data  
β”‚   β”œβ”€β”€ bootstrap.bundle.min.js # ❌Bootstrap JavaScript bundle
β”‚   β”œβ”€β”€ 
β”œβ”€β”€ πŸ“„ *index.html*         # Main HTML file  
└── πŸ“• *README.md*          # Documentation 


πŸ“Œ Future Improvements

  • πŸŒ™ Add dark mode functionality for better usability at night.
  • 🟒 Offline Mode: Save the latest data for offline viewing.
  • πŸŒ€ Integrate animations for a smoother user experience.

Important Notes πŸ“’

  • This project is a Dynamic website.

  • API Keys: Ensure that you have valid API keys for both the weather and prayer times services. You can obtain these from the respective service providers and should store them securely.

  • Internet Connection: This application requires a stable internet connection to fetch real-time data. Please ensure you are connected to the internet for the best experience.

  • Device Compatibility: The app is designed to be responsive and works best on modern browsers. It is recommended to test on different devices for optimal performance.

  • Timezone Settings: Make sure to configure your timezone settings correctly to receive accurate prayer times and weather forecasts.

  • Cache Management: If you experience issues with data loading, try clearing your browser's cache or refreshing the page.


  • πŸ“ͺ *Feedback*: If you encounter any bugs or have suggestions for improvements,πŸ“¨ please reach out via the contact information provided in the README or through the issue tracker on GitHub.

About

Realtime Weather🌦 is an interactive web app that provides weather details like temperature, 5-day forecasts, air quality, humidity, wind speed, and prayer times πŸ•Œ. πŸ›  This project uses (HTML5), (CSS3), and (JavaScript). The site is fully responsive to ensure a smooth user experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published