RevPi Nodes - multiple input node becomes unavailable
Posted: 06 Jul 2020, 09:13
Hi, recently after updating RevPi nodes to version 1.0.6, I noticed that the multiple input no longer appear. At first, I tried to reinstall and update Node RED and check again, but the node is still missing. Out of curiosity, I tried to check the source code of the node, here I noticed something different in the file revpi-nodes.html.
Basically, for RED.nodes.registerType(), it looks like the second argument is an object, consisting all the properties of a particular node type. What I have noticed is that for revpi-multiple-input, it is not written in Javascript object format, but it is written in JSON format, as all the keys are wrapped in single quote, as compared to other node type, such as revpi-single-input, which is written in normal object format.
Not sure if this is done intentionally, or it is the cause of this issue. Hope to get updated soon.
Thanks.
Basically, for RED.nodes.registerType(), it looks like the second argument is an object, consisting all the properties of a particular node type. What I have noticed is that for revpi-multiple-input, it is not written in Javascript object format, but it is written in JSON format, as all the keys are wrapped in single quote, as compared to other node type, such as revpi-single-input, which is written in normal object format.
Not sure if this is done intentionally, or it is the cause of this issue. Hope to get updated soon.
Thanks.