ioBroker.node-red
ioBroker.node-red copied to clipboard
Idea - add possibility to change settings in admin UI
Right now, I need to add some content to the node-red settings.js file.
I could of course just go to the file and change it, but I would find it easier, to have a possibility to change the settings inside the adapters settings page.
Maybe this is something that can be added at some point.
What exactly you enter manually there? For now the file is generated by iobroker on start based on the node-red Adapter settings. So one idea is to add the relevant settings to iobroker Admin page from node-red and also generate them
I want to add some global settings which I only want to change once and then use in node-red globally.
What I did to get this working is this now in settings.js
functionGlobalContext: {
sonosUrl: 'sonos.tru.net',
}
Very important, was the , at the end, because I also have additional npm modules added in the adapter settings, which need to have this ,.
I'd like to also add this option:
contextStorage: {
default: { module: "localfilesystem" }
},
Hi @thatso , I guess I would split both feature requests into separate tickets. The request mentioned by @mobilutz affects a different part of the node-red settings.js file
Hi @mobilutz : Loading additional npms via the instance-settings has already been implemented in iobroker.node-red, but the line in settings.js is deactivated right now.
functionGlobalContext: {
//'%%functionGlobalContext%%
}
I need always to change the settings.js to specify a place for my icons in the node-red dashboard:
static content // that should be served at http://localhost:1880/. httpStatic: '/home/nol/node-red-dashboard/',
So if this in an option in the adapter - and I need no longer to patch settings.js - this would ease future updates.
functionGlobalContext: { //'%%functionGlobalContext%% }
@jwiesel as you copied correctly, this configuration option is commented out. And there is no user-interface to provide data for functionGlobalContext 😦