mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
iot manager ver2.0 support
This commit is contained in:
14
Cmd.ino
14
Cmd.ino
@@ -1,4 +1,16 @@
|
|||||||
void CMD_init() {
|
void CMD_init() {
|
||||||
|
|
||||||
|
//======новые виджеты ver2.0=======//
|
||||||
|
sCmd.addCommand("inputNumber", inputNumber);
|
||||||
|
sCmd.addCommand("inputText", inputText);
|
||||||
|
sCmd.addCommand("inputTime", inputTime);
|
||||||
|
sCmd.addCommand("inputDate", inputDate);
|
||||||
|
sCmd.addCommand("inputDropdown", inputDropdown);
|
||||||
|
|
||||||
|
//======новые виджеты ver2.0=======//
|
||||||
|
|
||||||
|
|
||||||
|
sCmd.addCommand("input_new", input_new);
|
||||||
|
|
||||||
sCmd.addCommand("button", button);
|
sCmd.addCommand("button", button);
|
||||||
sCmd.addCommand("buttonSet", buttonSet);
|
sCmd.addCommand("buttonSet", buttonSet);
|
||||||
@@ -21,7 +33,7 @@ void CMD_init() {
|
|||||||
sCmd.addCommand("valueUpSet", valueUpSet);
|
sCmd.addCommand("valueUpSet", valueUpSet);
|
||||||
sCmd.addCommand("valueDownSet", valueDownSet);
|
sCmd.addCommand("valueDownSet", valueDownSet);
|
||||||
|
|
||||||
sCmd.addCommand("input_new", input_new);
|
|
||||||
|
|
||||||
sCmd.addCommand("text", text);
|
sCmd.addCommand("text", text);
|
||||||
sCmd.addCommand("textSet", textSet);
|
sCmd.addCommand("textSet", textSet);
|
||||||
|
|||||||
BIN
ESP32FS-1.0.zip
Normal file
BIN
ESP32FS-1.0.zip
Normal file
Binary file not shown.
0
data/vigets/viget.inputdate.json
Normal file
0
data/vigets/viget.inputdate.json
Normal file
107
data/vigets/vigets2.0.txt
Normal file
107
data/vigets/vigets2.0.txt
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
config[0] = {
|
||||||
|
id : 0,
|
||||||
|
widget : 'btn',
|
||||||
|
descr : "Outline red button FA icon",
|
||||||
|
topic : prefix + "/" + deviceID + "/btn0",
|
||||||
|
faicon : "arrow-circle-left",
|
||||||
|
iconslot: 'start',
|
||||||
|
status : 'Back',
|
||||||
|
color : 'red',
|
||||||
|
fill : 'outline',
|
||||||
|
};
|
||||||
|
|
||||||
|
config[1] = {
|
||||||
|
id : 1,
|
||||||
|
widget : 'btn',
|
||||||
|
descr : "Button with ion-icon",
|
||||||
|
topic : prefix + "/" + deviceID + "/btn1",
|
||||||
|
icon : "add",
|
||||||
|
iconslot: "icon-only",
|
||||||
|
};
|
||||||
|
|
||||||
|
config[2] = {
|
||||||
|
id : 2,
|
||||||
|
widget : 'anydata',
|
||||||
|
descr : "Anydata",
|
||||||
|
topic : prefix + "/" + deviceID + "/anydata2",
|
||||||
|
status : 123,
|
||||||
|
};
|
||||||
|
|
||||||
|
config[3] = {
|
||||||
|
id : 3,
|
||||||
|
widget : 'btn',
|
||||||
|
descr : "Button with ion-icon",
|
||||||
|
topic : prefix + "/" + deviceID + "/btn3",
|
||||||
|
icon : "remove",
|
||||||
|
iconslot : "icon-only",
|
||||||
|
};
|
||||||
|
|
||||||
|
config[4] = {
|
||||||
|
id : 4,
|
||||||
|
widget : 'btn',
|
||||||
|
topic : prefix + "/" + deviceID + "/btn4" ,
|
||||||
|
descr : "Large button",
|
||||||
|
size : 'large',
|
||||||
|
color : 'green',
|
||||||
|
send : "any usefull data",
|
||||||
|
status : 'press'
|
||||||
|
};
|
||||||
|
|
||||||
|
config[5] = {
|
||||||
|
id : '5',
|
||||||
|
widget : 'input',
|
||||||
|
topic : prefix + "/" + deviceID + "/input5",
|
||||||
|
descr : "Input number",
|
||||||
|
size : 'small',
|
||||||
|
color : 'orange',
|
||||||
|
type : 'number',
|
||||||
|
status : 321
|
||||||
|
};
|
||||||
|
|
||||||
|
config[6] = {
|
||||||
|
id : '6',
|
||||||
|
widget : 'input',
|
||||||
|
topic : prefix + "/" + deviceID + "/input6",
|
||||||
|
descr : "Input text",
|
||||||
|
type : 'text',
|
||||||
|
status : "some text"
|
||||||
|
};
|
||||||
|
|
||||||
|
config[7] = {
|
||||||
|
id : 7,
|
||||||
|
widget : 'input',
|
||||||
|
topic : prefix + "/" + deviceID + "/input7",
|
||||||
|
descr : "Input time",
|
||||||
|
type : 'time',
|
||||||
|
status : "10:00"
|
||||||
|
};
|
||||||
|
|
||||||
|
config[8] = {
|
||||||
|
id : 8,
|
||||||
|
widget : 'input',
|
||||||
|
topic : prefix + "/" + deviceID + "/input8",
|
||||||
|
descr : "Input date",
|
||||||
|
type : 'date',
|
||||||
|
size : 'small',
|
||||||
|
status : "20.03.2020"
|
||||||
|
};
|
||||||
|
|
||||||
|
config[9] = {
|
||||||
|
id : 9,
|
||||||
|
widget : 'select',
|
||||||
|
topic : prefix + "/" + deviceID + "/input9",
|
||||||
|
descr : "Please, select",
|
||||||
|
size : 'small',
|
||||||
|
fill : 'outline',
|
||||||
|
options: ['Zero item', 'First item', 'Second item'],
|
||||||
|
status : 2,
|
||||||
|
};
|
||||||
|
|
||||||
|
Toggle:
|
||||||
|
[descr]="item.descr"
|
||||||
|
[descrColor]="item.descrColor"
|
||||||
|
[color]="item.color"
|
||||||
|
[status]="item.status"
|
||||||
|
[icon]="item.icon"
|
||||||
|
[iconOff]="item.iconOff"
|
||||||
|
[disabled]="item.disabled"
|
||||||
107
data/vigets/vigets_2.0.txt
Normal file
107
data/vigets/vigets_2.0.txt
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
config[0] = {
|
||||||
|
id : 0,
|
||||||
|
widget : 'btn',
|
||||||
|
descr : "Outline red button FA icon",
|
||||||
|
topic : prefix + "/" + deviceID + "/btn0",
|
||||||
|
faicon : "arrow-circle-left",
|
||||||
|
iconslot: 'start',
|
||||||
|
status : 'Back',
|
||||||
|
color : 'red',
|
||||||
|
fill : 'outline',
|
||||||
|
};
|
||||||
|
|
||||||
|
config[1] = {
|
||||||
|
id : 1,
|
||||||
|
widget : 'btn',
|
||||||
|
descr : "Button with ion-icon",
|
||||||
|
topic : prefix + "/" + deviceID + "/btn1",
|
||||||
|
icon : "add",
|
||||||
|
iconslot: "icon-only",
|
||||||
|
};
|
||||||
|
|
||||||
|
config[2] = {
|
||||||
|
id : 2,
|
||||||
|
widget : 'anydata',
|
||||||
|
descr : "Anydata",
|
||||||
|
topic : prefix + "/" + deviceID + "/anydata2",
|
||||||
|
status : 123,
|
||||||
|
};
|
||||||
|
|
||||||
|
config[3] = {
|
||||||
|
id : 3,
|
||||||
|
widget : 'btn',
|
||||||
|
descr : "Button with ion-icon",
|
||||||
|
topic : prefix + "/" + deviceID + "/btn3",
|
||||||
|
icon : "remove",
|
||||||
|
iconslot : "icon-only",
|
||||||
|
};
|
||||||
|
|
||||||
|
config[4] = {
|
||||||
|
id : 4,
|
||||||
|
widget : 'btn',
|
||||||
|
topic : prefix + "/" + deviceID + "/btn4" ,
|
||||||
|
descr : "Large button",
|
||||||
|
size : 'large',
|
||||||
|
color : 'green',
|
||||||
|
send : "any usefull data",
|
||||||
|
status : 'press'
|
||||||
|
};
|
||||||
|
|
||||||
|
config[5] = {
|
||||||
|
id : '5',
|
||||||
|
widget : 'input',
|
||||||
|
topic : prefix + "/" + deviceID + "/input5",
|
||||||
|
descr : "Input number",
|
||||||
|
size : 'small',
|
||||||
|
color : 'orange',
|
||||||
|
type : 'number',
|
||||||
|
status : 321
|
||||||
|
};
|
||||||
|
|
||||||
|
config[6] = {
|
||||||
|
id : '6',
|
||||||
|
widget : 'input',
|
||||||
|
topic : prefix + "/" + deviceID + "/input6",
|
||||||
|
descr : "Input text",
|
||||||
|
type : 'text',
|
||||||
|
status : "some text"
|
||||||
|
};
|
||||||
|
|
||||||
|
config[7] = {
|
||||||
|
id : 7,
|
||||||
|
widget : 'input',
|
||||||
|
topic : prefix + "/" + deviceID + "/input7",
|
||||||
|
descr : "Input time",
|
||||||
|
type : 'time',
|
||||||
|
status : "10:00"
|
||||||
|
};
|
||||||
|
|
||||||
|
config[8] = {
|
||||||
|
id : 8,
|
||||||
|
widget : 'input',
|
||||||
|
topic : prefix + "/" + deviceID + "/input8",
|
||||||
|
descr : "Input date",
|
||||||
|
type : 'date',
|
||||||
|
size : 'small',
|
||||||
|
status : "20.03.2020"
|
||||||
|
};
|
||||||
|
|
||||||
|
config[9] = {
|
||||||
|
id : 9,
|
||||||
|
widget : 'select',
|
||||||
|
topic : prefix + "/" + deviceID + "/input9",
|
||||||
|
descr : "Please, select",
|
||||||
|
size : 'small',
|
||||||
|
fill : 'outline',
|
||||||
|
options: ['Zero item', 'First item', 'Second item'],
|
||||||
|
status : 2,
|
||||||
|
};
|
||||||
|
|
||||||
|
Toggle:
|
||||||
|
[descr]="item.descr"
|
||||||
|
[descrColor]="item.descrColor"
|
||||||
|
[color]="item.color"
|
||||||
|
[status]="item.status"
|
||||||
|
[icon]="item.icon"
|
||||||
|
[iconOff]="item.iconOff"
|
||||||
|
[disabled]="item.disabled"
|
||||||
Reference in New Issue
Block a user