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 & trig operations take place on your machine, and may vary slightly from the AlAdhan API server's implementations; 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.3.tar.gz
.
File metadata
- Download URL: prayer_times_calculator_offline-1.0.3.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be6cb5858657b83bdd8e304de588afccffa57307c4f3a67db680738fe9328f5e |
|
MD5 | 264945339bdb09ec0caf391ae03aa0ac |
|
BLAKE2b-256 | d4c688c48725e3603f8e6eb95935eca17b857a131bb7dd72b2f4d49538015cb6 |
File details
Details for the file prayer_times_calculator_offline-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: prayer_times_calculator_offline-1.0.3-py3-none-any.whl
- Upload date:
- Size: 13.7 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 | 13f1b2d6369a83eddbaa376f6e2a8e13035f5a96513e4a5b90b6f05ac0dfa730 |
|
MD5 | 3ac5559620b8a7429bdfdd26424515e6 |
|
BLAKE2b-256 | feb6f0f4724610dd45deb1bbf9dceea53d77ee121de36b51d5bd032cffd95c2e |