I have a custom node red node that I would like to use in node red on homeassistant.
So, I have the package.json, the .js file and the .html file but I dont know where to put them or how to install/import them.
I have the files on my pc and homeassistant with node red is running on a raspberry.
And, if they need to go somewhere in the raspberry’s filesystem, how do I get them there?
Hope someone can help me on this one, just can’t seem to find instructions for this step.
The situation is like this: I had Homeassistant installed, than I installed the Node-Red add-on.
Tis is all working fine but now I have created a custom node following these instructions: Creating your first node : Node-RED except for the insallation part because I don’t know where to run npm commands (If running npm commands is even possible in the node-red add-on)
The Manage Palette won’t help me because the files I created aren’t even on the raspberry.
So basically the question is: I have my .json, .js and .html files created… now what?
I don’t think you can install a custom node on the Node-Red add-on because you don’t have permissions to the add-on files and folders.
What does your node do? Is it something that others would have an interest in using, or is it a learning exercise? If it is something that others would find useful, post it on “Feature Requests”. If it is for learning, install Node Red on a PC running Linux.
The node is very custom and usefull for my system only I suppose.
But it’s also a learning thing, specially how to get it running in the add-on haha.
From the HA file editor add-on I can reach the node-red files, i can see other nodes that I installed using the “Manage Palette” option in node-red.
Just placing my files in there doesn’t work.
If you go to “Manage Palette” and open the Install tab there is a button that clearly has an upload sign (I must have missed it because it too obvious). I created a file structure following these instructions Packaging : Node-RED and created a .tgz package from them using this instructions https://www.techwalla.com/articles/how-to-create-a-tgz-file-in-windows and voilà, I could upload and install my node in the node-red add-on.