How to take a state machine and code in webcore


#21

Not so much a bug as an aspect, at least in the way I’ve noticed. $time translates to the number of ticks past 12 (am or pm) and so 1 pm is less than 9 am. $time24 translates to the number of ticks past midnight.


#22

This is driving me bonkers…
I check and the state = 0 but it should be at 3

image

but I did not get the push notification nor did the log show that the state was set to 0
image
image

and #27 NEVER was true

how is this explained and why ?


#23

Is it possible that one of your timers ran out? The Ifs that set state to 1 or 2 will set it back to 0 after 10 minutes (and neither of those log the reset to 0).


#24

ya, I realized that and added the logging this morning…will check again


#25

In piston “nkgeq”, I think line 33 should be a longer wait than line 43, otherwise there will potentially be an overlap, and it will be reset to zero before {state} = 3