- This project is a
Realtime Weather Application
that provides live weather data along withdaily 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π:
- Check out the live demo of the project at
Realtime Weather and Prayer Times APP
.
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.
- 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.
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.
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
We welcome contributions
to Realtime Weather and Prayer Times Application! Hereβs how you can help:
-
Fork the repository - Click the "Fork" button at the top right of the repository page.
-
Clone your fork - Use the command:
git clone https://github.com/OmarrSakr/Realtime-Weather-and-Prayer-Times-APP.git
π 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
- π 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.
-
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 inthe README
or through the issuetracker
on GitHub.