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

Update code.py to handle RTC and NTP #36

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

VPTechOps
Copy link

Add support to set RTC from NTP with local timezone and DST support

@VPTechOps
Copy link
Author

VPTechOps commented Mar 17, 2024

I left the NTP server as pool.ntp.org. I didn't know if there was some other suggested value such as: us.pool.ntp.org, ntp.org, time.cloudflare.com, time.google.com etc. that we should use

@dhalbert
Copy link
Contributor

To fix your formatting problems, see about using pre-commit: https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/check-your-code

@VPTechOps
Copy link
Author

VPTechOps commented Mar 18, 2024

Thanks, Dan, for the pointer to pre-commit. It's going to take some time for me to figure out how to do all of that, since all the instruction seem to be Linux/Unix-based. I'm using a Windows machine and UltraEdit and GitKraken. Those line endings are a killer. I'll also have to figure out how to make all the libraries available so I can run pre-commit locally.

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

Successfully merging this pull request may close these issues.

None yet

2 participants