-->
Page 1 of 2

ESP2866 Line print to HTP?

PostPosted: Wed Aug 01, 2018 12:31 pm
by Snarty
Hey all,

I'm new to using Arduino's especially the ESP2866. I've been tasked with having it pull the time from NTP and have it printed to our HTTP.

As of right now I have my 2866 set up to have a light turn on and off with two buttons on my HTTP. The end goal is to have it act as a timer to turn on at a certain time and turn off at a certain while pulling the time from the NTP.

What would be the best way to do this?

Re: ESP2866 Line print to HTP?

PostPosted: Thu Aug 02, 2018 2:03 am
by QuickFix
HTP? :?

How far have you gotten yourself?

Re: ESP2866 Line print to HTP?

PostPosted: Thu Aug 02, 2018 3:11 am
by btidey
By HTP do you mean an HTTP browser as that is what is sounds like.

There are NTP libraries that work well with ESP8266. E.g. https://github.com/gmag11/NtpClient There are examples included.

In terms of scheduling you need to think through what that means like

On off at fully specified time and dates?
On Off at same times every day?
On Off on some weekly schedule?

All are fairly easy to accomplish once you have the NTP time.

Re: ESP2866 Line print to HTP?

PostPosted: Thu Aug 02, 2018 8:16 am
by Snarty
Yes I meant HTTP...

By timing I mean on and off at the same time everyday.

Programming that part isn't what i'm exactly struggling with. I want to serial print the time from an NTP to the HTTP, and use that that time to schedule the on and off cycle.