Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.11 KB

File metadata and controls

27 lines (19 loc) · 1.11 KB

PrayerTimes : Arduino library class for calculating Islamic daily prayer times

Library setup

  • Mac users : Create a directory named PrayerTimes inside ~/Documents/Arduino/libraries/ . Then copy the file PrayerTimes.h into this newly created directory
  • Windows suers : Create a directory named PrayerTimes inside My Documents\Arduino\libraries\ . Then copy the file PrayerTimes.h into this newly created directory

Basic usage

  #include <PrayerTimes.h>
  PrayerTimes my_prayer_object;
  double my_prayer_times[my_prayer_object.TimesCount];
  my_prayer_object.get_prayer_times(my_year, my_month, my_day, my_latitude , my_longitude , my_timezone , my_dst_on, my_calc_method, my_asr_method, my_high_lats_method, my_prayer_times );

The result will be available in the array my_prayer_times[] in the following order.

  Fajr
  Sunrise
  Dhuhr
  Asr
  Sunset
  Maghrib
  Isha

Refer to example for detailed usage of the library.

Visit http://praytimes.org to find details on calculation method and code manual.