Releases: adafruit/Adafruit_CircuitPython_NTP
3.0.0 - Switch from ESP32SPI to native sockets
This release redoes this library to use native sockets and UDP to fetch the time. The API has drastically changed so make sure and update.
If you are using ESP32SPI still you can update the time directly with:
# with other imports
import rtc
# get_time will raise ValueError if the time isn't available yet so loop until
# it works.
now_utc = None
while now_utc is None:
try:
now_utc = time.localtime(esp.get_time()[0])
except ValueError:
pass
rtc.RTC().datetime = now_utc
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-ntp
.
Read the docs for info on how to use it.
2.2.6 - Updated documentation link, python version
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-ntp
.
Read the docs for info on how to use it.
2.2.5 - Updated pylint version, linted
To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.
To use in CPython, pip3 install adafruit-circuitpython-ntp
.
Read the docs for info on how to use it.
2.2.4 - Type information
This library now contains type information. Thank you @process1183
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-ntp
.
Read the docs for info on how to use it.
2.2.3 - Moved pylint from build.yml to .pre-commit-config.yml
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-ntp
.
Read the docs for info on how to use it.
2.2.2 - Fixed issue with Black and Pylint versions in the pre-commit config
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-ntp
.
Read the docs for info on how to use it.
2.2.1 - Moved to pre-commit, added licensing info
pre-commit has been added to the GitHub Actions workflow in this repository. pre-commit allows you to run multiple checks, such as black and checking the REUSE licensing compliance, both locally and on GitHub Actions with one command.
You can run pre-commit locally with pre-commit run --all-files
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-ntp
.
Read the docs for info on how to use it.
2.2.0 - Parameter for Debug Prints
Debug printing is now disabled by default pass debug=True to enable it. Thank you @krittick
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-ntp
.
Read the docs for info on how to use it.
2.1.1 - Fixed discord invite link
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-ntp
.
Read the docs for info on how to use it.
Timezone offset in seconds
This release:
- #11 Updates timezone offset (
tz_offset
) to be in seconds west of UTC. Thanks @theelectricmayhem and @jepler!
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.