Hi, unfortunately I'm using a module where the author abandoned development, no chance to edit it. This module stores all the values that it coudn't output due to target device unavailable (TV), as result, then the TV appears again onlne it discharge on it a ton of commands, making it unusable for quite long time.
A full deploy solves the problem, resets the data on that node, now how can emulate that from NR? I would add a button on Dashboard to reset the node and flush all the queues, thans for your ideas!
warning: lots of speculation ↓ due to not knowing which node you are on about
Is the repository publicly available? You could fork it and add a feature like "When msg.topic === 'reset', clear all buffered operations". You dont have to even create an NPM module you can simply install your fork directly from Github (though the nicer thing to do is raise a PR to the original in the hope the author integrates your improvements)
Alternatively, if the node has status, perhaps you could "watch" the status with a status node and inhibit it receiving messages or discard any output messages it sends?
thanks for replying, the module is node red kodi contrib, I'm afraid I'm not able to edit, add option, and create the module as alternative. I suppose I need time to learn ow this is possibile, and to learn better javascript
The second option is a good idea, I'm going to filter
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.