1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- {
- "title": "MQTT Setting",
- "uri": "/mqtt_setting",
- "menu": true,
- "element": [
- {
- "name": "style",
- "type": "ACStyle",
- "value": "label+input,label+select{position:sticky;left:120px;width:230px!important;box-sizing:border-box;}"
- },
- {
- "name": "header",
- "type": "ACText",
- "value": "<h2>MQTT broker settings</h2>",
- "style": "text-align:center;color:#2f4f4f;"
- },
- {
- "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": "mqtt.thingspeak.com",
- "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": "newline",
- "type": "ACElement",
- "value": "<hr>"
- },
- {
- "name": "period",
- "type": "ACRadio",
- "label": "Update period",
- "value": [
- "30 sec.",
- "60 sec.",
- "180 sec."
- ],
- "arrange": "vertical",
- "checked": 1
- },
- {
- "name": "uniqueid",
- "type": "ACCheckbox",
- "value": "unique",
- "label": "Use APID unique",
- "checked": false
- },
- {
- "name": "hostname",
- "type": "ACInput",
- "label": "ESP host name",
- "value": ""
- },
- {
- "name": "save",
- "type": "ACSubmit",
- "value": "Save&Start",
- "uri": "/mqtt_save"
- },
- {
- "name": "discard",
- "type": "ACSubmit",
- "value": "Discard",
- "uri": "/"
- }
- ]
- }
|