NTP as timer

i want to use the ESP8266 as ntp clock with timing actions

i have this code but i dont know to set a time with a specific action

https://github.com/sandeepmistry/esp8266-Arduino/blob/master/esp8266com/esp8266/libraries/ESP8266WiFi/examples/NTPClient/NTPClient.ino

i working with pro micro (32u4)

but i dont know to set a time

That's just as well, since you can't set the time on someone else's server.

That code gets epoch, and the illustrates how to map epoch to time.

Some example of what you want to do would be useful.

for exmple

in 07:00 am pin 4 HIGH

sharonhz: for exmple

in 07:00 am pin 4 HIGH

The code shows how to print epoch as hour, minute and second. Do you see how that happens? Do you understand how you could save the hour value in a variable? The minute value? The second value?

Do you understand how you could compare the values in the variables to the values when you want things to happen?

i dont know how to store but i know to compare for exmple:

if (hour == 07) && (minute == 00) { led4= HIGH }

sharonhz: i dont know how to store

int h =  (epoch % 86400L) / 3600; // save the hour (86400 equals secs per day)

Compare this to your code that prints the hour.

You try to get the minute value into a variable.

how do i convert it to GMT + 2?

looks good i will try it