1 个不稳定版本
0.1.0 | 2024年1月20日 |
---|
#4 在 #祈祷
47KB
467 行
祈祷时间
概述
prayer-times
是一个程序,根据您的地理位置提供伊斯兰祈祷时间通知。它使用指定的计算方法和调整来计算法吉尔、朱乎尔、阿斯尔、麦格利布和伊沙的祈祷时间。
它使用基于地理坐标的精确祈祷时间计算,该算法由 praytimes.org 提供。
用法
Usage: prayer-time [OPTIONS] --latitude <LATITUDE> --longitude <LONGITUDE>
Options:
-l, --latitude <LATITUDE> Latitude. Defaults to the current location
-L, --longitude <LONGITUDE> Longitude. Defaults to the current location
-m, --method <METHOD> Calculation Method to use [default: MuslimWorldLeague]
-M, --madhab <MADHAB> Madhab to use [default: Shafi]
--fajr-mod <FAJR_MOD> Minutes to add or remove to the Fajr time [default: 0]
--dohr-mod <DOHR_MOD> Minutes to add or remove to the Dohr time [default: 0]
--asr-mod <ASR_MOD> Minutes to add or remove to the Asr time [default: 0]
--maghrib-mod <MAGHRIB_MOD> Minutes to add or remove to the Maghrib time [default: 3]
--isha-mod <ISHA_MOD> Minutes to add or remove to the Isha time [default: 0]
--notify-before Show notification 10 minutes before prayer time
-h, --help Print help
-V, --version Print versio
安装
克隆仓库并构建可执行文件。您应该已安装 cargo
git clone https://github.com/your/repository.git
cd prayer-times
cargo build --release
许可协议
本项目采用 MIT 许可协议。您可以自由使用并为此开源项目做出贡献。
依赖项
~2–27MB
~378K SLoC