Alarm activated Lamp programming issue

Hi, I am making an alarm activated lamp. I am using RTC ds 1307 real time clock module, wifi esp8266 to set the alarm from internet and a buzzer for alarm sound. But the issue is alarm is not working. Please have a look at the code and tell me where I am wrong.

code1.ino (8.74 KB)

  setSyncProvider(syncProvider);
  setSyncProvider(syncProvider);

Maybe you need to call this function a couple more times.

  Alarm.alarmRepeat(Hours, Minutes, 00, buzzOn); //alarm repat 10:30am everyday

This does NOT bind the alarm time to the variables. You have set the alarm to 00:00:00 every day. Have you allowed the sketch to run long enough to determine if it actually happens?

Have you confirmed that the tone() call you are making actually makes noise?

What do your Serial.print() statements tell you is happening?

PaulS:

  Alarm.alarmRepeat(Hours, Minutes, 00, buzzOn); //alarm repat 10:30am everyday

This does NOT bind the alarm time to the variables. You have set the alarm to 00:00:00 every day. Have you allowed the sketch to run long enough to determine if it actually happens?

Have you confirmed that the tone() call you are making actually makes noise?

What do your Serial.print() statements tell you is happening?

I also tried to put straight values like this

Alarm.alarmRepeat(21, 31, 00, buzzOn); //alarm repeat everyday

Yes I tested it in seperate code, tone() call make noise, Alarm.alarmRepeat works but it is not working when I edited the code and add wifi part in it.
Serial.print() statement print the actual running time still alarm does not work.

still alarm does not work.

On any given pass through loop(), you know (or can know) what time it is. How difficult is it to compare the current hour to the alarm hour, the current minute to the alarm minute, and the current second to the alarm second? If they all match, call the function. You don't REALLY need a library to manage something so simple.