8000 first implementation of daily reminder api endpoint by asim · Pull Request #48 · asim/reminder · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

first implementation of daily reminder api endpoint #48

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

Merged
merged 3 commits into from
May 17, 2025
Merged

first implementation of daily reminder api endpoint #48

merged 3 commits into from
May 17, 2025

Conversation

asim
Copy link
Owner
@asim asim commented May 16, 2025

A daily reminder for a verse, hadith and name of Allah that updates every 24 hours

Example

curl http://localhost:8080/api/daily

Returns

{
  "hadith": "When the delegate of 'Abd Al-Qais came to Allah's Apostle, he said, \"Who are the delegate?\" They said, \"The delegate are from the tribe of Rabi'a.\" The Prophet said, \"Welcome, O the delegate, and welcome! O people! Neither you will have any disgrace nor will you regret.\" They said, \"O Allah's Apostle! Between you and us there are the infidels of the tribe of Mudar, so please order us to do something good (religious deeds) that by acting on them we may enter Paradise, and that we may inform (our people) whom we have left behind, about it.\" They also asked (the Prophet) about drinks. He forbade them from four things and ordered them to do four things. He ordered them to believe in Allah, and asked them, \"Do you know what is meant by belief in Allah?\" They said, \"Allah and His Apostle know best.\" He said, ''To testify that none has the right to be worshipped except Allah, the One, Who has no partners with Him, and that Muhammad is Allah's Apostle; and to offer prayers perfectly and to pay Zakat.\" (the narrator thinks that fasting in Ramadan is included), \"and to give one-fifth of the war booty (to the state).\" Then he forbade four (drinking utensils): Ad-Duba', Al-Hantam, Al-Mazaffat and An-Naqir, or probably, Al-Muqaiyar. And then the Prophet said, \"Remember all these things by heart and preach it to those whom you have left behind.\" - Narrated by Ibn Abbas -  Volume 9, Book 91, Number 371 ",
  "name": "Al Baatin - الْبَاطِنُ - The Hidden - Al Baatin signifies the hidden and unseen nature of Allah, reflecting the belief that while Allah is manifest in creation, His true essence remains concealed from human sight and understanding. This name reminds believers of the limitations of human knowledge and the depth of God's presence in the universe.",
  "verse": "O believers! Obey Allah and His Messenger and do not turn away from him while you hear ˹his call˺. - 8:20"
}

TODO: use OpenAI to determine if a single verse has enough context or whether we need to include multiple verses. Also web app /daily endpoint

Includes lite app /daily page.

@asim asim merged commit a95b522 into master May 17, 2025
2 checks passed
@asim asim deleted the daily branch May 17, 2025 12:50
@asim asim mentioned this pull request May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0