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:
@@ -1,19 +1,5 @@
|
||||
button 1 na Включить#все Освещение 0 1
|
||||
button 2 13 Прихожая Освещение 0 2
|
||||
button 3 14 Кухня Освещение 0 3
|
||||
pwm 1 3 Яркость#коредор: Освещение 1023 4
|
||||
pwm 2 4 Яркость#ванная: Освещение 510 5
|
||||
analog Аналоговый#вход,#% Датчики text 1 1024 1 1024 6
|
||||
logging analog 1 144 график Датчики 7
|
||||
input value1 20.0 5 порог.#значение Датчики 8
|
||||
button 4 na Вкл#по#analog>20 Датчики 0 11
|
||||
//dallas 2 Водонагреватель,#t°C Датчики termometr 14
|
||||
//level Вода#в#баке,#% Датчики gauge 125 20 15
|
||||
//ph pH Датчики text 0 16
|
||||
input value2 8.0 1 период#сек Таймер 117
|
||||
button 5 na Вкл#обратный#таймер Таймер 0 20
|
||||
button 6 5 Включится#по#таймеру Таймер 0 21
|
||||
switch 1 0 20
|
||||
text 1 Квартира Двери 22
|
||||
button 7 scenario Сценарии Настройки 1 23
|
||||
button 8 line1,line2, 2строки#сценариев Освещение 1 24
|
||||
inputNumber 1 Температура#максимальная moscow 60 1
|
||||
inputNumber 2 Температура#минимальная moscow 30 2
|
||||
inputText 1 Введите#текст moscow привет 3
|
||||
inputTime 1 Введите#время moscow 12.00 4
|
||||
inputDate 1 Введите#дату novorossiysk 10-01-2020 5
|
||||
@@ -1 +1 @@
|
||||
{"SSDP":"MODULES","chipID":"12884479-1458415","ssidAP":"WiFi","passwordAP":"","ssid":"MGTS_GPON_DC15","password":"HKC4MRE4","timezone":3,"mqttServer":"91.204.228.124","mqttPort":1883,"mqttUser":"rise","mqttPass":"23ri22se32","scenario":"1","timers":"0","pushingbox_id":"v670C4F8A2581A11"}
|
||||
{"SSDP":"MODULES","chipID":"4039078204","ssidAP":"WiFi","passwordAP":"","ssid":"rise","password":"hostel3333","timezone":3,"mqttServer":"m12.cloudmqtt.com","mqttPort":14053,"mqttUser":"lbscvzuj","mqttPass":"bLxlveOgaF8F","scenario":"1","timers":"0","pushingbox_id":"v670C4F8A2581A11"}
|
||||
@@ -1,31 +1 @@
|
||||
button1 = 1
|
||||
buttonSet 2 1
|
||||
buttonSet 3 1
|
||||
pwmSet 2 1024
|
||||
end
|
||||
button1 = 0
|
||||
buttonSet 2 0
|
||||
buttonSet 3 0
|
||||
pwmSet 2 0
|
||||
end
|
||||
analog > value1
|
||||
buttonSet 4 1
|
||||
end
|
||||
button5 = 1
|
||||
timerStart 1 value2 sec
|
||||
end
|
||||
button5 = 0
|
||||
timerStart 2 value2 sec
|
||||
end
|
||||
timer1 = 0
|
||||
buttonSet 6 1
|
||||
end
|
||||
timer2 = 0
|
||||
buttonSet 6 0
|
||||
end
|
||||
switch1 = 1
|
||||
textSet 1 закрыто-time
|
||||
end
|
||||
switch1 = 0
|
||||
textSet 1 открыто-time
|
||||
end
|
||||
|
||||
|
||||
6
data/vigets/viget.inputNumber.json
Normal file
6
data/vigets/viget.inputNumber.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"widget" : "input",
|
||||
"size" : "small",
|
||||
"color" : "orange",
|
||||
"type" : "number"
|
||||
}
|
||||
6
data/vigets/viget.inputText.json
Normal file
6
data/vigets/viget.inputText.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"widget" : "input",
|
||||
"size" : "small",
|
||||
"color" : "orange",
|
||||
"type" : "text"
|
||||
}
|
||||
6
data/vigets/viget.inputTime.json
Normal file
6
data/vigets/viget.inputTime.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"widget" : "input",
|
||||
"size" : "small",
|
||||
"color" : "orange",
|
||||
"type" : "time"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"widget" : "input",
|
||||
"size" : "small",
|
||||
"color" : "orange",
|
||||
"type" : "date"
|
||||
}
|
||||
7
data/vigets/viget.select.json
Normal file
7
data/vigets/viget.select.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"widget" : "select",
|
||||
"size" : "small",
|
||||
"fill" : "outline",
|
||||
"options" : "["Zero item", "First item", "Second item"]",
|
||||
"status" : 2
|
||||
}
|
||||
@@ -1,107 +0,0 @@
|
||||
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