node-red / node-red-nodes

Extra nodes for Node-RED
Other
964 stars 592 forks source link

PiGPIOd Feature request: set `host` dynamically #1040

Closed coconup closed 6 months ago

coconup commented 6 months ago

Which node are you reporting an issue on?

PiGPIOd

What happens?

Currently, host is a static string in PiGPIOd nodes that does not accept any templated expression (e.g. {{msg.host}}).

What do you expect to happen?

I would like to be able to dynamically set host, since I have a lot of nodes in my flows.json and hardcoding a hostname in all of them seems dumb (in case that value ever changes or if I need to port flows to a different environment).

Please tell us about your environment:

dceejay commented 6 months ago

You can instead use an environment variable set outside of Node-RED - see the docs - https://nodered.org/docs/user-guide/environment-variables

coconup commented 6 months ago

You can instead use an environment variable set outside of Node-RED - see the docs - https://nodered.org/docs/user-guide/environment-variables

Even better, thank you!