265 Telegram support added

This commit is contained in:
Dmitry Borisenko
2020-11-05 02:23:08 +03:00
parent 2cad740fc6
commit 1f69019bb3
10 changed files with 79 additions and 33 deletions

View File

@@ -14,6 +14,7 @@
"mqttPass": "23ri22se32",
"scen": "1",
"telegramApi": "1425283609:AAFf3YO8ouCJF23kU8CMiU7XXy21MFhbn9w",
"telegonof": "0",
"weblogin": "admin",
"webpass": "admin",
"udponoff": "1",

View File

@@ -43,7 +43,7 @@
},
{
"type": "h4",
"title": "LittleFS version: 264"
"title": "LittleFS version: 265"
},
{
"type": "hr"

View File

@@ -19,16 +19,26 @@
{
"type": "hr"
},
{
"type": "checkbox",
"name": "tel",
"title": "Включить телеграм",
"action": "/set?telegonof=[[tel]]",
"state": "{{telegonof}}"
},
{
"type": "hr"
},
{
"type": "h4",
"style": "width:60%;float:left;",
"style": "width:40%;float:left;",
"title": "Telegram API token:"
},
{
"type": "input",
"title": "",
"name": "telegramApi-arg",
"style": "width:40%;float:right",
"style": "width:60%;float:right",
"state": "{{telegramApi}}"
},
{
@@ -40,6 +50,10 @@
},
{
"type": "hr"
},
{
"type": "text",
"title": "<div style='margin-top:10px;margin-bottom:10px;'><font color='black'><p style='border: 1px solid #DCDCDC; border-radius: 3px; background-color: #F5F5F5; padding: 10px;'>После настройки telegram перезагрузите устройство что бы изменения вступили в силу</p></font></div>"
}
]
}