<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[RTC example for the M5Stack]]></title><description><![CDATA[<p dir="auto">Does anyone have a running RTC example for the M5Stack what about UiFlow?<br />
This is mine what I use on my Wipy but don't want to run on the M5Stack.</p>
<pre><code>            #rtc.ntp_sync("de.pool.ntp.org", update_period=3600) # Datum und Uhrzeit holen
            rtc.ntp_sync("de.pool.ntp.org")
            while not rtc.synced():
                machine.idle() # save power while waiting


            utime.timezone(TimeDiff)
            time1 = utime.localtime() # Übergabe Datum und Uhrzeit in die Variable time1

            #time1 = rtc.now() # Übergabe Datum und Uhrzeit in die Variable time1
            startzeit = time.time()

            LogDateTime = "{}.{:}.{:};{:0&gt;2d}:{:0&gt;2d}:{:0&gt;2d}".format(time1[2], time1[1], time1[0], time1[3], time1[4], time1[5])
            LogDate = "{}.{:}.{:}".format(time1[2], time1[1], time1[0])
            LogTime = "{:0&gt;2d}:{:0&gt;2d}:{:0&gt;2d}".format(time1[3], time1[4], time1[5])
            break
</code></pre>
]]></description><link>https://community.m5stack.com/topic/1364/rtc-example-for-the-m5stack</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 05:47:51 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1364.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Oct 2019 12:53:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to RTC example for the M5Stack on Fri, 29 Nov 2019 13:13:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/700">@lukasmaximus</a> RTC functionality is weak, ntp_syc does not work. Any M5 example?<br />
many thanks</p>
]]></description><link>https://community.m5stack.com/post/6539</link><guid isPermaLink="true">https://community.m5stack.com/post/6539</guid><dc:creator><![CDATA[Efried]]></dc:creator><pubDate>Fri, 29 Nov 2019 13:13:16 GMT</pubDate></item><item><title><![CDATA[Reply to RTC example for the M5Stack on Thu, 28 Nov 2019 12:49:47 GMT]]></title><description><![CDATA[<p dir="auto">I created a guide on <a href="http://hackster.io" target="_blank" rel="noopener noreferrer nofollow ugc">hackster.io</a> using micropython check it out here <a href="https://www.hackster.io/lukasmaximus89/rtc-modules-with-m5stack-46636b" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.hackster.io/lukasmaximus89/rtc-modules-with-m5stack-46636b</a> you should be able to sync it with ntp by using the datetime function of ds1307 and ntp with settime() this forum post explains it <a href="https://forum.micropython.org/viewtopic.php?t=2440" target="_blank" rel="noopener noreferrer nofollow ugc">https://forum.micropython.org/viewtopic.php?t=2440</a></p>
]]></description><link>https://community.m5stack.com/post/6532</link><guid isPermaLink="true">https://community.m5stack.com/post/6532</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Thu, 28 Nov 2019 12:49:47 GMT</pubDate></item><item><title><![CDATA[Reply to RTC example for the M5Stack on Thu, 28 Nov 2019 11:35:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/700">@lukasmaximus</a> Why cant we sync the RTC with Network time?</p>
]]></description><link>https://community.m5stack.com/post/6530</link><guid isPermaLink="true">https://community.m5stack.com/post/6530</guid><dc:creator><![CDATA[rupin.chheda]]></dc:creator><pubDate>Thu, 28 Nov 2019 11:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to RTC example for the M5Stack on Thu, 28 Nov 2019 08:49:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/700">@lukasmaximus</a> Could you please help solving the problem by giving a micropython example , I need to sync time via ntp because after booting it is zero.</p>
<p dir="auto">many thanks</p>
]]></description><link>https://community.m5stack.com/post/6529</link><guid isPermaLink="true">https://community.m5stack.com/post/6529</guid><dc:creator><![CDATA[Efried]]></dc:creator><pubDate>Thu, 28 Nov 2019 08:49:18 GMT</pubDate></item><item><title><![CDATA[Reply to RTC example for the M5Stack on Mon, 18 Nov 2019 17:32:00 GMT]]></title><description><![CDATA[<p dir="auto">if you are using micropython and have a ds1307 you can use the excellent library created by mcauser  <a href="https://github.com/mcauser/micropython-tinyrtc-i2c" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/mcauser/micropython-tinyrtc-i2c</a></p>
]]></description><link>https://community.m5stack.com/post/6426</link><guid isPermaLink="true">https://community.m5stack.com/post/6426</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Mon, 18 Nov 2019 17:32:00 GMT</pubDate></item><item><title><![CDATA[Reply to RTC example for the M5Stack on Sun, 17 Nov 2019 09:48:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi I was just able to use the ds1307 rtc module with M5stack core in arduino, by using adafruits RTClib library <a href="https://github.com/adafruit/RTClib/" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/adafruit/RTClib/</a></p>
]]></description><link>https://community.m5stack.com/post/6416</link><guid isPermaLink="true">https://community.m5stack.com/post/6416</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Sun, 17 Nov 2019 09:48:07 GMT</pubDate></item><item><title><![CDATA[Reply to RTC example for the M5Stack on Thu, 07 Nov 2019 08:23:01 GMT]]></title><description><![CDATA[<p dir="auto">I have the same issue. Trying to work with a DS3231 RTC module but it seems to interfere on I2C level with M5. Any solution found ? KInd Regards, Tony</p>
]]></description><link>https://community.m5stack.com/post/6287</link><guid isPermaLink="true">https://community.m5stack.com/post/6287</guid><dc:creator><![CDATA[Tokn59]]></dc:creator><pubDate>Thu, 07 Nov 2019 08:23:01 GMT</pubDate></item><item><title><![CDATA[Reply to RTC example for the M5Stack on Fri, 11 Oct 2019 07:30:44 GMT]]></title><description><![CDATA[<p dir="auto">And how can I use NTP in MicroPython to get the time?</p>
]]></description><link>https://community.m5stack.com/post/5905</link><guid isPermaLink="true">https://community.m5stack.com/post/5905</guid><dc:creator><![CDATA[Wolli01]]></dc:creator><pubDate>Fri, 11 Oct 2019 07:30:44 GMT</pubDate></item><item><title><![CDATA[Reply to RTC example for the M5Stack on Tue, 08 Oct 2019 10:12:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2129">@Wolli01</a> Only M5StickC has built in RTC. M5Stack only supports NTP, but RTC requires an external module</p>
]]></description><link>https://community.m5stack.com/post/5871</link><guid isPermaLink="true">https://community.m5stack.com/post/5871</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Tue, 08 Oct 2019 10:12:05 GMT</pubDate></item></channel></rss>