Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Prayer Times to WhatsApp #84

Open
OdyAsh opened this issue Nov 17, 2024 · 0 comments
Open

Add Prayer Times to WhatsApp #84

OdyAsh opened this issue Nov 17, 2024 · 0 comments
Labels
answer quality Issues related to the quality of answers Ansari is giving. enhancement New feature or request good first issue Good for newcomers

Comments

@OdyAsh
Copy link
Collaborator

OdyAsh commented Nov 17, 2024

Given the screenshot below, we want to integrate prayer times based on the user's location. One way this can be done is to use pyislam library for prayer time calculation, and get the user's location by the following logic:

  • User asks for prayer time
  • if it's not stored in DB, Ansari prompts the user to send location
  • If user sends location as WhatsApp location object, then we can just get these coordinates and pass it to pyislam.
  • Otherwise, if he sends something like "Alexandria, Egypt", then we use geopy library to get geocode.

Then, location is stored and used in future sessions with that particular user.

@OdyAsh OdyAsh converted this from a draft issue Nov 17, 2024
@OdyAsh OdyAsh added enhancement New feature or request good first issue Good for newcomers answer quality Issues related to the quality of answers Ansari is giving. labels Nov 17, 2024
@OdyAsh OdyAsh moved this to Backlog in Ansari Work Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answer quality Issues related to the quality of answers Ansari is giving. enhancement New feature or request good first issue Good for newcomers
Projects
Status: Backlog
Status: Todo
Development

No branches or pull requests

1 participant