ontje / node-red-contrib-countdown

A simple countdown node
MIT License
5 stars 13 forks source link

Question: starting countdown from input #1

Closed hyukishi closed 4 years ago

hyukishi commented 4 years ago

Is it possible to start the countdown upon the injection of the "number" payload from a previous function?

As it stands, I have to use another node to start the countdown after setting it with the number provided by the function I'm using.

If so, could you please provide an example?

Thank you in advance!

ontje commented 4 years ago

Jey hyukishi,

it was not possible, but quite easy to implement - so I did. I just published v1.1.0. If you update, the node configuration will have a new checkbox: "Start countdown if control message is recieved while not running" which is unchecked by default. If you check it, the node should show the behaviour you asked for.

Please note: It will take some time until node-red picks up the updated package, so before you try to update, look here if it reads v.1.1.0 already. https://flows.nodered.org/node/node-red-contrib-countdown

hyukishi commented 4 years ago

I've deleted my 2 previous comments as they are no longer relevant. I must've had something going on with my web cache at the time. All is well now and the function is working as expected.

Thank you for implementing my request! Cheers!

ontje commented 4 years ago

Glad it works!