This is basically a NTP clock running on NodeMCU ESP8266 with Adafruit compatible 1.8" TFT SPI display.
Adding WiFiManager https://github.com/tzapu/WiFiManager to prevent hard coding SSID and Password.
Adding Jadwal Sholat (Islamic Prayer Times) by requesting it on a daily basis from https://api.myquran.com which on the other hand had the data scrapped from Direktorat Jenderal Bimas Islam Kementerian Agama Republik Indonesia https://bimasislam.kemenag.go.id/jadwalshalat
For more information regarding the validity of the data, please visit the respective web site from the above given links.
- NodeMCU ESP8266 - https://bit.ly/3zTizP3 or equivalent.
- 1.8" TFT SPI Display - https://bit.ly/3QDjysy or equivalent.
- Breadboard - https://bit.ly/3xL2dFn or equivalent.
- Jumpers - https://bit.ly/39KrPdJ or equivalent.
Display | NodeMCU
VCC <---> 5V or 3.3V
GND <---> GND
CS <---> GPIO 0
RESET/RST <---> GPIO 2
A0/DC <---> GPIO 4
SDA/MOSI <---> GPIO 13
SCK/SCLK <---> GPIO 14
LED/BL <---> GPIO 5
On some Adafruit compatible 1.8" TFT SPI display, RESET is RST, A0 is DC, SDA is MOSI, SCK is SCLK and LED is BL. So pay attention to your wiring, double check before powering up the device.
Upon start up the WiFiManager kicks in. If a saved WiFi configuration found it will configure NodeMCU as a WiFi Station (STA) and connect to the WiFi Access Point that is configured in the saved configuration. Otherwise it will configure NodeMCU as an Access Point (AP) with SSID: "JamSholat" and spawn a web page (WiFiManager portal) with IP address: 192.168.4.1 that you can connect to and configure using web browser on your PC or Smartphone. Once the WiFi has been configured and connected to the internet, it will switch back to Station (STA) mode and start the clock.
Once connected to the internet, it will start to synchronize and fetch the unix epoch from the configured NTP server. You do not need to manually adjust the date and time.
NTP sync status is displayed on the upper left inside the vertical frame as shown on the above picture.
NTP is displayed in green indicates it is good and synced in the last 1 hour.
NTP is displayed in yellow indicates it is synced in the last 1 - 24 hour.
NTP is displayed in red indicates it is stale or out of sync.
THANK YOU