mrgadget / node-red-contrib-eztimer

A simple-yet-flexible timer/scheduler for node-red
MIT License
13 stars 6 forks source link

Re-emit output at timed intervals #37

Closed JasonSwindle closed 3 years ago

JasonSwindle commented 4 years ago

Howdy,

I'm looking to move off of BigTimer, but I cannot seem to figure out how to have eztimer re-emit the output at a timed internal like BigTimer does. Is this built in or do I need to use something else to re-trigger eztimer?

mrgadget commented 4 years ago

Hey. This isn't something I've got in there at this stage. Interested to know your use case?

Keen to try and keep the interface as clean/basic as possible, but also nice to support as many use-cases as possible too.

JasonSwindle commented 4 years ago

Howdy,

Thanks for the reply. In these flows, I control lights that need to be always on:

and with the re-emit function, if someone turns it off, it will turn back on (barring no on unplugs the light). Right now I need to keep using BigTimer or place in some type of loop function before eztimer.

What I would like to see

An Re-emit output every <SECONDS> function in eztimer.

mrgadget commented 3 years ago

Hey - would appreciate if you could give this a shot and report back before I push it out to the wider user-base.

It's not in NPM yet, so you'll need to grab index.js and index.html and replace them in the node on your system.

Thanks!

JasonSwindle commented 3 years ago

I will give it a test today. Thank you. :)

JasonSwindle commented 3 years ago

Howdy,

Currently testing now. So far it is working great (See image attached). Two early feedbacks:

Reads oddly. Maybe something like "Setting this to zero (0) this disable this setting"?







Re-emit every 1m (debug window) image

mrgadget commented 3 years ago

Totally agree. Late night is my excuse. Will re-word, and perhaps a pointer to the help pane for formatting.

What about: Checkbox to enable, which shows/hides the interval textbox accordingly? Could perhaps get away without the helper text then? I'm keen to keep it as uncluttered as possible.

JasonSwindle commented 3 years ago

Checkbox would be perfect, as it enabled the extra feature, and only then do you need to show the helper text. 🙂


From: Ben Nuttall notifications@github.com Sent: Saturday, October 3, 2020 1:07 PM To: mrgadget/node-red-contrib-eztimer node-red-contrib-eztimer@noreply.github.com Cc: Jason Swindle jason@swindle.me; Author author@noreply.github.com Subject: Re: [mrgadget/node-red-contrib-eztimer] Re-emit output at timed intervals (#37)

Totally agree. Late night is my excuse. Will re-word, and perhaps a pointer to the help pane for formatting.

What about: Checkbox to enable, which shows/hides the interval textbox accordingly? Could perhaps get away without the helper text then? I'm keen to keep it as uncluttered as possible.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mrgadget/node-red-contrib-eztimer/issues/37#issuecomment-703142237, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANRU6Y3I34ASPF4DYUIRR3SI5R6BANCNFSM4QPEFYNQ.

mrgadget commented 3 years ago

Have a look at that, let me know your thoughts.

JasonSwindle commented 3 years ago

Feedback:

Beyond that, ShipIt 👍

mrgadget commented 3 years ago

A long time coming but.... 1.2.5 published to npm and pulled through to Node-RED packages.