Page 2 of 2

Re: how can I implement time scheduling in micropython

Posted: Sat Dec 09, 2017 2:23 am
by zedtech
@pythoncoder,
Thanks again for those pointers and i have taken them into account and made changes, that's I converted all the the times I'm working with into seconds, saved as integers.
I now get it, your point is about precision comparison.

As per code in my last reply, would you know as to why the current_time isn't updating in the while loop? Let's say that the time comparison failed, is that affecting the rest of the code in the while loop?

Re: how can I implement time scheduling in micropython

Posted: Sat Dec 09, 2017 7:16 am
by pythoncoder
I can see no reason for it to fail to update. If you can't get to the bottom of it I suggest you post your latest attempt.

Re: how can I implement time scheduling in micropython

Posted: Fri Dec 15, 2017 12:42 pm
by JumpZero
@zedtech have you ever tried this https://github.com/rguillon/schedule
I found it very smart, however on ESP8266 I had to implement it as frozen module (memory error otherwise)

Re: how can I implement time scheduling in micropython

Posted: Tue Jan 02, 2018 3:16 am
by zedtech
@JumpZero, no i haven't but will take a look and learn something new. Thanks for your feedback