Описываем модули сенсоров по новому формату

This commit is contained in:
2022-08-04 00:12:38 +03:00
parent 029d505806
commit 0e31f7c112
47 changed files with 1246 additions and 463 deletions

View File

@@ -1,26 +0,0 @@
[
{
"name": "Cенсор температуры GY21",
"num": 16,
"type": "Reading",
"subtype": "GY21t",
"id": "tmp4",
"widget": "anydataTmp",
"page": "Сенсоры",
"descr": "Температура",
"round": 1,
"int": 15
},
{
"name": "Cенсор влажности GY21",
"num": 17,
"type": "Reading",
"subtype": "GY21h",
"id": "Hum4",
"widget": "anydataHum",
"page": "Сенсоры",
"descr": "Влажность",
"round": 1,
"int": 15
}
]

View File

@@ -0,0 +1,50 @@
{
"menuSection": "Сенсоры",
"configItem": [{
"name": "Cенсор температуры GY21",
"type": "Reading",
"subtype": "GY21t",
"id": "tmp4",
"widget": "anydataTmp",
"page": "Сенсоры",
"descr": "Температура",
"round": 1,
"int": 15
},
{
"name": "Cенсор влажности GY21",
"type": "Reading",
"subtype": "GY21h",
"id": "Hum4",
"widget": "anydataHum",
"page": "Сенсоры",
"descr": "Влажность",
"round": 1,
"int": 15
}],
"about": {
"authorName": "Alecs",
"authorContact": "https://t.me/Alecs",
"authorGit": "",
"specialThanks": "",
"moduleName": "GY21",
"moduleVersion": "1.0",
"moduleDesc": "Позволяет получить значения температуры и влажности с GY21.",
"propInfo": {
"int": "Количество секунд между опросами датчика."
}
},
"defActive": true,
"devices": {
"esp32_4mb": [
"https://github.com/JonasGMorsch/GY-21.git"
],
"esp8266_4mb": [
"https://github.com/JonasGMorsch/GY-21.git"
]
}
}

View File

@@ -1,8 +0,0 @@
[env:esp8266_4mb]
lib_deps =
https://github.com/JonasGMorsch/GY-21.git
[env:esp32_4mb]
lib_deps =
https://github.com/JonasGMorsch/GY-21.git