Hello, I will say up front I am a newbie to this. I need some general guidance. I can not seem to find what I am looking for in all my searches.
I need to Use the internal RTC to connect to the NTP
then Activate a pin on high at 5:30PM and Activate to Low at 9:00 PM everyday.
My head is spinning a bit, I have tried to manipulate example, but Im coming up short.
thank you in advance!
An RTP example in the RTP library that shows you how to set an alarm should be easy to find. What board are you using with a built in RTC?
Similarly an NTP connect example in the NTP library will be informative.
Setting pins on an alarm time is trivial, but why do you need the NTP function as well as the RTC?
There is a clue in the topic title
I have moved the topic to the board specific forum category to make it even clearer
I think I need to make an appointment with my eye doctor, or read those durn topic titles. LOL
I want the NTP for power failure. If power fails it will automatically get the correct time back.
as said before i am a newbie. Do I use IF and Than statements or alarm?
if anyone has anything out there similar, It would be greatly appreciated
Thank you advance
That is what an RTC does; it can run 8 years on the CR2032. When your board regains power, the startup code gets the current date/time from the RTC. Setting the initial time in the RTC if the factory did not can be done with an NTP either with a one-time sketch, or always during startup.
Your questions tell me you are a beginner. This sketch is not the best to start with. I suggest you first work through the Arduino Cookbook.
When you are ready for this the RTC documentation is at Here
and you are looking for the following section

Thank you, I am still going to pursue the NTP, but You have given me some guidance . I am a AV engineer by trade, and most of our programs were built on IF/Then Statements. I felt like I was going in circles doing engine searches on my issue. I think that cookbook is what I needed..