Have a look at my Webserver code in the blog section in it you will see how I have a variable that is incremented every second this variable is the time/day/month/year so as it is a number all I have to do to have an event occour at a preset time & date is to store the number that is that date then set a flag to cause the event to happen, by setting a flag I can tell that I have passed the time and can reset it to happen again next day if I want, if I use a variable so that I can put a value in it at the time then I could have other things happen like once every monday or monday, tuesday & friday. Now the variable in the webserver code is updated from the internet but your RTC can also be used for this. Note I also will be building a watering system which is what the webserver will be a part of so that I can monitor what is happening remotely as my system uses pumps, so if they shut off due to no water I have to be able to reset them from 250Km away.
Regards Paul
↧