Replies: 11 comments 25 replies
-
Hi @colinl, That would indeed be very useful.
|
Beta Was this translation helpful? Give feedback.
-
@bartbutenaers it can be made a little easier for the moment by making a backup copy of package.json, re-installing the plugin, restoring the backup package.json and then running |
Beta Was this translation helpful? Give feedback.
-
@colinl – the title of this issue refers to "mcu nodes" (plural) by which I understand you to mean things like the MCU Sensor, MCU Clock, I2C, etc nodes that are part of this (node-red-mcu) repository. But the first sentence says "mcu node" (singular) followed by some discussion about the MCU Plug-in path. As a result, I'm a little confused. Would you help? |
Beta Was this translation helpful? Give feedback.
-
Yes, sorry, too much overloading of the word node. There is a tendency in the node red universe to use the word node for what are, more correctly, npm packages. [Edit] Actually the install would more likely be something like |
Beta Was this translation helpful? Give feedback.
-
@bartbutenaers (and anyone else interested) I have found a workflow that allows easy updating of the plugin without falling down the npm black hole.
|
Beta Was this translation helpful? Give feedback.
-
@colinl, But of course it would be very useful if - one day in the future - these node(s) could simply be installed via the Node-RED palette menu, similar to all other nodes. To allow less technically skilled people to use this, from within their flow editor. Until then I will use your workaround ;-) |
Beta Was this translation helpful? Give feedback.
-
I think all you need do is to add a node-red version spec to package.json, so it reads something like
If 3.0.0 is what is needed of course. Do you want to publish the package version at 1.0.0? The convention is to use 0.x.x. until it is stable. It is good practice, though, to have a git release at the same version as the node, so that release can be checked out to get the code of that npm version, and change logs can be used to record the changes. That works better if the package is in a git repo of its own, rather than buried inside a bigger one. |
Beta Was this translation helpful? Give feedback.
-
The MCU nodes have been published to npmjs! You can install them into Node-RED in the usual way:
All the MCU nodes now set the There's work to do on the documentation in order to be ready to publish to the Node-RED library. I hope to finish that up this week. Please give this a try and share how it goes. Please make sure you are running the latest Moddable SDK (including rebuilt tools) and Node-RED MCU Edition. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your advice 1.) I have a network scanner which scans the network and shows which ports are open on all connected devices Yay! it is working |
Beta Was this translation helpful? Give feedback.
-
So, just to clarify the procedure that worked for me. I updated everything The flow was updated OTA Easy! |
Beta Was this translation helpful? Give feedback.
-
A quick update on the effort to the MCU node into npm. There was a delay because of a problem with the help text. In the reorganization to support the MCU plugin, the help and icons for most nodes was broken. It took a while to figure out why (some subtle behavior of the Node-RED Editor), but that's now taken care of. I've migrated the help to markdown to make it easier to maintain and get the formatting consistent. I also updated all the nodes' help text. The last step is to update the readme, which is a bit dated and focused on the Sensor node That should be quick. I know from experience that help text always invites feedback. Now that it is in markdown, it is much easier to update so please feel free to propose improvements. |
Beta Was this translation helpful? Give feedback.
-
@phoddie have you considered releasing the mcu node to npmjs?
The current system has some problems, particularly when used with node-red-mcu-plugin.
Firstly it is a bit tortuous to install the node as one has to do
npm install node_modules/@ralphwetzel/node-red-mcu-plugin/node-red-mcu/nodes/mcu
but more serious is the fact that, after installing the mcu node, if one uninstalls node-red-mcu-plugin then npm gets in a state where nothing can be done, due to the fact that, in package.json, in the dependencies, is
"@moddable-node-red/mcu": "file:node_modules/@ralphwetzel/node-red-mcu-plugin/node-red-mcu/nodes/mcu",
but that file no longer exists.
If one tries to do anything with npm then it errors with
npm ERR! Cannot set properties of null (setting 'peer')
and the only way that I have found to recover from this is to manually remove the offending line from package.json
Beta Was this translation helpful? Give feedback.
All reactions