Simple CLI utility to fetch prayer time data from JAKIM.
🚧 This is still work-in-progress 🚧 Related to mptwaktusolat/api-waktusolat#3
- Clone this repository
- Install dependencies
pip install -r requirements.txt
- Run the script
py main.py
To view all available commands, run:
py main.py -h
To view help for specific command, run:
py main.py <command> -h
Step 1: This command will fetch the prayer time data for all states for the
current month (default). If you want to fetch for other month, you can pass the
--relative-month
arguments (accepts integer input). A file month-year.json
will be produced.
Step 2: Next, the date time will be parsed and save as UNIX timestamp (seconds). Another
output file will be produced (month-year.processed.json
).
Note All produced files will be saved in the
output
directory.
Step 3: Then, the processed data will be pushed to the Firebase Firestore. You can skip
this step by passing the argument --no-push
. (You may need to have Firebase admin credential JSON file)