Announcement: This repo will be discountinued. Please visit the replacement repo mpt-server
Attention ❗ This API is meant to be used by the Malaysia Prayer Time app as a backup if JAKIM's API is unreachable.
Prerequisites: Node & Python 3.10
⚠️ Careful: Don't run too much (Don't DDOS JAKIM). For each run, it will poll this data from JAKIM server about 58 times (number of zones, it could be more than that due to retrying) every 1.5 secs.
Install required packages
pip install requests urllib3
Run the fetcher
py fetcher.py
npm install
Then
npm start
flowchart TD
A{{JAKIM API}}
A <--> C
C[[Fetch latest prayer data]] --- D[(db.json)] & E[(log.json)] --> F(Commit & push)
F -->|Heroku build triggered| G[Deployed to Heroku]
This workflow will trigger automatically on the first day of the month via GitHub Actions.