Arduino-Prayer-Times icon indicating copy to clipboard operation
Arduino-Prayer-Times copied to clipboard

How to use Prayer Time with esp32.

Open ARPROJECT26 opened this issue 11 months ago • 8 comments

Asalam-U-Aliakum Brother, I am struggling to use board ESP32. appear on serial monitor value is zero. see below. image

but will be board ESP8266 it's working. could you help me please?

Regards, Arrayan

ARPROJECT26 avatar Jan 15 '25 10:01 ARPROJECT26

I am sorry for the problems you are facing. I will try to have a look at weekend about this. have you tried to downgrade/upgrade the ESP32 kernal in the Arduino IDE ?

asmaklad avatar Jan 20 '25 09:01 asmaklad

Hi Brother,

Thanks for the response. I tried on Arduino version 2.3.4 and board esp32 version 3.1.1.

Image

ARPROJECT26 avatar Jan 21 '25 01:01 ARPROJECT26

I have tried it during the week end. and I can confirm it doesn't work with ESp32. I am not sure why , but it probably related to some data-type incompatibilities. it requires some effort to fix this. I will have to spare that effort during an extended period of time. So a solution will not be available soon. Sorry about that. But if anyone is willing, they can fix it and issue a Pull Request to be merged .

asmaklad avatar Jan 27 '25 08:01 asmaklad

Arduino-Prayer-Times-20250129.zip

hi asmaklad, i have made some fix for a couple years ago (attached), i used it with esp32 and esp8266, so far it work, but i dont know how to Pull Request :), hope it work for anyone too.

busel7 avatar Jan 29 '25 00:01 busel7

Many thanks @busel7 I will test it and push it my self (with credits to you in the README) Jazak Allah khairan.

asmaklad avatar Jan 29 '25 12:01 asmaklad

Nice, me thank you for your this great library, this library is very useful for me.
Jazak Allah khairan.

busel7 avatar Jan 29 '25 17:01 busel7

Hi @asmaklad and @busel7 ,

Thanks for the response. I tried on your file zip, still issued. My step is replacing library with file zip from @busel7 . I dont know what happaned with my board esp32? See below.

Image.

and I compared file PrayerTimes.h, on the left from @asmaklad and right is new file from @busel7 .

Image

ARPROJECT26 avatar Feb 08 '25 06:02 ARPROJECT26

Yes I tried it too, but still doesn't work. It needs some time and attention to properly fix it and trace where the failure is taking place in the lib. I still assume it is something related to data types, int, float, double compatibility between ESP32 and ESP8266. Or maybe some kind of default function is not able to convert double to float properly.

I will try to have a look again. This not a promise. I will give it a 2nd try before Ramadan.

asmaklad avatar Feb 10 '25 10:02 asmaklad

Dear all, I am not able to figure out why the library doesn't work for ESP32. It is above my know how for the time being. Unless the community helps out,I can not make any promises about adding this feature. Sorry for that.

A suggested workaround : is to to use an Arduino or ESp8266 module attached to the ESP32 module and communicate together via serial communication.

Regards

asmaklad avatar Mar 31 '25 07:03 asmaklad

I use Ubuntu 24.04 OS , later I will try on Windows OS

busel7 avatar Mar 31 '25 07:03 busel7

Hi @asmaklad , Today, I has been to resolve the issued on ESP32 Board and running well on ESP 8266 board . please see my github AR Project.

Thanks to Allah SWT, @asmaklad and @busel7 .

@busel7 kalau tidak sibuk ngopi meetup mas ditangerang..hehehe

Image

ARPROJECT26 avatar May 10 '25 14:05 ARPROJECT26