2022-07-23 21:55:30 +05:00
2022-09-09 10:46:54 +05:00
2022-07-24 13:06:11 +05:00

prayertimes-sh

Small script to get next prayer time

Prerequesites

A linux machine, that's it lol. The only special commands being used are date, wget or curl, grep, cut

Usage

  • Download the script
wget -O prayertime.sh https://git.shihaam.dev/flamexode/prayertimes-sh/raw/branch/master/prayertime.sh
# or
curl -o prayertime.sh https://git.shihaam.dev/flamexode/prayertimes-sh/raw/branch/master/prayertime.sh
  • Just run the script, make sure that prayertimes.csv isn't a file being used
chmod +x prayertime.sh
./prayertime.sh
# or specify your own file
./prayertime.sh -f "/home/flamexode/projects/prayertimes-db/out/102.csv"

Note: You'll need to use the island mappings to find the island ID for your island. Island ID for Male' is 102, this is selected by default if no input is given

  • (optional) Add a cronjob to store the output for other programs
* * * * * /home/flamexode/scripts/prayertime.sh > /home/flamexode/.prayertime

Note: Make sure you use your own username

Now you can use ~/.prayertime to quickly read the next prayer time

Description
Small script to get next prayer time
Readme 32 KiB
Languages
Shell 100%