Scrounger / ioBroker.linux-control

Controlling Linux devices and information about your system
https://forum.iobroker.net/topic/35870/test-adapter-linux-control-v0-x-x
MIT License
10 stars 5 forks source link

Add the ability to call a command from JavaScript Adapter #32

Closed asutpshnik closed 2 years ago

asutpshnik commented 2 years ago

For example

sendTo('linux-control.0', 'hostExample', 'commandExample', function (result) {
    if (result.error) {
        console.error(result.error);
    } else {
        // show result
         console.log('Command result: ' + JSON.stringify(result));
    }
});
Scrounger commented 2 years ago

Still posible, just use the datapoints in 'linux-control.0.command'.