Does a injector node can set message.vars like:
msg.config = 'xxx';
msg.oscmd = 'yyy'
Or do i have to add a separate CHANGE node or function for this ...
Does a injector node can set message.vars like:
msg.config = 'xxx';
msg.oscmd = 'yyy'
Or do i have to add a separate CHANGE node or function for this ...
The Inject node can only set the payload and/or topic. For anything else, use a Change node after the Inject node.
Ok, i have my (management) dashboard almost done.. It is working!
I can select one off 5 raspberry pi (servers)
select a OS command and check if the server is up , and if not, exec a selected OS command
OR select a server and turn on a device
Only ugly thing is that when selecting an OS command the device option must be hide.
Is that possible to hide a dashboard item with a function?