adafruit / Adafruit_CircuitPython_PyCamera

Library for the Adafruit PyCamera
https://docs.circuitpython.org/projects/pycamera
MIT License
17 stars 9 forks source link

Update code.py to handle RTC and NTP #36

Closed VPTechOps closed 6 months ago

VPTechOps commented 8 months ago

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

VPTechOps commented 8 months ago

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 commented 8 months ago

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

VPTechOps commented 8 months ago

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.