The ESP module connects to the wifi network and fetch the current time from the NTP server. note that you need to change the GMT offset accordingly in order to get the local time of your place. There is 12 LEDs on the board which are connected to GPIO 5. In order to visualize time I choose different colors for HOUR, MINUTE and SECOND.
After getting the time we need to divide Minute and Second by 5 because we have 12 leds and 60/5=12. The hour is in 24h format so we need to change that too.
Finally I set the colors for the LEDs according to the time. which can be change easily.