-->
Page 7 of 9

Re: simple graphic clock

PostPosted: Thu Dec 10, 2015 10:18 am
by Mmiscool
So long as the esp is connected to your WiFi network that has internet access it should be working. Is there a specific time zone you are setting it for?

Re: simple graphic clock

PostPosted: Thu Dec 10, 2015 11:44 am
by ssylca
Mmiscool wrote:So long as the esp is connected to your WiFi network that has internet access it should be working. Is there a specific time zone you are setting it for?


I am in the same time zone than NY City.

Re: simple graphic clock

PostPosted: Thu Dec 10, 2015 2:51 pm
by TassyJim
ssylca wrote:Hi,
The time() doesn't fetch anything. What I am doing wrong?

Many thanks to MMISCOOL

S.


Your module has to have internet access.
For that to happen, your ESP needs to connect to your WIFI network as a client. If you are connecting to the ESP when it's an access point (like the first time your connect to it), it won't have internet access.

Once you have internet access, you need to run timesetup(). When you run timesetup(), it configures you timezone and runs NTP to set the time.

Jim

Re: simple graphic clock

PostPosted: Thu Dec 10, 2015 4:03 pm
by ssylca
TassyJim wrote:
ssylca wrote:Hi,
The time() doesn't fetch anything. What I am doing wrong?

Many thanks to MMISCOOL

S.


Your module has to have internet access.
For that to happen, your ESP needs to connect to your WIFI network as a client. If you are connecting to the ESP when it's an access point (like the first time your connect to it), it won't have internet access.

Once you have internet access, you need to run timesetup(). When you run timesetup(), it configures you timezone and runs NTP to set the time.

Jim


Thank you Jim, I ran the script as posted. How would you setup the ESP to run as a client to have internet access?

Cheers,
S.