5/23/2020 8:41 PM | |
Joined: 3/17/2014 Last visit: 1/15/2024 Posts: 53 Rating:
|
Hi community, I would like to integrate some node-red nodes pre-installing them inside the image built with meta-iot2050. I got some experience with recipes on IOT2040, but for this I spent some time trying to understand how this new system works, is not so easy... Below you will find a more detailed description of my steps. I had to modify some files in order to successfully install some nodes, but maybe I'm missing something. Maybe you can help me to create a good example tutorials for customize meta-iot2050 that can be useful for everyone.
I got some good results, some nodes installed with the procedure described below works fine:
Other packages installation doesn't work :
ADD_FLAGS is a new parameter that I can pass from recipe bb file like: ADD_FLAGS="--unsafe-perm --no-audit"
Procedure
A new json file and a folder are generated.Save json file for later.
AttachmentIOT2050_BUILD_NODES_LOGS_ERRORS.zip (845 Downloads) |
Last edited by: davide_maffei at: 05/23/2020 20:44:47Last edited by: davide_maffei at: 05/23/2020 20:47:35 |
|
5/24/2020 12:25 PM | |
Joined: 4/28/2015 Last visit: 6/28/2024 Posts: 578 Rating:
|
Yeah, untested use case... There were a couple issues in the ported recipes. Furthermore, the opcua node has a specific packaging problem with an included x86 binary. All solved. Interestingly, a pre-generated .node-red/packages.json is no longer needed. Please have a look at https://github.com/siemens/meta-iot2050/commits/jan/preinstall-node-red-nodes and let me know if that works for you as well. Also test other nodes that I didn't include. BTW, what is the reason for choosing node-red-contrib-opcua, rather than node-red-contrib-iiot-opcua? Not sure if we discussed that at meta-iot2000 times already, but the latter is what we were pre-integrating there. |
5/24/2020 3:54 PM | |
Joined: 3/17/2014 Last visit: 1/15/2024 Posts: 53 Rating:
|
Hi jan-k, Thank you, now in the preinstall-node branch node installation is fixed. I will update the procedure for adding new nodes with correct steps. So the problem was only "npm: Remove broken nodedir setting"? About node-red-contrib-opcua decision, also from my side node-red-contrib-iiot-opcua is much better, but if you try to install it from node red Palette you cannot find it since it is deprecated now. Also on npm homepage there is a warning on that:https://www.npmjs.com/package/node-red-contrib-iiot-opcua. |
Follow us on