Skip to content

hjr265/deen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deen

Command-line companion for prayer timings, Quran verses, and more.

Install

go install github.com/hjr265/deen@latest

Usage

adhan:next

Show the next prayer time:

~ » deen adhan:next
Fajr 04:05

quran:ayah

Show an ayah (verse) of the Quran:

~ » deen quran:ayah 2:255
[Al-Baqara 2:255, Saheeh International] Allah - there is no deity except Him, the Ever-Living, the Sustainer of [all] existence...

The reference format is surah:ayah (e.g. 2:255 for Ayat al-Kursi). Ranges are also supported (e.g. 2:13-15).

Multiple editions can be configured to show each verse in all editions.

Configuration

Deen reads its configuration from ~/.config/deen/config.toml. Use --config to specify an alternative path:

deen --config /path/to/config.toml adhan:next
[database]
path = "/home/user/.local/share/deen/deen.db"

[adhan]
method = 3
city = "Dhaka"
country = "Bangladesh"
time_format = "24h" # or "12h"

[quran]
editions = ["en.asad"]

Prayer Calculation Methods

Method Description
0 Shia Ithna Ansari
1 University of Islamic Sciences, Karachi
2 Islamic Society of North America
3 Muslim World League
4 Umm Al-Qura University, Makkah
5 Egyptian General Authority of Survey
7 Institute of Geophysics, University of Tehran
8 Gulf Region
9 Kuwait
10 Qatar
11 Majlis Ugama Islam Singapura, Singapore
12 Union Organization Islamic De France
13 Diyanet Isleri Baskanligi, Turkey
14 Spiritual Administration of Muslims of Russia

Data Sources

Prayer times are fetched from the Aladhan API and cached locally in a BoltDB database. Quran verses are fetched from the Al Quran Cloud API. Available editions can be found in the API documentation.

License

Deen is available under the BSD 3-Clause License.

About

A command line companion to get prayer timings, Quran verses, and more

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages