Rename browser tabs

Is it possible to rename the browser tabs in the editor, I have a few instances across multiple pc's and I want to have the tab show the devices name (or a name i set) so its easier to know which devices node red im messing about with.

I did see this Anyway to change dashboard browser tab label?, which works for dashboard 2.0 but I mean the editor tabs (Browser tabs not flow tabs)

image

You can edit you settings file and add a page title. Configuration : Node-RED
Then restart node-red and refresh browser.

1 Like

In my settings.js I have these tweeks. /home/pi/bin/ipaddress is a script to get the device IP. It might not be the best solution.

Immediately above module.exports = {

// -------------------------------------
 hostname = require('os').hostname();
 const execSync = require('child_process').execSync;
 const ipaddress = execSync('/home/pi/bin/ipaddress', { encoding: 'utf-8' });
 device = hostname + ' ' + ipaddress;
 process.env.DEVICE = device;
// --------------------------------------

And immediately below editor.theme: {

// -------------------------------------
       header: {
          title: process.env.DEVICE
       },
       page: {
          title: process.env.DEVICE,
          css: "/home/pi/.node-red/editor.css"
       },
// --------------------------------------

Thanks for that info, I love the name GlassPi

Looks like the fix I need, When I find where the theme file is location (im using the dark theme form node-red-contrib-themes/theme-collection) I will add that in and try it