Comments on: MicroPython: ESP32/ESP8266 with DS3231 Real Time Clock (Get Time and Set Alarms) https://randomnerdtutorials.com/micropython-esp32-esp8266-ds3231/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 24 Jun 2025 16:24:01 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Francis Savoldelli https://randomnerdtutorials.com/micropython-esp32-esp8266-ds3231/#comment-1060616 Tue, 24 Jun 2025 16:24:01 +0000 https://randomnerdtutorials.com/?p=165104#comment-1060616 In reply to Sara Santos.

Hi,
Thank you for this information and thank you again for your help.
Regards.
Francis.

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-esp32-esp8266-ds3231/#comment-1060287 Mon, 23 Jun 2025 10:17:36 +0000 https://randomnerdtutorials.com/?p=165104#comment-1060287 In reply to Francis Savoldelli.

Hi.
We don’t have that exact project you’re looking for.
But, we have a guide for the OLED display: https://randomnerdtutorials.com/micropython-oled-display-esp32-esp8266/
You may want to combine this project with the OLED tutorial to create your clock.

Also, I don’t have an NTP tutorial using MicroPython at the moment.

Regards,
Sara

]]>
By: Francis Savoldelli https://randomnerdtutorials.com/micropython-esp32-esp8266-ds3231/#comment-1059691 Sat, 21 Jun 2025 16:23:11 +0000 https://randomnerdtutorials.com/?p=165104#comment-1059691 In reply to Sara Santos.

Hi,
I updated my MicroPython firmware to the latest version 1.25.00 and it works!
Thank you so much for your help.
I’d like the ESP32 and DS3231 RTC to display a more limited version of the day, date, time, and temperature on a SSD1306 i2C OLED display, using an NTP server. Are you planning to do this on the Random Nerd Tutorials website?
Thanks for your reply.
Regards.
Francis.

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-esp32-esp8266-ds3231/#comment-1059599 Sat, 21 Jun 2025 09:20:07 +0000 https://randomnerdtutorials.com/?p=165104#comment-1059599 In reply to Francis SAVOLDELLI.

Hi.
Your English is fine.
Yes.
I already answered your question.
Regards,
Sara

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-esp32-esp8266-ds3231/#comment-1059598 Sat, 21 Jun 2025 09:18:54 +0000 https://randomnerdtutorials.com/?p=165104#comment-1059598 In reply to Francis SAVOLDELLI.

Hi.
Everything seems to be formatted correctly…
Update your micropython firmware version to the latest 1.25.00. You seem to be using version 1.23.0.

Let me know if that fixes the issue.
Regards,
Sara

]]>
By: Francis SAVOLDELLI https://randomnerdtutorials.com/micropython-esp32-esp8266-ds3231/#comment-1059360 Fri, 20 Jun 2025 15:51:53 +0000 https://randomnerdtutorials.com/?p=165104#comment-1059360 Hi,
I’m French and my English is bad, sorry.
Did you understand what I meant ?
Regards.
Francis

]]>
By: Francis SAVOLDELLI https://randomnerdtutorials.com/micropython-esp32-esp8266-ds3231/#comment-1059299 Fri, 20 Jun 2025 09:47:16 +0000 https://randomnerdtutorials.com/?p=165104#comment-1059299 In reply to Sara Santos.

Hi,
Thanks for your help.
I tried to delete the parenthesis and writing it again.
I got the same error like this:
MPY: soft reboot
Traceback (most recent call last):
File “main.py”, line 51
SyntaxError: invalid syntax
MicroPython v1.23.0 on 2024-06-02; Generic ESP32 module with ESP32
Type “help()” for more information.

In line 51, there is only this closing parenthesis, just under the letter “f” of the word “formatted_datetime”.
Regards
Francis

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-esp32-esp8266-ds3231/#comment-1059291 Fri, 20 Jun 2025 09:10:50 +0000 https://randomnerdtutorials.com/?p=165104#comment-1059291 In reply to Francis Savoldelli.

Hi.
Try to delete the parenthesis and writing it again.

If you can, tell me the exact error you’re getting.

Regards,
Sara

]]>
By: Francis Savoldelli https://randomnerdtutorials.com/micropython-esp32-esp8266-ds3231/#comment-1059272 Fri, 20 Jun 2025 08:18:48 +0000 https://randomnerdtutorials.com/?p=165104#comment-1059272 I’m having a small problem with the code that synchronizes the RTC time with the system time and gets the current date, time, and temperature every second.
In this part of the code:
“formatted_datetime = (
f”{days_of_week[current_datetime.weekday]}, ”
f”{current_datetime.year:04d}-{current_datetime.month:02d}-{current_datetime.day:02d} ”
f”{current_datetime.hour:02d}:{current_datetime.minute:02d}:{current_datetime.second:02d} ”
)”
The last parenthesis, which is a closing parenthesis, causes a syntax error in Thonny, and I don’t see why and can’t fix it.
Thank you very much for your help.
Francis.

]]>