Adafruit-circuitpython-ntp

Latest version: v3.3.1

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 6

3.0.0

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:

python
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](https://circuitpython.org/libraries).

To use in CPython, `pip3 install adafruit-circuitpython-ntp`.

Read the [docs](http://circuitpython.readthedocs.io/projects/ntp/en/latest/) for info on how to use it.

2.2.6

To use in CircuitPython, simply install the [Adafruit CircuitPython Bundle](https://circuitpython.org/libraries).

To use in CPython, `pip3 install adafruit-circuitpython-ntp`.

Read the [docs](http://circuitpython.readthedocs.io/projects/ntp/en/latest/) for info on how to use it.

2.2.5

To use in CircuitPython, simply install the [Adafruit CircuitPython Bundle](https://circuitpython.org/libraries).

To use in CPython, `pip3 install adafruit-circuitpython-ntp`.

Read the [docs](http://circuitpython.readthedocs.io/projects/ntp/en/latest/) for info on how to use it.

2.2.4

This library now contains type information. Thank you process1183

To use in CircuitPython, simply install the [Adafruit CircuitPython bundle](https://circuitpython.org/libraries).

To use in CPython, `pip3 install adafruit-circuitpython-ntp`.

Read the [docs](http://circuitpython.readthedocs.io/projects/ntp/en/latest/) for info on how to use it.

2.2.3

To use in CircuitPython, simply install the [Adafruit CircuitPython bundle](https://circuitpython.org/libraries).

To use in CPython, `pip3 install adafruit-circuitpython-ntp`.

Read the [docs](http://circuitpython.readthedocs.io/projects/ntp/en/latest/) for info on how to use it.

2.2.2

To use in CircuitPython, simply install the [Adafruit CircuitPython bundle](https://circuitpython.org/libraries).

To use in CPython, `pip3 install adafruit-circuitpython-ntp`.

Read the [docs](http://circuitpython.readthedocs.io/projects/ntp/en/latest/) for info on how to use it.

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.