Skip to content

Releases: adafruit/Adafruit_CircuitPython_NTP

3.0.0 - Switch from ESP32SPI to native sockets

17 May 15:06
a125f4d
Compare
Choose a tag to compare

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

04 Feb 20:18
Compare
Choose a tag to compare

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

15 Nov 18:58
Compare
Choose a tag to compare

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

10 Oct 20:13
b08454f
Compare
Choose a tag to compare

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

02 Mar 23:49
Compare
Choose a tag to compare

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

10 Feb 22:18
Compare
Choose a tag to compare

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

20 Jan 23:01
8e1f89a
Compare
Choose a tag to compare

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

09 Dec 23:31
617bf6d
Compare
Choose a tag to compare

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

09 Jul 21:00
Compare
Choose a tag to compare

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

22 Jun 14:24
48a2521
Compare
Choose a tag to compare

This release:

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

Read the docs for info on how to use it.