Skip to content

Conversation

@TheCodingSheikh
Copy link

Proposed change

Related discussion #3924

Prayer Times widget that leverages the adhan-js library to display accurate Islamic prayer times based on the user's location.
This widget will calculate prayer times using the adhan-js library. The following configuration options will be supported:

  • latitude (required): The latitude of the location (e.g., 24.774265).
  • longitude (required): The longitude of the location (e.g., 46.738586).
  • method (optional): The calculation method for prayer times. Options include:
    • "MuslimWorldLeague"
    • "Egyptian"
    • "Karachi"
    • "UmmAlQura"
    • "Dubai"
    • "MoonsightingCommittee"
    • "NorthAmerica"
    • "Kuwait"
    • "Qatar"
    • "Singapore"
    • "Turkey"
    • Default is "UmmAlQura" if not specified.
  • text_size (optional): Adjusts the font size of the displayed times. Options include:
    • "4xl", "3xl", "2xl", "xl", "lg", "md", "sm", "xs"
    • Default is "xs" if not specified.

Example Configuration:

widgets.yaml:
  - adhan:
      latitude: 21.422510
      longitude: 39.826168
      method: "MuslimWorldLeague"
      text_size: "lg"

Screenshot from 2024-09-01 11-53-47

Type of change

  • New service widget
  • Bug fix (non-breaking change which fixes an issue)
  • New feature or enhancement (non-breaking change which adds functionality)
  • Documentation only
  • Other (please explain)

Checklist:

  • If applicable, I have added corresponding documentation changes.
  • If applicable, I have reviewed the feature / enhancement and / or service widget guidelines.
  • I have checked that all code style checks pass using pre-commit hooks and linting checks.
  • If applicable, I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.

Copy link
Collaborator

@shamoon shamoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will not accept an info widget for this, it is quite specific, please rewrite to a 'service' widget.

@github-actions github-actions bot added the stale label May 16, 2025
@github-actions github-actions bot closed this May 31, 2025
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants