FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
03-31-2021 03:14 PM
Hallo ctrlX CORE team,
the Settings.js file has many setting options that could be helpful for the development of NodeRed, for example:
After the app installation, this file is in the same root / nodered folder structure as the flows.json is located.
My question is could you not make this file replaceable? In the past, this was possible with the pre-series devices.
I have attached a Settings.js file as an example.
Thank you for your efforts and keep up the good work
With best regards
m3yco
Solved! Go to Solution.
04-07-2021 01:47 PM
I have basically the same issue. We need to change the "uiHost" configuration value of NodeRed. The configuration value can be set within the settings.js file. An option to (easily) replace or modify the settings.js would be very helpful to us.
04-07-2021 04:17 PM
Hi all,
this feature will be implemented with next release-milestone RM21.07.
Stay tuned 🙂
Best regards
Johannes
10-04-2021 09:59 AM
is this feature available and where can I find the documentation?
10-04-2021 03:35 PM - edited 10-19-2021 07:54 AM
At the moment this info is missing in the documentation. But while booting up the Node-RED snap is looking to following paths in the mentioned order if there is a settings.js ($SNAP_DATA = /var/snap/ctrlx-node-red/current):
If you like to change settings you should copy out an original Settings.js already prepared by us for normal usage (otherwise the snap will/could stop working) from the third path, then add your extensions and load it to e.g. the first path to be persistent.
09-16-2022 03:35 PM
Hello,
how could we access to the directory to replace the setting.js file without ssh access ?
Thanks.
09-19-2022 07:36 AM
The first path mentioned above can be accessed via WebDAV. See this post.
09-19-2022 11:04 AM - edited 09-19-2022 11:04 AM
Hi,
thanks for your feedack,
the folder accessible with webdav protocol are not complete,
so for example, snaps where we can put the settings.js of Node-red is not reachable
see below for Node-red from webdav
09-19-2022 01:28 PM
Sorry for the confusion. The app itself has a direct link to the folder in the app data (activeConfiguration) and the path you can access with WebDAV is linked to the same folder in the file system. WebDAV is limited to only this app data (activeConfiguration) folder and cannot access any other path in the system.
09-21-2022 03:01 PM
that means that to insert setting.js file of node-red, we have to use ssh ?
09-21-2022 03:53 PM
No, you do not need ssh. You can use WebDAV and put it to the active configuration (settings.js and data). The app itself can also access to this path.
See this thread for how to write files in Node-RED. Reading is working just the same.
09-28-2022 02:31 PM
Hello,
we tried to load the setting.js file using webDav, but we were not able to load it , see screen.
thanks.
09-28-2022 04:59 PM
Thanks Yacine,
Here the Files, for someone who want to test.
You have to install this dependance in NR : https://flows.nodered.org/node/node-red-contrib-fs-ops
You have to change the extention file txt --> json.
Regards.
10-10-2022 03:07 AM
Hello,
I am new to settings.js in node-red,
I am unable to find settings.js node-red file using WinSCP connection to my ctrlX. Do i have to generate the settings.js file? or i have to have a default settings.js file and copy paste into the ctrlX node-red appdata file directory?
10-10-2022 07:30 AM
In my post above I mentioned the paths where the settings.js file is expected. After installation it is only in the installation path available and can be put to the active configuration to be "replaced".
Also as mentioned above: You should copy out an original Settings.js already prepared by us for normal usage (otherwise the snap will/could stop working) from the third path, then add your extensions and load it to e.g. the first path to be persistent.