node-red-contrib-power-monitor icon indicating copy to clipboard operation
node-red-contrib-power-monitor copied to clipboard

Stop doesn't stop

Open GeoffNT opened this issue 2 years ago • 4 comments

Sending a payload of "stop" doesn't stop this immediately if you have "stop after" set to more than one.

The instructions say that stop with override "stop after" and "stop threshold" but it doesn't work for me. I need to send "stop" as many times as stop after is set to before it stops so it is no different to sending a power value of zero.

I am simply sending a payload of text string "stop". Is this correct?

GeoffNT avatar Aug 04 '22 15:08 GeoffNT

That should work, sending a payload of stop or STOP should stop the timer if it was not already in a state of stopped. You need to be running version 1.2, as that is when the feature was added.

The way I use it its to send a stop message if I have not received any messages for a given amount of time. For example, if the power monitor loses power it wont be able to report any updates, and power-monitor node will count forever.

image

Setting for the power-monitor node image

Settings for the Stop Trigger node image

ostat avatar Aug 14 '22 09:08 ostat

You need to be running version 1.2, as that is when the feature was added.

Ah, that is the issue then. I am running 1.0. (which I only installed a week or so back)

In manage palette in Node red it doesn't show any update available. Do I have to install 1.2 manually?

GeoffNT avatar Aug 14 '22 10:08 GeoffNT

In manage palette in Node red it doesn't show any update available. Do I have to install 1.2 manually?

I'm not sure whats happening there, perhaps @xoseperez knows? The node red site has the version as 1.0.0 https://flows.nodered.org/node/node-red-contrib-power-monitor

The npm site has the version as 1.2.0 https://www.npmjs.com/package/node-red-contrib-power-monitor

Regardless, you can manually install by downloading the files from this repo and replace the files that are installed for nodered.

I run nodered under docker, and the files are stored under \data\node_modules\node-red-contrib-power-monitor.

To confirm if the changes are already there you look for the changes that are in this changeset #16.

ostat avatar Aug 14 '22 10:08 ostat

Hi. I have just updated the version in the NodeRED site. It used to be automatic but they changed it some time ago...

xoseperez avatar Aug 17 '22 09:08 xoseperez