<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=WeMOS%3A_D1_R1_mini_Prayer_Time</id>
	<title>WeMOS: D1 R1 mini Prayer Time - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=WeMOS%3A_D1_R1_mini_Prayer_Time"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=WeMOS:_D1_R1_mini_Prayer_Time&amp;action=history"/>
	<updated>2026-04-23T12:53:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=WeMOS:_D1_R1_mini_Prayer_Time&amp;diff=68303&amp;oldid=prev</id>
		<title>Unknown user: Created page with &quot;Library   https://github.com/PaulStoffregen/Time  https://github.com/asmaklad/Arduino-Prayer-Times  Code   #include &lt;stdio.h&gt;  #include &lt;Wire.h&gt;  // get this library from http...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=WeMOS:_D1_R1_mini_Prayer_Time&amp;diff=68303&amp;oldid=prev"/>
		<updated>2023-04-03T11:21:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Library   https://github.com/PaulStoffregen/Time  https://github.com/asmaklad/Arduino-Prayer-Times  Code   #include &amp;lt;stdio.h&amp;gt;  #include &amp;lt;Wire.h&amp;gt;  // get this library from http...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Library&lt;br /&gt;
&lt;br /&gt;
 https://github.com/PaulStoffregen/Time&lt;br /&gt;
 https://github.com/asmaklad/Arduino-Prayer-Times&lt;br /&gt;
&lt;br /&gt;
Code&lt;br /&gt;
&lt;br /&gt;
 #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;Wire.h&amp;gt;&lt;br /&gt;
 // get this library from https://github.com/PaulStoffregen/Time&lt;br /&gt;
 #include &amp;lt;TimeLib.h&amp;gt;&lt;br /&gt;
 // get this librarty from https://github.com/asmaklad/Arduino-Prayer-Times&lt;br /&gt;
 #include &amp;quot;PrayerTimes.h&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 double times[sizeof(TimeName)/sizeof(char*)];&lt;br /&gt;
 &lt;br /&gt;
 void p(char *fmt, ... ){&lt;br /&gt;
         char tmp[128]; // resulting string limited to 128 chars&lt;br /&gt;
         va_list args;&lt;br /&gt;
         va_start (args, fmt );&lt;br /&gt;
         vsnprintf(tmp, 128, fmt, args);&lt;br /&gt;
         va_end (args);&lt;br /&gt;
         Serial.print(tmp);&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void setup() {&lt;br /&gt;
   Serial.begin(9600);&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void loop() {&lt;br /&gt;
 &lt;br /&gt;
   Serial.println(&amp;quot;PTimes:&amp;quot;);&lt;br /&gt;
   &lt;br /&gt;
   int dst=1;&lt;br /&gt;
   &lt;br /&gt;
   set_calc_method(ISNA);&lt;br /&gt;
   set_asr_method(Shafii);&lt;br /&gt;
   set_high_lats_adjust_method(AngleBased);&lt;br /&gt;
   set_fajr_angle(15);&lt;br /&gt;
   set_isha_angle(15);&lt;br /&gt;
    &lt;br /&gt;
   //MEKKA&lt;br /&gt;
   //float latitude=21.427378;&lt;br /&gt;
   //float longitude=39.814838;&lt;br /&gt;
   //get_prayer_times(year(), month(), day(), latitude, longitude, dst, times);&lt;br /&gt;
     get_prayer_times(2015, 5, 8, 46.9500f, 7.4458f, 2, times);&lt;br /&gt;
     &lt;br /&gt;
     Serial.print(&amp;quot;YEAR:&amp;quot;);     &lt;br /&gt;
     Serial.println(year());     &lt;br /&gt;
     Serial.print(&amp;quot;MONTH:&amp;quot;);     &lt;br /&gt;
     Serial.println(month());     &lt;br /&gt;
     Serial.print(&amp;quot;DAY:&amp;quot;);     &lt;br /&gt;
     Serial.println(day());     &lt;br /&gt;
       &lt;br /&gt;
   for (int i=0;i&amp;lt;sizeof(times)/sizeof(double);i++){&lt;br /&gt;
     char tmp[10];&lt;br /&gt;
     int hours, minutes;&lt;br /&gt;
     get_float_time_parts(times[i], hours, minutes);&lt;br /&gt;
     p(&amp;quot;%d \t %10s %s \t %02d:%02d \n\r&amp;quot;,i,TimeName[i],dtostrf(times[i],2,2,tmp),hours,minutes);&lt;br /&gt;
     /*&lt;br /&gt;
     Serial.print(i); &lt;br /&gt;
     Serial.print(&amp;quot; \t &amp;quot;); &lt;br /&gt;
     Serial.print(TimeName[i]); &lt;br /&gt;
     Serial.print(&amp;quot; \t\t &amp;quot;); &lt;br /&gt;
     Serial.print(times[i]);&lt;br /&gt;
     Serial.print(&amp;quot; \t &amp;quot;);     &lt;br /&gt;
     Serial.print(hours); &lt;br /&gt;
     Serial.print(&amp;quot;:&amp;quot;); &lt;br /&gt;
     Serial.print(minutes); &lt;br /&gt;
     Serial.println();&lt;br /&gt;
     */&lt;br /&gt;
   }&lt;br /&gt;
   delay(10000);&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void getNextPTime(double &amp;amp;pTime, char* pTimeName)&lt;br /&gt;
 {&lt;br /&gt;
   double times[sizeof(TimeName)/sizeof(char*)];&lt;br /&gt;
   double currTime=hour()+minute()/60.0;&lt;br /&gt;
   int i;&lt;br /&gt;
   &lt;br /&gt;
   set_calc_method(ISNA);&lt;br /&gt;
   set_asr_method(Shafii);&lt;br /&gt;
   set_high_lats_adjust_method(AngleBased);&lt;br /&gt;
   set_fajr_angle(15);&lt;br /&gt;
   set_isha_angle(15); &lt;br /&gt;
 &lt;br /&gt;
   //get_prayer_times(year(), month(), day(), 46.9500, 7.4458, 1, times);&lt;br /&gt;
   get_prayer_times(year(), month(), day(), 46.9500, 7.4458, 2, times);&lt;br /&gt;
   for (i=0;i&amp;lt;sizeof(times)/sizeof(double);i++){&lt;br /&gt;
     if (times[i] &amp;gt;= currTime) break;&lt;br /&gt;
   }&lt;br /&gt;
   if ( (times[i]-currTime) &amp;lt;0 ) {    &lt;br /&gt;
     i=0;&lt;br /&gt;
   }&lt;br /&gt;
   pTime=times[i];&lt;br /&gt;
   sprintf(pTimeName,&amp;quot;%s&amp;quot;,TimeName[i]);&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
</feed>