How do I get local time from the internet with an Adafruit Feather M4 Express and AirLift FeatherWing using Circuit Python?
I am trying to get a Feather M4 Express to do certain things at certain times with Circuit Python. I've figured out how to connect it to the internet, and I've figured out how to tell it to do what I want, but I can't figure out how to import the current local time from the internet. I've been searching for a few hours, and I've found examples of people doing this with other boards, but I can't figure out how to apply it to the M4 Express. I've been all over Adafruit's guides and I've watched several youtube videos, but I just can't figure it out. I know this is probably something super simple, but if anybody could help me out I would greatly appreciate it.
How do I get local time from the internet with an Adafruit F
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 2
- Joined: Fri Dec 28, 2018 1:59 am
- NathanOSU
- Posts: 4
- Joined: Fri Oct 29, 2021 3:37 am
Re: How do I get local time from the internet with an Adafru
The example here should do exactly what you want: https://circuitpython.readthedocs.io/pr ... en/latest/
adafruit_ntp.mpy is in the lib bundle....
adafruit_ntp.mpy is in the lib bundle....
Please be positive and constructive with your questions and comments.