DHT support

This commit is contained in:
Dmitry Borisenko
2020-02-10 01:06:18 +03:00
parent 8c3111cfa8
commit 9de15efdff
16 changed files with 332 additions and 283 deletions

View File

@@ -1,8 +1,20 @@
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 0 Аналоговый#вход,#% Датчики progress-round 1 1024 1 1024 6
button 4 na вкл:#>10,##выкл:#<10 Датчики 0 7
inputDigit digit1 введите#число Датчики 10 8
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 0 Аналоговый#вход,#% Датчики progress-line 1 1024 1 1024 6
//dallas 2 Водонагреватель,#t°C Датчики any-data 7
dhtT 2 Температура#DHT,#t°C Датчики any-data 8
dhtH 2 Влажность#DHT,#% Датчики any-data 9
//level Вода#в#баке,#% Датчики any-data 125 20 10
button 4 na вкл:#>10,##выкл:#<10 Датчики 0 11
inputDigit digit1 При#скольки#включить? Датчики 10 12
button 5 na Вкл#обратный#таймер Таймеры 0 13
inputDigit digit2 Через#сколько#секунд#включить? Таймеры 5 14
button 6 5 Включится#по#таймеру Таймеры 0 15
switch 1 0 20
textSet 1 неопределено
text 1 Квартира Двери 22
button 7 scenario Вкл#выкл#все#сценарии Сценарии 1 23
button 8 line1,line2, Вкл#выкл#выбранные#сценарии Сценарии 1 24

View File

@@ -1 +1 @@
{"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"}
{"SSDP":"MODULES","chipID":"905542-1458415","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":"v7C133E426B0C69E","web_login":"admin","web_pass":"admin"}

View File

@@ -13,4 +13,16 @@ buttonSet 4 1
end
analog < digit1
buttonSet 4 0
end
button5 = 1
timerStart 1 digit2 sec
end
timer1 = 0
buttonSet 6 1
end
switch1 = 1
textSet 1 закрыто
end
switch1 = 0
textSet 1 открыто
end

View File

@@ -62,65 +62,18 @@
"class": "btn btn-block btn-success",
"action": "ssid?ssid=[[ssid]]&password=[[ssidPass]]"
},
{
"type": "hr"
},
{
"type": "h2",
"title": "Временная зона GMT"
},
{
"type": "input",
"title": "{{LangSpace}}",
"name":"timeZone",
"state": "{{timezone}}",
"pattern": "[0-9-]{1,3}"
},
{
"type": "button",
"module":"",
"title": "Сохранить",
"class": "btn btn-block btn-success",
"action": "timeZone?timeZone=[[timeZone]]"
},
{
"type": "link",
"title": "Автоопределение зоны",
"action": "javascript:set_time_zone(this);",
"class": "btn btn-block btn-primary"
},
{
"type": "time",
"name":"times1",
"title": "На устройстве сейчас",
"state":"{{time}}"
},
{
"type": "button",
"response":"[[&#116imes1]]",
"title": "Синхронизировать",
"class": "btn btn-block btn-primary",
"action": "Time"
},
{
{
"type": "hr"
},
{
"type": "h2",
"title": "Точка доступа"
},
{
"type": "text",
"title": "После того как устройство подключается к роутеру, его Wi-Fi исчезнет.",
"class": "alert alert-warning",
"style": "width:45%;float:right;"
},
{
"type": "input",
"title": "Имя WI-FI сети",
"name":"ssidap",
"state": "{{ssidAP}}",
"style": "width:50%;display:inline",
"pattern": ".{1,20}"
},
{
@@ -128,19 +81,41 @@
"title": "Пароль",
"name":"ssidApPass",
"state": "{{passwordAP}}",
"style": "width:50%;display:inline",
"pattern": ".{8,20}"
},
{
"type": "button",
"title": "Сохранить",
"action": "ssidap?ssidAP=[[ssidap]]&passwordAP=[[ssidApPass]]",
"class": "btn btn-block btn-success",
"style": "width:50%;display:inline"
"class": "btn btn-block btn-success"
},
{
"type": "hr"
},
{
"type": "hr"
},
"type": "h2",
"title": "Логин и пароль web interface"
},
{
"type": "input",
"title": "Логин",
"name":"web-login",
"state": "{{web_login}}",
"pattern": ".{1,20}"
},
{
"type": "password",
"title": "Пароль",
"name":"web-pass",
"state": "{{web_pass}}",
"pattern": ".{1,20}"
},
{
"type": "button",
"title": "Сохранить",
"action": "web?web_login=[[web-login]]&web_pass=[[web-pass]]",
"class": "btn btn-block btn-success"
},
{
"type": "hr"
},

View File

@@ -0,0 +1,5 @@
{
"widget" : "anydata",
"after" : "",
"icon" : ""
}

View File

@@ -1,6 +1,5 @@
{
"widget" : "input",
"size" : "small",
"color" : "orange",
"widget" : "input",
"color" : "blue",
"type" : "number"
}

View File

@@ -1,5 +1,5 @@
{
"widget" : "toggle",
"icon" : "sunny",
"iconOff" : "moon"
"icon" : "",
"iconOff" : ""
}