Rtc output

Not sure if anyone will be willing to share but I will try.
I have an 8 digit 7 segment clock working well with a Rtc 1307. My dilemma is I want to add an output to control a relay every hour on the hour ie. a cuckoo clock
Would someone share a code to do this

I also have a ds3231 rtc that I could use

Much regards. And thank you in advance for your help


Wellcome to the boat. I also have a huge problem and that is to read Your code.
Read the advice telling "How to use this forum" and "How to attache code.