- Sun May 08, 2016 12:20 pm
#47121
Cicciocb you have any of those GPIO expanders for sale I'll buy 4 of them off of you :P Tell me how much and how much for shipping and payment method preferred dogecoin, bitcoin, paypal is what I can do.
Yes I suppose now that I am thinking a different way a weekly timer was possible a long time ago technically speaking. I think hourly rather than by the minute would work best for me but some people may want it down to the minute which blows I don't know if it is possible to be running different tasks on the esp8266 at the same time so if there is a collision it may execute something rather than the time not allowing for real time I suppose you could just scrape the time hrmmm...
Create Interface to store time values from user input: This is the most difficult part I believe of the whole weekly timer I can think of.
Have a current day register
Have a time to find register
Find current day get time string read first 2 letters of day. String search.
Check with if then's to determine what to put in current day register.
String search for time errr there is a problem I can think of here how does one go about knowing how to get just the time if the date, day, etc... is going to be different #'s of characters Errrrr got to thing on this one...
I forget is it possible with time to print just the time or just the day etc need to visit documentation on this one.
Errr what if time passes the timer up there needs to be padding in case this happens maybe only allow for timer for every 5 minutes .... Errr should not matter for on/off relay if you turn something on that is already on you essentially do nothing. So maybe in time check routine check if it is equal so timer would be best possibly at 5 minute intervals.
This makes me wonder is it possible to have more than one timer going at once what if for some odd reason both timers reach zero and two operations are supposed to take place at the same time hrmmmm could spell conflict I suspect.
Errr I need to do some thinking on how to do a weekly timer and a lot of reading after thinking this out loud.
Other notes I will need to store the user input times in a file such as json, or even a text document for each day of the week maybe IDK what is the most effective way?
Hrmmm a hell of a lot of questions I need to find answers to for a timer without actually looking at documentation.
Either way a good adventure I would imagine many people would love to have a weekly timer framework to build off of I feel this would be a large advantage to any other esp8266 interpreter available. It would help countless people develop things like weekly programmable thermostats on the cheap etc...
Imagine we now have a touch screen think about how dirty cheap it would likely be to make a touchscreen thermostat that could be updated via a web browser!!! I am sure there are many other things that could be done as well to be honest my minds eye is a little foggy today so I can't recall all of the things that could be done. A sprinkler system that works based off of weather data. Water every day at certain time if conditions are going to be rainy skip watering. Errr lots of other things but you all get the pic on where to go from this.