Hello,
Please add the hostname to the title.
In default configuration add the hostname to the default title, like on the Node-RED Editor.
Regards
Hello,
Please add the hostname to the title.
In default configuration add the hostname to the default title, like on the Node-RED Editor.
Regards
You can set the Title to anything you like.... including an environment variable that is read at deploy time. So you can for example set (outside of Node-RED) in Linux.
export myName=$(hostname)
then run Node-RED and set the title to ${myName}
and it will show the hostname as the title.
Or you can set it in the ui-template
<script> document.title = "Dashboard " + window.location.hostname;</script>
[{"id":"faee0a1bb1157647","type":"ui_template","z":"452103ea51141731","group":"2d4fe667.28f8ba","name":"","order":17,"width":0,"height":0,"format":"<script> document.title = \"Dashboard \" + window.location.hostname;</script>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"global","className":"","x":180,"y":3800,"wires":[[]]},{"id":"2d4fe667.28f8ba","type":"ui_group","name":"demo","tab":"1caa8458.b17814","order":2,"disp":true,"width":"12","collapse":false},{"id":"1caa8458.b17814","type":"ui_tab","name":"Demo","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
Thanks very much.
I can set the Variable in settings.js too:
hostname = require('os').hostname();
process.env.HOST_TITLE = hostname;
And load the variable ${HOST_TITLE}
ah yes - you can do that also.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.