on Clock#Time=All,**:00 do
Moderators: grovkillen, Stuntteam, TD-er
- Andrew Mamohin
- Normal user
- Posts: 102
- Joined: 12 Jun 2020, 08:30
- Location: Belarus, Gomel
- Contact:
on Clock#Time=All,**:00 do
How can I make an event that runs every hour at exactly 0 minutes?
If I put "on Clock#Time=All,**:00 do", then it throws an error: "timeStringToSeconds: '0' --> invalid".
The same happens if "Clock#Time=All,**:0".
If I put "on Clock#Time=All,**:01 do", then everything turns out well.
If I put "on Clock#Time=All,**:00 do", then it throws an error: "timeStringToSeconds: '0' --> invalid".
The same happens if "Clock#Time=All,**:0".
If I put "on Clock#Time=All,**:01 do", then everything turns out well.
Andy.
Re: on Clock#Time=All,**:00 do
Sounds like a bug....
As a work-around, you could start a timer at :59 and act on the event triggered by this timer.
Just until this bug is fixed. (Related GitHub issue)
As a work-around, you could start a timer at :59 and act on the event triggered by this timer.
Just until this bug is fixed. (Related GitHub issue)
- Andrew Mamohin
- Normal user
- Posts: 102
- Joined: 12 Jun 2020, 08:30
- Location: Belarus, Gomel
- Contact:
Re: on Clock#Time=All,**:00 do
Thanks for the answer! For now, I'll set the event to 01, it's not so critical. I just wanted to show a bug.
Andy.
Re: on Clock#Time=All,**:00 do
I just looked into this and I find it really strange this error is occuring now.
The only changes made to it (2 years ago) is to change `byte` to `uint8_t`
The latest change before that was 3 year ago.
The only changes made to it (2 years ago) is to change `byte` to `uint8_t`
The latest change before that was 3 year ago.
Re: on Clock#Time=All,**:00 do
Hmm, looks like the getNumerical function is acting up here....
May have to look at it later this evening.
May have to look at it later this evening.
Re: on Clock#Time=All,**:00 do
Can you test the test build for this PR (when it is ready) ?
https://github.com/letscontrolit/ESPEasy/pull/4573
https://github.com/letscontrolit/ESPEasy/pull/4573
- Andrew Mamohin
- Normal user
- Posts: 102
- Joined: 12 Jun 2020, 08:30
- Location: Belarus, Gomel
- Contact:
- Andrew Mamohin
- Normal user
- Posts: 102
- Joined: 12 Jun 2020, 08:30
- Location: Belarus, Gomel
- Contact:
Re: on Clock#Time=All,**:00 do
Great!
This was a bug in our numerical parser function, so it may also fix other issues where numbers are parsed.
This was a bug in our numerical parser function, so it may also fix other issues where numbers are parsed.
Re: on Clock#Time=All,**:00 do
The fixes have been merged into 'mega'.
/Ton (PayPal.me)
Who is online
Users browsing this forum: Bing [Bot] and 8 guests