Replies: 6 comments 11 replies
-
Hi, But please be aware that the time is available earliest with triggering of the first event as before there won't be any output produced. |
Beta Was this translation helpful? Give feedback.
-
I had some more thoughts about this request and I came to the conclusion that an output message is not really appropriate for providing the time value. Firstly because of what I already mentioned above, i.e. that you won't receive the time before the first event triggers (so for instance, directly after a flow deploy, the time would not be available). And secondly, the calculation of the next trigger time takes place after the output message has been sent. This means at the time when the output message is produced, the next trigger time is still the time of the current event (which doesn't help much). Alternatively, the scheduler node could write the next trigger time to a context variable every time it is calculated. But then the name of the variable and the type of the context store either has to be configurable through the editor UI or the context store would need be hard-coded and the name would need to be a cryptic one based on the node's ID (in order to have it unique). While a hard-coded name is definitely not very nice, the other approach requires adding another setting to the UI. How important is such feature for you? |
Beta Was this translation helpful? Give feedback.
-
The current problems is that I have no idea when the flow will start because sun time events change every day, so currently I would have to go to the editor to see what the next event would be. But I understand the issue with redeploying and only seeing the next event when at least 1 event has triggered. Would it be a better way to add an additional output that sends info when a "query" input payload (next to toggle, reload, trigger) is sent ? For now I have created another flow with offset events 5 minutes before the real action and delay it 4 minutes (because I can't select on 1 minute intervals) to notify us an event will be triggered, otherwise it scares the crap out of us when all shutters open/close without warning. BTW is there a reason why the offset fields are rounded to 5 minutes ? |
Beta Was this translation helpful? Give feedback.
-
This is something I would definitely like to avoid as it makes the node more complex and harder to understand (people would need to know that some ports are for the events and another one is for the time). In this case I would prefer the way through a context variable because it keeps the output ports "clean".
The fields are not rounded to 5 minutes, you can enter any arbitrary integer number within the allowed range. Only the up/down buttons use a step of 5 minutes in order to be able to faster scroll up or down. |
Beta Was this translation helpful? Give feedback.
-
Hi Jens, When you set it to your own value and you click Done, after reopening the node, it is changed to the nearest value from the list. See video below. CleanShot.2022-01-23.at.13.56.19.mp4Vince |
Beta Was this translation helpful? Give feedback.
-
ok, in this case it is a bug, can you please enter an issue in the bug tracker? |
Beta Was this translation helpful? Give feedback.
-
following up on my original request (which was perfectly executed by the way !), is it in any way possible to retrieve the "next event" text as an optional output so I could put this on my dashboard for all users (and not only in the editor only for me) ? now it is kind of unknown for users when the next event will occur.
![CleanShot 2022-01-10 at 09 03 21](https://user-images.githubusercontent.com/5128967/148734345-5c4d0bd5-db48-445d-8a19-c2077331a9b7.png)
![CleanShot 2022-01-10 at 09 04 34](https://user-images.githubusercontent.com/5128967/148734417-99a2fcdb-c661-4985-ab9d-811a15656d52.png)
Beta Was this translation helpful? Give feedback.
All reactions