ioBroker.node-red icon indicating copy to clipboard operation
ioBroker.node-red copied to clipboard

Idea - add possibility to change settings in admin UI

Open mobilutz opened this issue 5 years ago • 6 comments
trafficstars

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.

mobilutz avatar Jan 13 '20 21:01 mobilutz

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

Apollon77 avatar Jan 13 '20 21:01 Apollon77

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 ,.

mobilutz avatar Jan 13 '20 21:01 mobilutz

I'd like to also add this option:

contextStorage: { 
 default: { module: "localfilesystem" } 
},

thatso avatar Mar 20 '20 14:03 thatso

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%%
}

jwiesel avatar May 02 '20 10:05 jwiesel

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.

mickym2 avatar Jul 10 '20 20:07 mickym2

 functionGlobalContext: {
        //'%%functionGlobalContext%%
}

@jwiesel as you copied correctly, this configuration option is commented out. And there is no user-interface to provide data for functionGlobalContext 😦

mobilutz avatar Jul 16 '20 08:07 mobilutz