node-red-contrib-totaliser
I think the update may have caused an issue where setting msg.payload to 'reset' (to clear the total and restart the interval timer) causes a ReferenceError: "startTime is not defined"
node.on('input', function (msg) {
if ('payload' in msg) {
if (msg.payload === 'reset') {
startTime = Date.now();
node.total = 0;
}
should it not be:
node.startTime = Date.now();
I've just started using Node-RED and not much JavaScript so apologies if I'm just making some stupid mistake with Node-RED.