Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea - add possibility to change settings in admin UI #78

Open
mobilutz opened this issue Jan 13, 2020 · 6 comments
Open

Idea - add possibility to change settings in admin UI #78

mobilutz opened this issue Jan 13, 2020 · 6 comments

Comments

@mobilutz
Copy link
Contributor

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.

@Apollon77
Copy link
Contributor

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

@mobilutz
Copy link
Contributor Author

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

@thatso
Copy link

thatso commented Mar 20, 2020

I'd like to also add this option:

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

@jwiesel
Copy link
Contributor

jwiesel commented May 2, 2020

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

@mickym2
Copy link
Contributor

mickym2 commented Jul 10, 2020

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.

@mobilutz
Copy link
Contributor Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants