Hi,
I made a function that creates the content for a dashboard text node.
This function works great!
But i like to have some newlines between some of the content parts when showing the info on the dasboard, is that possible?
I tried to '/n' at some places in the payload string but that did not work
msg.payload = 'Server: ' + msg.server + ' is NIET beschikbaar'
if(msg.run)
{msg.payload = msg.payload + ' en krijgt OScommand: ' + msg.oscmd + ', iD: ' + msg.devid + ', Counter:' + msg.teller + '/' + msg.repetitions + ', Errors:' + msg.tellererror;}
else
{msg.payload = msg.payload + ', iD: ' + msg.devid + ', Counter:' + msg.teller + '/' + msg.repetitions + ', Errors:' + msg.tellererror;}
if(msg.notifyok)
{msg.payload = msg.payload + '. Notificatie wordt verzonden naar: ' + msg.device;}
else if (msg.notifynok)
{msg.payload = msg.payload + '. Notificatie wordt verzonden naar: ' + msg.device;}
else
{}
return msg;