timer
Moderators: grovkillen, Stuntteam, TD-er
Re: timer
How do you initially start the timer?
What is the rest of the rules?
Or do you send a command to start the timer?
What is the rest of the rules?
Or do you send a command to start the timer?
Re: timer
And how did you do that in the rules you now have?
Re: timer
From the documentation:
https://espeasy.readthedocs.io/en/lates ... ore-events
Edit:
See also: https://espeasy.readthedocs.io/en/lates ... nds-listed
For recent builds you can also use loopTimerSet.
https://espeasy.readthedocs.io/en/lates ... ore-events
Code: Select all
on System#Boot do
timerSet,1,1
endon
On Rules#Timer=1 Do
TimerSet,1,2
LCD,1,1,%systime%
endon
See also: https://espeasy.readthedocs.io/en/lates ... nds-listed
For recent builds you can also use loopTimerSet.
Re: timer
Well, there is a solution for that:
- Use the new LoopTimerSet / LoopTimerSet_ms commands to set up an automatic repeating timer, that will go off every second, as currently you restart the timer and it is scheduled somewhere for the next second, effectively skipping a partial second
/Ton (PayPal.me)
Re: timer
Code: Select all
on System#Boot do
loopTimerSet,1,1
endon
On Rules#Timer=1 Do
LCD,1,1,%systime%
endon
Re: timer
What build are you using?
The looptimer has been introduced with build 2020/08/12
The looptimer has been introduced with build 2020/08/12
Re: timer
So please use a more recent build, if you want to have a more precise timer interval.
The loop timer has only been introduced in later builds.
The loop timer has only been introduced in later builds.
Re: timer
I have problems with the rules.
I'm using the version
ESP_Easy_mega_20200929_test_beta_ESP8266_4M1M
If I create a rule:
On System#Boot do
tone,14,100,05
gpio,12,0
timerSet,1,1
endon
On Rules#Timer=1 do
gpio,12,1
timerSet,2,1
endon
On Rules#Timer=2 do
gpio,12,0
timerSet,1,1
endon
The rule is not executed.
But if I turn on the Old engine.
That's how it works.
What does it cause?
I'm using the version
ESP_Easy_mega_20200929_test_beta_ESP8266_4M1M
If I create a rule:
On System#Boot do
tone,14,100,05
gpio,12,0
timerSet,1,1
endon
On Rules#Timer=1 do
gpio,12,1
timerSet,2,1
endon
On Rules#Timer=2 do
gpio,12,0
timerSet,1,1
endon
The rule is not executed.
But if I turn on the Old engine.
That's how it works.
What does it cause?
Re: timer
And to complement Ton's answer.
I don't think the "new rules" as they are implemented right now, will probably not be continued.
Maybe I should relabel them as "experimental" instead of "new"
I don't think the "new rules" as they are implemented right now, will probably not be continued.
Maybe I should relabel them as "experimental" instead of "new"
Who is online
Users browsing this forum: No registered users and 79 guests