mqtt_setting.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "title": "MQTT Setting",
  3. "uri": "/mqtt_setting",
  4. "menu": true,
  5. "element": [
  6. {
  7. "name": "style",
  8. "type": "ACStyle",
  9. "value": "label+input,label+select{position:sticky;left:120px;width:230px!important;box-sizing:border-box;}"
  10. },
  11. {
  12. "name": "header",
  13. "type": "ACText",
  14. "value": "<h2>MQTT broker settings</h2>",
  15. "style": "text-align:center;color:#2f4f4f;"
  16. },
  17. {
  18. "name": "caption",
  19. "type": "ACText",
  20. "value": "Publishing the WiFi signal strength to MQTT channel. RSSI value of ESP8266 to the channel created on ThingSpeak",
  21. "style": "font-family:serif;color:#4682b4;"
  22. },
  23. {
  24. "name": "mqttserver",
  25. "type": "ACInput",
  26. "value": "mqtt.thingspeak.com",
  27. "placeholder": "MQTT broker server",
  28. "label": "Server"
  29. },
  30. {
  31. "name": "channelid",
  32. "type": "ACInput",
  33. "value": "",
  34. "label": "Channel ID"
  35. },
  36. {
  37. "name": "userkey",
  38. "type": "ACInput",
  39. "value": "",
  40. "label": "User Key"
  41. },
  42. {
  43. "name": "apikey",
  44. "type": "ACInput",
  45. "value": "",
  46. "label": "API Key"
  47. },
  48. {
  49. "name": "newline",
  50. "type": "ACElement",
  51. "value": "<hr>"
  52. },
  53. {
  54. "name": "period",
  55. "type": "ACRadio",
  56. "label": "Update period",
  57. "value": [
  58. "30 sec.",
  59. "60 sec.",
  60. "180 sec."
  61. ],
  62. "arrange": "vertical",
  63. "checked": 1
  64. },
  65. {
  66. "name": "uniqueid",
  67. "type": "ACCheckbox",
  68. "value": "unique",
  69. "label": "Use APID unique",
  70. "checked": false
  71. },
  72. {
  73. "name": "hostname",
  74. "type": "ACInput",
  75. "label": "ESP host name",
  76. "value": ""
  77. },
  78. {
  79. "name": "save",
  80. "type": "ACSubmit",
  81. "value": "Save&Start",
  82. "uri": "/mqtt_save"
  83. },
  84. {
  85. "name": "discard",
  86. "type": "ACSubmit",
  87. "value": "Discard",
  88. "uri": "/"
  89. }
  90. ]
  91. }