ts3 config get

This commit is contained in:
2021-04-21 20:33:52 +02:00
parent 1148d416a0
commit 5daad265b8
9 changed files with 552 additions and 357 deletions

View 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;