-->
Page 1 of 2

Weekly Timer question... On possibilities.

PostPosted: Mon Nov 16, 2015 11:08 pm
by forlotto
Do you think it would be possible to create a weekly timer interface using the node MCU and an RTC to turn GPIO's off or on a few times per day or would this not be possible due to hardware limitations?

It would be sweet to setup a weekly timer to preform tasks but to me it seems as if the best solution would be a web based or local server handling the timing and issuing the functions.

But my question is not what is the best solution in this case. I want to know if it is possible to have tight enough code and enough space and memory to make it happen without another server. Conservation of power is a big thing for me again a single device to handle it all using low power is somewhat important to me.

I suppose if I could use my android phone to trigger and issue the commands it would be cool and really wouldn't use much more power but, it would also limit me to using a phone to accomplish the task personally I feel the better solution is web based control with any connected device which is what turns me on to the nodemcu to begin with.

Re: Weekly Timer question... On possibilities.

PostPosted: Mon Nov 16, 2015 11:22 pm
by Mmiscool
This is an interesting one. Have not really looked at the time stuff yet.

Would require the creation of time and date functions.

Will look in to it.

Re: Weekly Timer question... On possibilities.

PostPosted: Tue Nov 17, 2015 12:15 am
by heckler
I don't know if this will help... But here is how you can retrieve the time from Google

But it is written in LUA...
Image

dwight

Re: Weekly Timer question... On possibilities.

PostPosted: Tue Nov 17, 2015 12:42 am
by forlotto
Yes I've studied that a bit when looking into LUA but basic is a bit different than LUA still I would like to see a "WEEKLY" timer date based timers are ok but who wants to set timers based on every day of the year it defeats the purpose of automation usually we follow some kind of a flow with our days so it is best to program weekly vs date based so you would have to know the day of the week as well as the time pulled for your tz ... Unless you leave it UTC and deal with it do the math yourself ;)

Thanks for the honest effort but as a side not I already posted on this in the nodemcu forum as well.

This was more of a question directed at basic and the possibility but by all means if you have code to accomplish the task please share.