ntptime.py howto change host

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
spaceagejohnny
Posts: 1
Joined: Mon Oct 08, 2018 12:39 pm

ntptime.py howto change host

Post by spaceagejohnny » Sun Jan 06, 2019 2:57 pm

is the line:
host = "pool.ntp.org"
in ntptime.py changeable?
I copied this from https://github.com/micropython/micropyt ... ntptime.py.
is this even the file used by 'import ntptime' ?
I would like to run several esp8266 boards on an internal net or sub net that is not connected to the internet. ntp server would be a raspberry pi (I have that serving other computers - works well).
how can I change the host, and where.
hope I don't have to go messing around with the esp8266.---.bin file as I'm not sure I would be capable of doing that.
Thanks,
John

Post Reply