
The ESP8266 and the ESP32 are microcontrollers with WiFi on board. They can be programmed via a USB cable, connected to a PC. Cheap and easy.

After uploading the code, the microcontroller will work on its own, provided we supply power via battery or adaptor with a USB power cable. These microcontrollers are so cheap and versatile that they have largely succeeded their predecessor - the Arduino. Meanwhile, they are commonplace among thousands of hobbyists worldwide.
Thanks to the many connection possibilities (WiFi, bluetooth, IR remote control, ...) and the possible connections (relay, LED, display, sensor for temperature, etc.), it can be used to create numerous projects to control remotely (drones, thermostat, control of a lock or lamp or motor), or projects that can send alerts to a cell phone. Control via an app on smartphone (even from hundreds of kilometers away) is also easy.

The examples here are clocks with different displays. Why clocks? They are relatively simple, both in terms of hardware and programming. And they are excellent examples if you want to work with displays. An NTP clock (which synchronizes time over the Internet) must take into account DST or winter time, and must switch automatically. Otherwise, the code is incomplete. Displaying the hour as "14:7" is sloppy. There are numerous methods and functions for using a leading "0".
On this page, the code was kept as compact as possible.
Download the Arduino IDE (free)
This is the compiler, which you use to write sketches and upload the code to the microcontroller.
How to configure the Arduino IDE for the ESP32
How to configure the Arduino IDE for the ESP8266
How to install libraries in the Arduino IDE
Starter package hardware:
An inexpensive starter pack for the ESP8266
A more expensive (more complete) starter pack for the ESP8266
Solderless connecting wires
An ESP32 microcontroller