ESP32 IoT Clock 🕒 : Sync Time from the Internet Using a Free API (No RTC Needed!)
In this video, I’ll show you how to make your ESP32 (or ESP8266) keep accurate time without using a real-time clock module. We’ll fetch the current Unix time from a free internet API, convert it to a human-readable format, and keep it updated using the board’s internal timer. Along the way, we’ll explore what Unix time actually is, why it starts in 1970, and how it became the foundation of digital timekeeping. You’ll learn how to use functions like ctime(), localtime(), and strftime() to format dates and times exactly as you want. Finally, I’ll show how to display it all beautifully on a tiny OLED screen connected to an ESP32-C3. By the end, you’ll understand both the theory and the practical code behind a fully working IoT clock. All links, libraries, and sample code are in the description below. Let’s get your ESP clock ticking perfectly in sync with the internet! Link to code: https://projecthub.arduino.cc/Dziubym/esp32-iot-clock-sync-time-from-the-internet-no-rtc-a446e6 IIf you'd like to support my work and help me make more videos, you can do so here: • Channel Membership – https://www.youtube.com/channel/UC_YUPxLXSRu_4_zCO27kRww/join • Patreon – https://www.patreon.com/MariosIdeas • PayPal – https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7PD67JWZ9S3EJ&source=url • Ko-fi – https://ko-fi.com/mariosideas
Download
0 formatsNo download links available.