рабочая версия с аналоговым сенсором

This commit is contained in:
Dmitry Borisenko
2022-01-15 16:30:34 +01:00
parent b6c714bec8
commit ea68905f4e
8 changed files with 114 additions and 135 deletions

View File

@@ -1,53 +1,7 @@
[
{
"type": "Variable",
"subtype": "button-out",
"id": "btn1",
"widget": "toggle",
"page": "Кнопки",
"descr": "Освещение",
"gpio": 13,
"inv": false
},
{
"type": "Variable",
"subtype": "pwm-out",
"id": "pwm1",
"widget": "range",
"page": "Регуляторы",
"descr": "Освещение",
"gpio": 14,
"inv": false
},
{
"type": "Reading",
"subtype": "button-in",
"id": "btn",
"widget": "toggle",
"page": "Кнопки",
"descr": "Освещение",
"gpio": 12,
"inv": false
},
{
"type": "Reading",
"subtype": "output-value",
"id": "txt",
"widget": "anydata",
"page": "Предупреждения",
"descr": "Статус"
},
{
"type": "Reading",
"subtype": "input-value",
"id": "txt",
"widget": "input",
"page": "Лимиты",
"descr": "Порог"
},
{
"type": "Reading",
"subtype": "analog-adc",
"subtype": "AnalogAdc",
"id": "t",
"widget": "anydata",
"page": "Сенсоры",
@@ -57,7 +11,7 @@
},
{
"type": "Reading",
"subtype": "analog-adc",
"subtype": "AnalogAdc",
"id": "t",
"widget": "anydata",
"page": "Сенсоры",
@@ -65,9 +19,55 @@
"pin": 0,
"int": 15
},
{
"type": "Variable",
"subtype": "ButtonOut",
"id": "btn1",
"widget": "toggle",
"page": "Кнопки",
"descr": "Освещение",
"gpio": 13,
"inv": false
},
{
"type": "Variable",
"subtype": "PwmOut",
"id": "pwm1",
"widget": "range",
"page": "Регуляторы",
"descr": "Освещение",
"gpio": 14,
"inv": false
},
{
"type": "Reading",
"subtype": "bme280",
"subtype": "ButtonIn",
"id": "btn",
"widget": "toggle",
"page": "Кнопки",
"descr": "Освещение",
"gpio": 12,
"inv": false
},
{
"type": "Reading",
"subtype": "OutputValue",
"id": "txt",
"widget": "anydata",
"page": "Предупреждения",
"descr": "Статус"
},
{
"type": "Reading",
"subtype": "InputValue",
"id": "txt",
"widget": "input",
"page": "Лимиты",
"descr": "Порог"
},
{
"type": "Reading",
"subtype": "Bme280",
"id": "t",
"widget": "anydata",
"page": "Сенсоры",
@@ -75,7 +75,7 @@
},
{
"type": "Reading",
"subtype": "bme280",
"subtype": "Bme280",
"id": "p",
"widget": "anydata",
"page": "Сенсоры",
@@ -83,7 +83,7 @@
},
{
"type": "Reading",
"subtype": "bme280",
"subtype": "Bme280",
"id": "h",
"widget": "anydata",
"page": "Сенсоры",