Titlebar text from function

From that old thread - this add a clock to teh ttlebar

Which I see you may have already added - so add another - this time positioned in the middle and change the payload to be your message rather than the time.

something like

[{"id":"fe316fd6.b362d","type":"ui_template","z":"e4501ac7.9c41d8","group":"e0c3e8c1.0cc748","name":"Toolbar","order":6,"width":"0","height":"0","format":"<script id=\"titleScript\" type=\"text/javascript\">\n    $('#titlewords').remove();\n    var toolbar = $('.md-toolbar-tools');\n    var div = $('<div style=\"text-align:center; width:100%;\"/>');\n    var p = $('<p/ id=\"titlewords\">');\n    \n    $('#titleScript').parent().hide();\n    div.append(p);\n    toolbar.append(div);\n\n    function displayTitle(lh) {\n        p.text(lh); \n    }\n\n    // Watch the payload and update the title\n    (function(scope) {\n        scope.$watch('msg.payload', function(data) {\n            displayTitle(data);\n        });\n    })(scope);\n</script>","storeOutMessages":false,"fwdInMessages":false,"resendOnRefresh":false,"templateScope":"local","x":400,"y":480,"wires":[[]]},{"id":"e0c3e8c1.0cc748","type":"ui_group","z":"","name":"Garage","tab":"f5aa47bb.2a4d68","order":2,"disp":false,"width":"10"},{"id":"f5aa47bb.2a4d68","type":"ui_tab","z":"","name":"Garage","icon":"fa-car","order":1}]
2 Likes