IOTDB Bridge to Run Commands
This will run code or shell commands. At this point, we're only doing output but we may modify so you can run commands and get the output
Then:
$ npm install homestar-command
const iotdb = require("iotdb")
iotdb.use("homestar-command")
const things = iotdb.connect("CommandOn", {
uuid: "5F3BEF56-09DB-42E6-B8E7-98334A0A5DE1",
shell: "ls -l",
})
thing.set(":on.true", true);
const things = iotdb.connect("CommandOn", {
uuid: "5F3BEF56-09DB-42E6-B8E7-98334A0A5DE1",
command: () => {
console.log("hello, world");
},
})
thing.set(":on.true");