Prayer Times Calculator - Offline
Project description
Prayer Times Calculator - Offline
Not designed as a general purpose prayer time library. This is meant as a cloud-free, drop-in replacement for prayer-times-calculator
, which in turn is used by the Islamic Prayer Times HomeAssistant integration.
Equivalence to the prayer-times-calculator
library was checked by emperical comparison of 50,000 requests (each with randomized parameters). The original intention was to replicate the output exactly, however please note the following exceptions where prayer-times-calculator-offline
will return a different result than prayer-times-calculator
for the same call:
- Asr calculation is stable; at time of writing, AlAdhan's API uses the API server's local time as part of the Asr calculation, causing the returned time to drift as the server's day progresses.
- ISO8601 date components are correct; at time of writing, AlAdhan's API sometime returns ISO8601 timestamps with correct times but incorrect dates.
- E.g. this API call where all timestamps are returned with the same date component, making Isha appear to happen before Maghrib and Fajr appear to happen after Sunrise
- Portugal Maghrib tuning applied correctly;
At time of writing, AlAdhan's API maps the Asr tuning value to Maghrib.Since fixed in API - Local time output (
iso8601=False
) is not supported, as it is not required for use in HomeAssistant (which deals only with UTC internally) - 'None' is supported as a high-latitude adjustment method
- Angles of 0 are supported for the "custom" calculation method; at time of writing, AlAdhan's API silently ignores such angles and uses a different default angle in their place.
- Floating point computations take place on your CPU, which may vary from the AlAdhan API server's CPU; there may be 1-minute differences if these computational variations span a rounding break. Hijri date calculation may also be affected, including the 30-minute Isha offset during Ramadan when using the Makkah calculation method.
Usage
Please refer to the usage section of prayer-times-calculator
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file prayer_times_calculator_offline-1.0.2.tar.gz
.
File metadata
- Download URL: prayer_times_calculator_offline-1.0.2.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e69a61a77391dd443e20aa3cd7dfe826db8eb704a93f675c8494ae6b45d823a |
|
MD5 | 83e0ee00e8c41b3f705cfd0d88e8a5c2 |
|
BLAKE2b-256 | b6e4017955cecc46fdbbd2935de0a1e21add0536e23ad16c642f0c3b30682ef0 |
File details
Details for the file prayer_times_calculator_offline-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: prayer_times_calculator_offline-1.0.2-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6680c36197abb4a3c33a03f62a708e8417932be6297bb407c26ec6ce55b5fd3 |
|
MD5 | 62fc92c7af1a3ab2cc8fe2bc87d72f4b |
|
BLAKE2b-256 | ba2972de64cc730a22997bce23fee28abb0afccd255b16b3cae7433f3fa8169b |