Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add current time to home app #61

Open
mattbrejza opened this issue Aug 2, 2016 · 2 comments
Open

Add current time to home app #61

mattbrejza opened this issue Aug 2, 2016 · 2 comments

Comments

@mattbrejza
Copy link
Collaborator

Log the time
Display the time

@mattbrejza mattbrejza changed the title AddRTC Add RTC Aug 2, 2016
@thinkl33t
Copy link
Contributor

RTC seems to work fine

>>> rtc.init()
>>> rtc.info()
805306368
>>> rtc.datetime()
(2015, 1, 1, 4, 0, 0, 7, 109)
>>> rtc.datetime((2016,8,3,3,11,25,0,0))

*reboot*

>>> rtc=pyb.RTC()
>>> rtc.info()
805306368
>>> rtc.datetime()
(2016, 8, 3, 3, 11, 25, 33, 177)

@thinkl33t
Copy link
Contributor

Oh, you meant add it to the home screen. Duh.

@thinkl33t thinkl33t changed the title Add RTC Add current time to home app Aug 3, 2016
@thinkl33t thinkl33t modified the milestone: Before Flashing Aug 3, 2016
@thinkl33t thinkl33t modified the milestones: Before Flashing, Before Camp Aug 4, 2016
thibault-ml pushed a commit to thibault-ml/Mk3-Firmware that referenced this issue Aug 9, 2016
This change displays the current time in the home app, depending on the configured timezone.
The time is synced via NTP when a wifi connection is established.
The timezone can be changed via the "Change Timezone" app which is also part of this change.
thibault-ml pushed a commit to thibault-ml/Mk3-Firmware that referenced this issue Aug 9, 2016
This change displays the current time in the home app, depending on the configured timezone.
The time is synced via NTP when a wifi connection is established.
The timezone can be changed via the "Change Timezone" app which is also part of this change.
thibault-ml pushed a commit to thibault-ml/Mk3-Firmware that referenced this issue Aug 10, 2016
This change displays the current time in the home app, depending on the configured timezone.
The time is synced via NTP when a wifi connection is established.
The timezone can be changed via the "Change Timezone" app which is also part of this change.
thibault-ml pushed a commit to thibault-ml/Mk3-Firmware that referenced this issue Aug 20, 2016
This change makes sure we do not wait too long to receive (`read()`) data from the NTP server in case it cannot be reached, or is too slow to respond.
However, because we're using UDP to communicate with NTP, there's no need to wait for the `sendto()` to succeed.
Jonty added a commit that referenced this issue Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants