Dashboard Browser Tab Title - Set from a variable

In settings.js, prior to the "module.exports = {" line, I added:

hostPart1 = "Host: ";
hostPart2 = require('os').hostname();
hostname = hostPart1 + hostPart2;
process.env.HOST_TITLE = hostname;

Then in Node-Red Dashboard "Site" tab, I just set it to: ${HOST_TITLE}.

1 Like