You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
1.7 KiB
86 lines
1.7 KiB
6 years ago
|
{
|
||
|
"title": "MQTT Setting",
|
||
|
"uri": "/mqtt_setting",
|
||
|
"menu": true,
|
||
|
"element": [
|
||
|
{
|
||
|
"name": "header",
|
||
|
"type": "ACText",
|
||
|
"value": "<h2>MQTT broker settings</h2>",
|
||
|
"style": "text-align:center;color:#2f4f4f;padding:10px;"
|
||
|
},
|
||
|
{
|
||
|
"name": "caption",
|
||
|
"type": "ACText",
|
||
|
"value": "Publishing the WiFi signal strength to MQTT channel. RSSI value of ESP8266 to the channel created on ThingSpeak",
|
||
|
"style": "font-family:serif;color:#4682b4;"
|
||
|
},
|
||
|
{
|
||
|
"name": "mqttserver",
|
||
|
"type": "ACInput",
|
||
|
"value": "",
|
||
|
"placeholder": "MQTT broker server",
|
||
|
"label": "Server"
|
||
|
},
|
||
|
{
|
||
|
"name": "channelid",
|
||
|
"type": "ACInput",
|
||
|
"value": "",
|
||
|
"label": "Channel ID"
|
||
|
},
|
||
|
{
|
||
|
"name": "userkey",
|
||
|
"type": "ACInput",
|
||
|
"value": "",
|
||
|
"label": "User Key"
|
||
|
},
|
||
|
{
|
||
|
"name": "apikey",
|
||
|
"type": "ACInput",
|
||
|
"value": "",
|
||
|
"label": "API Key"
|
||
|
},
|
||
|
{
|
||
|
"name": "period",
|
||
|
"type": "ACRadio",
|
||
|
"label": "Update period",
|
||
|
"value": [
|
||
|
"30 sec.",
|
||
|
"60 sec.",
|
||
|
"180 sec."
|
||
|
],
|
||
|
"arrange": "vertical",
|
||
|
"checked": 1
|
||
|
},
|
||
|
{
|
||
|
"name": "newline",
|
||
|
"type": "ACElement",
|
||
|
"value": "<hr>"
|
||
|
},
|
||
|
{
|
||
|
"name": "apid",
|
||
|
"type": "ACCheckbox",
|
||
|
"label": "Use APID unique",
|
||
|
"checked": true
|
||
|
},
|
||
|
{
|
||
|
"name": "hostname",
|
||
|
"type": "ACInput",
|
||
|
"label": "ESP host name",
|
||
|
"value": ""
|
||
|
},
|
||
|
{
|
||
|
"name": "save",
|
||
|
"type": "ACSubmit",
|
||
|
"value": "SAVE",
|
||
|
"uri": "/mqtt_save"
|
||
|
},
|
||
|
{
|
||
|
"name": "discard",
|
||
|
"type": "ACSubmit",
|
||
|
"value": "Discard",
|
||
|
"uri": "/"
|
||
|
}
|
||
|
]
|
||
|
}
|