How medaminezghal/plasma6-applets-mawaqit-prayer-times works
Mawaqit Prayer Times is a KDE Plasma widget that displays mosque-published prayer times and a live countdown. Users configure a mosque by searching or entering its address; the widget fetches and caches its annual calendar, then computes the daily timetable, next prayer, countdown, and Hijri date locally. The graph preserves the documented display, customization, localization, and location-detection branches. The core JavaScript is excerpted; UI and configuration responsibilities and their links are based on the README and file tree, so those edges cite the README.
Main entry points: configGeneral.qml General settings · mawaqit.js Prayer calculations · main.qml Widget entry · FullRepresentation.qml Full timetable
Components 17
Widget views
- Widget entry
package/contents/ui/main.qml - Compact view
package/contents/ui/CompactRepresentation.qml - Full timetable
package/contents/ui/FullRepresentation.qml
Prayer logic
- Prayer calculations
package/contents/code/mawaqit.js - Hijri calendar
package/contents/code/mawaqit.js - Localized labels
package/contents/code/mawaqit.js
Settings
- Calendar settings
package/contents/config/main.xml - Settings panel
package/contents/ui/configPanel.qml - General settings
package/contents/ui/configGeneral.qml - Appearance settings
package/contents/ui/configAppearance.qml - Font picker
package/contents/ui/FontPickerSheet.qml - Configuration UI
package/contents/config/config.qml
Location lookup
- IP location services
- GeoClue
- Reverse geocoder
Other components
- Widget user
- Mawaqit service
Connections 21
- Widget user → Widget entry: opens widget
README.md - Widget entry → Compact view: shows panel
README.md - Widget entry → Full timetable: expands view
README.md - Widget entry → Prayer calculations: computes times
README.md - Prayer calculations → Mawaqit service: fetches calendar
README.md - Prayer calculations → Calendar settings: caches calendar
README.md - Calendar settings → Prayer calculations: supplies calendar
README.md - Prayer calculations → Hijri calendar: uses date math
package/contents/code/mawaqit.js - Compact view → Localized labels: formats labels
- Full timetable → Localized labels: formats labels
- Full timetable → Hijri calendar: shows date
README.md - Widget user → Configuration UI: opens settings
README.md - Configuration UI → Settings panel: provides settings
- Settings panel → General settings: configures mosque
- Settings panel → Appearance settings: configures display
- Appearance settings → Font picker: opens picker
- General settings → Mawaqit service: searches mosques
README.md - Widget user → General settings: requests location
README.md - General settings → GeoClue: requests coordinates
README.md - General settings → IP location services: looks up IP
README.md - General settings → Reverse geocoder: reverse geocodes
README.md