homestar-command
v0.0.2
Published
IOTDB Bridge for Node.JS code
Downloads
9
Readme
homestar-command
IOTDB Bridge to Run Commands
About
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
Installation
Then:
$ npm install homestar-commandUse
const iotdb = require("iotdb")
iotdb.use("homestar-command")Shell Command
const things = iotdb.connect("CommandOn", {
uuid: "5F3BEF56-09DB-42E6-B8E7-98334A0A5DE1",
shell: "ls -l",
})
thing.set(":on.true", true);Node JS Command
const things = iotdb.connect("CommandOn", {
uuid: "5F3BEF56-09DB-42E6-B8E7-98334A0A5DE1",
command: () => {
console.log("hello, world");
},
})
thing.set(":on.true");