/NTP-Jadwal-Sholat-ESP8266-on-1.8-TFT-Display

NodeMCU ESP8266 - Jadwal Sholat berbasis NTP dengan 1.8" TFT SPI Display -- NodeMCU ESP8266 - NTP driven islamic prayer times with 1.8" TFT SPI Display

Primary LanguageC++MIT LicenseMIT

NTP-Jadwal-Sholat-ESP8266-on-1.8-TFT-Display

NodeMCU ESP8266 - Jadwal Sholat berbasis NTP dan WiFiManager dengan 1.8" TFT SPI Display

NodeMCU ESP8266 - NTP driven islamic prayer times with WiFiManager on 1.8" TFT SPI Display

NTP Jadwal Sholat

1. Introduction

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.

THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY.

2. Bill of Material (BOM)

3. Cabling/Wiring the 1.8" TFT SPI display to NodeMCU

    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

1.8" TFT SPI Display

Note:

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.

4. Operation

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.

Configure WiFi

1. In "WiFi" tap on "JamSholat", wait for the "WiFiManager" portal.

Configure WiFi

2. In "WiFiManager" portal, tap on "Configure WiFi".

Configure WiFi

3. In "Configure WiFi", tap on your WiFi SSID.

Configure WiFi

4. In "Configure WiFi", in "Password", provide the password for your WiFi then tap on "Save"

Configure WiFi

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.

image

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

Bruce E. Hall - W8BH