How asmaklad/arduino-prayer-times works
This is an Arduino library for calculating daily Islamic prayer times from a date, location, and timezone. An Arduino application supplies those inputs to the public calculation API; the library derives the Julian date, iteratively computes prayer times from solar position, applies timezone and high-latitude adjustments, and can split a decimal time into hours and minutes. The README also identifies an example sketch and the external Time library prerequisite. The sketch was not excerpted, so its calls and any use of Time are not verified.
Main entry points: PrayerTimes.cpp Prayer time API
Components 11
Time calculation
- Prayer time API
PrayerTimes.cpp - Julian date
PrayerTimes.cpp - Daily calculation
PrayerTimes.cpp - Prayer formulas
PrayerTimes.cpp - Solar position
PrayerTimes.cpp - Time adjustments
PrayerTimes.cpp
Settings and output
- Calculation settings
PrayerTimes.cpp - Time formatting
PrayerTimes.cpp - Enums and declarations
PrayerTimes.h
Other components
- Arduino application
- Example sketch
Examples/PrayerTimes_example/PrayerTimes_example.ino
Connections 9
- Arduino application → Prayer time API: supplies inputs
- Prayer time API → Julian date: derives date
PrayerTimes.cpp - Prayer time API → Daily calculation: starts calculation
PrayerTimes.cpp - Daily calculation → Prayer formulas: iterates formulas
PrayerTimes.cpp - Daily calculation → Time adjustments: adjusts results
PrayerTimes.cpp - Prayer formulas → Solar position: gets solar data
PrayerTimes.cpp - Prayer formulas → Calculation settings: reads parameters
PrayerTimes.cpp - Time adjustments → Calculation settings: reads parameters
PrayerTimes.cpp - Arduino application → Time formatting: formats time