ts3 config get
This commit is contained in:
24
src/nodes/ts3-config/ts3-config.ts
Normal file
24
src/nodes/ts3-config/ts3-config.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { NodeDef, NodeInitializer, Node } from "node-red";
|
||||
import { Ts3ConfigConfig, Ts3ConfigNode } from "./types";
|
||||
|
||||
const nodeInit: NodeInitializer = (RED): void => {
|
||||
function Ts3Config(
|
||||
this: Ts3ConfigNode,
|
||||
config: Ts3ConfigConfig
|
||||
): void {
|
||||
RED.nodes.createNode(this, config);
|
||||
this.host = config.host
|
||||
this.nickname = config.nickname
|
||||
|
||||
// TODO connect ts3 query here
|
||||
}
|
||||
|
||||
RED.nodes.registerType("ts3-config", Ts3Config,{
|
||||
credentials: {
|
||||
username: {type: "text"},
|
||||
password: {type: "password"}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
export = nodeInit;
|
||||
Reference in New Issue
Block a user