Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

No idea how to troubleshoot this system #19

Open
cdeadlock opened this issue Sep 23, 2020 · 1 comment
Open

No idea how to troubleshoot this system #19

cdeadlock opened this issue Sep 23, 2020 · 1 comment

Comments

@cdeadlock
Copy link

The main documentation for this project shows examples such as the RTC section
`
import machine
import utime

rtc = machine.RTC()
rtc.ntp_sync(server="hr.pool.ntp.org", tz="CET-1CEST")
rtc.synced()
True
utime.gmtime()
(2018, 1, 29, 16, 3, 18, 2, 29)
utime.localtime()
(2018, 1, 29, 17, 3, 30, 2, 29)
`

The Atom lite V1.6.3 says
Traceback (most recent call last): File "flow/m5cloud.py", line 82, in _exec_fun File "<string>", line 13, in <module> AttributeError: 'RTC' object has no attribute 'ntp_sync'
This project says it is made from and directly references the "micropython lobos" (https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/rtc)
This also mentions ntp_sync

Then searching for micropython ntp , or the ntptime module is a huge mess of not working for years and never being documented or fixed apparently?

ntptime can be imported, but then has no settime() apparently

Is there some kind of custom compilation required to get these modules? Do they not come standard in the m5 supplied uiflow IDE firmware? I feel like that isn't right since they do "import" but just do not contain functions?

@imliubo
Copy link
Member

imliubo commented Nov 11, 2020

Hi @cdeadlock ,
Since loboris-micropython is no longer maintained, we have switched to the main line of micropython, so you should refer to the documentation of the main line of micropython.

machine.RTC

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants