Fork of the espurna firmware for `mhsw` switches
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.

975 lines
61 KiB

7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>ESPurna 0.0.0</title>
  5. <meta charset="utf-8" />
  6. <!-- shortcut::html/favicon.ico -->
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <!-- build:css style.css -->
  9. <link rel="stylesheet" href="pure-min.css" />
  10. <link rel="stylesheet" href="side-menu.css" />
  11. <link rel="stylesheet" href="grids-responsive-min.css" />
  12. <link rel="stylesheet" href="checkboxes.css" />
  13. <link rel="stylesheet" href="custom.css" />
  14. <link rel="stylesheet" href="wheelcolorpicker.css" />
  15. <link rel="stylesheet" href="nouislider.min.css" />
  16. <!-- endbuild -->
  17. </head>
  18. <body>
  19. <div id="credentials" class="webmode">
  20. Wrong credentials
  21. </div>
  22. <div id="password" class="webmode">
  23. <div class="content">
  24. <form id="formPassword" class="pure-form" action="/" method="post">
  25. <input class="pure-u-1 pure-u-sm-3-4" type="hidden" name="webMode" value="1" />
  26. <div class="panel" style="display: block;">
  27. <div class="header">
  28. <h1>SECURITY</h1>
  29. <h2>Before using this device you have to change the default password for the user 'admin'. This password will be used for the <strong>AP mode hotspot</strong>, the <strong>web interface</strong> (where you are now) and the <strong>over-the-air updates</strong>.</h2>
  30. </div>
  31. <div class="page">
  32. <fieldset>
  33. <div class="pure-g">
  34. <label class="pure-u-1 pure-u-md-1-4" for="adminPass1">Admin password</label>
  35. <input name="adminPass1" class="pure-u-1 pure-u-md-3-4" type="password" tabindex="1" autocomplete="false" />
  36. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  37. <div class="pure-u-1 pure-u-md-3-4 hint">
  38. The administrator password is used to access this web interface (user 'admin'), but also to connect to the device when in AP mode or to flash a new firmware over-the-air (OTA).<br />
  39. It should have at least <strong>eight characters</strong> (letters, numbers or the underscore) and at least <strong>one number</strong>, <strong>one lowercase</strong> and <strong>one uppercase</strong> letter.</div>
  40. </div>
  41. <div class="pure-g">
  42. <label class="pure-u-1 pure-u-md-1-4" for="adminPass2">Admin password (repeat)</label>
  43. <input name="adminPass2" class="pure-u-1 pure-u-md-3-4" type="password" tabindex="2" autocomplete="false" />
  44. </div>
  45. <button class="pure-button button-update-password">Update</button>
  46. </fieldset>
  47. </div>
  48. </div>
  49. </form>
  50. </div> <!-- content -->
  51. </div>
  52. <div id="layout" class="webmode">
  53. <a href="#menu" id="menuLink" class="menu-link">
  54. <span></span>
  55. </a>
  56. <div id="menu">
  57. <div class="pure-menu">
  58. <span class="pure-menu-heading">ESPurna 0.0.0</span>
  59. <ul class="pure-menu-list">
  60. <li class="pure-menu-item">
  61. <a href="#" class="pure-menu-link" data="panel-status">STATUS</a>
  62. </li>
  63. <li class="pure-menu-item">
  64. <a href="#" class="pure-menu-link" data="panel-general">GENERAL</a>
  65. </li>
  66. <li class="pure-menu-item">
  67. <a href="#" class="pure-menu-link" data="panel-wifi">WIFI</a>
  68. </li>
  69. <li class="pure-menu-item">
  70. <a href="#" class="pure-menu-link" data="panel-mqtt">MQTT</a>
  71. </li>
  72. <li class="pure-menu-item module module-ntp">
  73. <a href="#" class="pure-menu-link" data="panel-ntp">NTP</a>
  74. </li>
  75. <li class="pure-menu-item module module-dcz">
  76. <a href="#" class="pure-menu-link" data="panel-domoticz">DOMOTICZ</a>
  77. </li>
  78. <li class="pure-menu-item module module-idb">
  79. <a href="#" class="pure-menu-link" data="panel-idb">INFLUXDB</a>
  80. </li>
  81. <li class="pure-menu-item module module-pow">
  82. <a href="#" class="pure-menu-link" data="panel-power">POWER</a>
  83. </li>
  84. <li class="pure-menu-item module module-rfb">
  85. <a href="#" class="pure-menu-link" data="panel-rfb">RFBRIDGE</a>
  86. </li>
  87. <li class="pure-menu-item">
  88. <a href="#" class="pure-menu-link" data="panel-admin">ADMIN</a>
  89. </li>
  90. </ul>
  91. <div class="main-buttons">
  92. <button class="pure-button button-update">Update</button>
  93. <button class="pure-button button-reconnect">Reconnect</button>
  94. <button class="pure-button button-reset">Reset</button>
  95. </div>
  96. <div class="footer">
  97. &copy; 2016-2017<br />
  98. Xose Pérez<br/>
  99. <a href="http://tinkerman.cat" target="_blank">http://tinkerman.cat</a><br/>
  100. <a href="https://bitbucket.org/xoseperez/espurna" target="_blank">ESPurna @ Bitbucket</a><br/>
  101. GPLv3 license<br/>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="content">
  106. <div class="panel" id="panel-status" style="display: block;">
  107. <div class="header">
  108. <h1>STATUS</h1>
  109. <h2>Current configuration</h2>
  110. </div>
  111. <div class="page">
  112. <form class="pure-form pure-form-aligned">
  113. <fieldset>
  114. <div id="relays">
  115. </div>
  116. <div id="colors">
  117. </div>
  118. <div id="channels">
  119. </div>
  120. <div class="pure-g module module-analog">
  121. <label class="pure-u-1 pure-u-sm-1-4" for="analogValue">Analog</label>
  122. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="analogValue" readonly />
  123. </div>
  124. <div class="pure-g module module-counter">
  125. <label class="pure-u-1 pure-u-sm-1-4" for="counterValue">Counts / last minute</label>
  126. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="counterValue" readonly />
  127. </div>
  128. <div class="pure-g module module-ds">
  129. <label class="pure-u-1 pure-u-sm-1-4" for="dsTmp">Temperature (<span id="tmpUnit"></span>)</label>
  130. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="dsTmp" readonly />
  131. </div>
  132. <div class="pure-g module module-dht">
  133. <label class="pure-u-1 pure-u-sm-1-4" for="dhtTmp">Temperature (<span id="tmpUnit"></span>)</label>
  134. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="dhtTmp" readonly />
  135. </div>
  136. <div class="pure-g module module-dht">
  137. <label class="pure-u-1 pure-u-sm-1-4" for="dhtHum">Humidity (%)</label>
  138. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="dhtHum" readonly />
  139. </div>
  140. <div class="pure-g module module-emon">
  141. <label class="pure-u-1 pure-u-sm-1-4" for="emonApparentPower">Apparent Power (VA)</label>
  142. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="emonApparentPower" readonly />
  143. </div>
  144. <div class="pure-g module module-emon">
  145. <label class="pure-u-1 pure-u-sm-1-4" for="emonCurrent">Current (A)</label>
  146. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="emonCurrent" readonly />
  147. </div>
  148. <div class="pure-g module module-pow">
  149. <label class="pure-u-1 pure-u-sm-1-4" for="powActivePower">Active Power (W)</label>
  150. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powActivePower" readonly />
  151. </div>
  152. <div class="pure-g module module-pow">
  153. <label class="pure-u-1 pure-u-sm-1-4" for="powApparentPower">Apparent Power (VA)</label>
  154. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powApparentPower" readonly />
  155. </div>
  156. <div class="pure-g module module-pow">
  157. <label class="pure-u-1 pure-u-sm-1-4" for="powReactivePower">Reactive Power (VAR)</label>
  158. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powReactivePower" readonly />
  159. </div>
  160. <div class="pure-g module module-pow">
  161. <label class="pure-u-1 pure-u-sm-1-4" for="powCurrent">Current (A)</label>
  162. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powCurrent" readonly />
  163. </div>
  164. <div class="pure-g module module-pow">
  165. <label class="pure-u-1 pure-u-sm-1-4" for="powVoltage">Voltage (V)</label>
  166. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powVoltage" readonly />
  167. </div>
  168. <div class="pure-g module module-pow">
  169. <label class="pure-u-1 pure-u-sm-1-4" for="powPowerFactor">Power Factor</label>
  170. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powPowerFactor" readonly />
  171. </div>
  172. <div class="pure-u-1 state">
  173. <div class="pure-u-1 pure-u-sm-1-4">Manufacturer</div>
  174. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="manufacturer"></span></div>
  175. <div class="pure-u-1 pure-u-sm-1-4">Device</div>
  176. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="device"></span></div>
  177. <div class="pure-u-1 pure-u-sm-1-4">Chip ID</div>
  178. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="chipid"></span></div>
  179. <div class="pure-u-1 pure-u-sm-1-4">MAC</div>
  180. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="mac"></span></div>
  181. <div class="pure-u-1 pure-u-sm-1-4">Network</div>
  182. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="network"></span></div>
  183. <div class="pure-u-1 pure-u-sm-1-4">IP</div>
  184. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="deviceip"></span></div>
  185. <div class="pure-u-1 pure-u-sm-1-4">ESPurna version</div>
  186. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="version"></span></div>
  187. <div class="pure-u-1 pure-u-sm-1-4">ESPurna build</div>
  188. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="build"></span></div>
  189. <div class="pure-u-1 pure-u-sm-1-4">Current time</div>
  190. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="time"></span></div>
  191. <div class="pure-u-1 pure-u-sm-1-4">Uptime</div>
  192. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="uptime"></span></div>
  193. <div class="pure-u-1 pure-u-sm-1-4">Free heap</div>
  194. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="heap" post=" bytes"></span></div>
  195. <div class="pure-u-1 pure-u-sm-1-4">Firmware size</div>
  196. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="sketch_size" post=" bytes"></span></div>
  197. <div class="pure-u-1 pure-u-sm-1-4">Free space</div>
  198. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="free_size" post=" bytes"></span></div>
  199. <div class="pure-u-1 pure-u-sm-1-4">MQTT Status</div>
  200. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="mqttStatus"></span></div>
  201. <div class="pure-u-1 pure-u-sm-1-4">NTP Status</div>
  202. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="ntpStatus"></span></div>
  203. </div>
  204. </fieldset>
  205. </form>
  206. </div>
  207. </div>
  208. <form id="formSave" class="pure-form" action="/" method="post" enctype="multipart/form-data">
  209. <input class="pure-u-1 pure-u-sm-3-4" type="hidden" name="webMode" value="0" />
  210. <div class="panel" id="panel-general">
  211. <div class="header">
  212. <h1>GENERAL</h1>
  213. <h2>General configuration values</h2>
  214. </div>
  215. <div class="page">
  216. <fieldset>
  217. <div class="pure-g">
  218. <label class="pure-u-1 pure-u-md-1-4" for="hostname">Hostname</label>
  219. <input name="hostname" class="pure-u-1 pure-u-md-3-4" type="text" tabindex="1" />
  220. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  221. <div class="pure-u-1 pure-u-md-3-4 hint">This name will identify this device in your network (http://&lt;hostname&gt;.local). For this setting to take effect you should restart the wifi interface clicking the "Reconnect" button.</div>
  222. </div>
  223. <div class="pure-g">
  224. <label class="pure-u-1 pure-u-md-1-4" for="relayMode">Switch boot mode</label>
  225. <div class="pure-u-1 pure-u-md-3-4">
  226. <select name="relayMode" class="pure-u-3-4" tabindex="2">
  227. <option value="0">Always OFF</a>
  228. <option value="1">Always ON</a>
  229. <option value="2">Same as before</a>
  230. <option value="3">Toogle before</a>
  231. </select>
  232. </div>
  233. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  234. <div class="pure-u-1 pure-u-md-3-4 hint">Here you can define what will be the status of the switch after a reboot.</div>
  235. </div>
  236. <div class="pure-g module module-multirelay">
  237. <label class="pure-u-1 pure-u-md-1-4" for="relaySync">Switch sync mode</label>
  238. <div class="pure-u-1 pure-u-md-3-4">
  239. <select name="relaySync" class="pure-u-3-4" tabindex="3">
  240. <option value="0">No synchonisation</a>
  241. <option value="1">Zero or one switches active</a>
  242. <option value="2">One and just one switch active</a>
  243. <option value="3">All synchonised</a>
  244. </select>
  245. </div>
  246. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  247. <div class="pure-u-1 pure-u-md-3-4 hint">Define how the different switches should be synchronized.</div>
  248. </div>
  249. <div class="pure-g">
  250. <label class="pure-u-1 pure-u-md-1-4" for="relayPulseMode">Switch pulse mode</label>
  251. <div class="pure-u-1 pure-u-md-3-4">
  252. <select name="relayPulseMode" class="pure-u-3-4" tabindex="4">
  253. <option value="0">Don't pulse</a>
  254. <option value="1">Normally OFF (stays on for a short time)</a>
  255. <option value="2">Normally ON (stays off for a short time)</a>
  256. </select>
  257. </div>
  258. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  259. <div class="pure-u-1 pure-u-md-3-4 hint">When pulse mode is enabled the switch will automatically switch back to its normal state after the pulse time (below).</div>
  260. </div>
  261. <div class="pure-g">
  262. <label class="pure-u-1 pure-u-md-1-4" for="relayPulseTime">Switch pulse time</label>
  263. <input name="relayPulseTime" class="pure-u-1 pure-u-md-3-4" type="number" min="0" step="0.1" max="60" tabindex="5" />
  264. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  265. <div class="pure-u-1 pure-u-md-3-4 hint">Pulse time in seconds (maximum value is 60s, accepts decimals).</div>
  266. </div>
  267. <div class="pure-g">
  268. <label class="pure-u-1 pure-u-md-1-4" for="btnDelay">Double click delay</label>
  269. <input name="btnDelay" class="pure-u-1 pure-u-md-3-4" type="number" min="0" step="100" max="1000" tabindex="6" />
  270. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  271. <div class="pure-u-1 pure-u-md-3-4 hint">Delay in milliseconds to detect a double click (from 0 to 1000ms).<br />
  272. The lower this number the faster the device will respond to button clicks but the harder it will be to get a double click.
  273. Increase this number if you are having trouble to double click the button.
  274. Set this value to 0 to disable double click. You won't be able to set the device in AP mode manually but your device will respond immediately to button clicks.<br />
  275. You will have to <strong>reset the device</strong> after updating for this setting to apply.
  276. </div>
  277. </div>
  278. <div class="pure-g module module-color">
  279. <div class="pure-u-1 pure-u-sm-1-4"><label for="useColor">Use colorpicker</label></div>
  280. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="useColor" tabindex="8" /></div>
  281. <div class="pure-u-0 pure-u-md-1-2">&nbsp;</div>
  282. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  283. <div class="pure-u-1 pure-u-md-3-4 hint">Use color picker for the first 3 channels as RGB.<br />Will only work if the device has at least 3 dimmable channels.<br />Reload the page to update the web interface.</div>
  284. </div>
  285. <div class="pure-g module module-color">
  286. <div class="pure-u-1 pure-u-sm-1-4"><label for="useWhite">Use white channel</label></div>
  287. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="useWhite" tabindex="9" /></div>
  288. <div class="pure-u-0 pure-u-md-1-2">&nbsp;</div>
  289. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  290. <div class="pure-u-1 pure-u-md-3-4 hint">Use forth dimmable channel as white when first 3 have the same RGB value.<br />Will only work if the device has at least 4 dimmable channels.<br />Reload the page to update the web interface.</div>
  291. </div>
  292. <div class="pure-g module module-color">
  293. <div class="pure-u-1 pure-u-sm-1-4"><label for="useGamma">Use gamma correction</label></div>
  294. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="useGamma" tabindex="10" /></div>
  295. <div class="pure-u-0 pure-u-md-1-2">&nbsp;</div>
  296. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  297. <div class="pure-u-1 pure-u-md-3-4 hint">Use gamma correction for RGB channels.<br />Will only work if "use colorpicker" above is also ON.</div>
  298. </div>
  299. <div class="pure-g module module-alexa">
  300. <div class="pure-u-1 pure-u-sm-1-4"><label for="alexaEnabled">Alexa integration</label></div>
  301. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="alexaEnabled" tabindex="11" /></div>
  302. </div>
  303. <div class="pure-g">
  304. <label class="pure-u-1 pure-u-md-1-4" for="wifiGain">WiFi gain</label>
  305. <div class="pure-u-1 pure-u-md-3-4">
  306. <select name="wifiGain" class="pure-u-3-4" tabindex="3">
  307. <option value="0">Normal</a>
  308. <option value="10">High</a>
  309. <option value="20.5">Highest</a>
  310. </select>
  311. </div>
  312. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  313. <div class="pure-u-1 pure-u-md-3-4 hint">More gain means better range but also more power consumption. Might not work equally on all devices.</div>
  314. </div>
  315. <div class="pure-g module module-ha">
  316. <label class="pure-u-1 pure-u-md-1-4" for="haPrefix">Home Assistant Prefix</label>
  317. <input class="pure-u-1 pure-u-md-1-2" name="haPrefix" type="text" tabindex="31" />
  318. <div class="pure-u-1-3 pure-u-md-1-8"><button type="button" class="pure-u-23-24 pure-button button-ha-send">Send</button></div>
  319. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  320. <div class="pure-u-1 pure-u-md-3-4 hint">Home Assistant auto-discovery feature.</div>
  321. </div>
  322. <div class="pure-g module module-ds module-dht">
  323. <label class="pure-u-1 pure-u-sm-1-4" for="tmpUnits">Temperature units</label>
  324. <div class="pure-u-1 pure-u-sm-1-4"><input type="radio" name="tmpUnits" tabindex="12" value="0"> Celsius (&deg;C)</input></div>
  325. <div class="pure-u-1 pure-u-sm-1-4"><input type="radio" name="tmpUnits" tabindex="13" value="1"> Fahrenheit (&deg;F)</input></div>
  326. </div>
  327. <div class="pure-g">
  328. <label class="pure-u-1 pure-u-sm-1-4">Settings</label>
  329. <div class="pure-u-1 pure-u-sm-1-8"><button class="pure-button button-settings-backup pure-u-23-24">Backup</button></div>
  330. <div class="pure-u-1 pure-u-sm-1-8"><button class="pure-button button-settings-restore pure-u-23-24">Restore</button></div>
  331. </div>
  332. </fieldset>
  333. </div>
  334. </div>
  335. <div class="panel" id="panel-admin">
  336. <div class="header">
  337. <h1>ADMINISTRATION</h1>
  338. <h2>Device administration and security settings</h2>
  339. </div>
  340. <div class="page">
  341. <fieldset>
  342. <div class="pure-g">
  343. <label class="pure-u-1 pure-u-md-1-4" for="adminPass1">Admin password</label>
  344. <input name="adminPass1" class="pure-u-1 pure-u-md-3-4" type="password" tabindex="11" autocomplete="false" />
  345. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  346. <div class="pure-u-1 pure-u-md-3-4 hint">
  347. The administrator password is used to access this web interface (user 'admin'), but also to connect to the device when in AP mode or to flash a new firmware over-the-air (OTA).<br />
  348. It should have at least <strong>eight characters</strong> (letters, numbers or the underscore) and at least <strong>one number</strong>, <strong>one lowercase</strong> and <strong>one uppercase</strong> letter.</div>
  349. </div>
  350. <div class="pure-g">
  351. <label class="pure-u-1 pure-u-md-1-4" for="adminPass2">Admin password (repeat)</label>
  352. <input name="adminPass2" class="pure-u-1 pure-u-md-3-4" type="password" tabindex="12" autocomplete="false" />
  353. </div>
  354. <div class="pure-g">
  355. <label class="pure-u-1 pure-u-md-1-4" for="webPort">HTTP port</label>
  356. <input name="webPort" class="pure-u-1 pure-u-md-3-4" type="text" tabindex="13" />
  357. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  358. <div class="pure-u-1 pure-u-md-3-4 hint">
  359. This is the port for the web interface and API requests.<br />
  360. If different than 80 (standard HTTP port) you will have to add it explicitly to your requests: http://myip:myport/
  361. </div>
  362. </div>
  363. <div class="pure-g">
  364. <div class="pure-u-1 pure-u-sm-1-4"><label for="apiEnabled">Enable HTTP API</label></div>
  365. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="apiEnabled" /></div>
  366. </div>
  367. <div class="pure-g">
  368. <label class="pure-u-1 pure-u-md-1-4" for="apiKey">HTTP API Key</label>
  369. <input name="apiKey" class="pure-u-3-4 pure-u-md-1-2" type="text" tabindex="14" />
  370. <div class=" pure-u-1-4 pure-u-md-1-4"><button class="pure-button button-apikey pure-u-23-24">Generate</button></div>
  371. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  372. <div class="pure-u-1 pure-u-md-3-4 hint">
  373. This is the key you will have to pass with every HTTP request to the API, either to get or write values.<br />
  374. All API calls must contain the <strong>apikey</strong> parameter with the value above.<br />
  375. To know what APIs are enabled do a call to <strong>/apis</strong>.
  376. </div>
  377. </div>
  378. <div class="pure-g module module-nofuss">
  379. <div class="pure-u-1 pure-u-sm-1-4"><label for="nofussEnabled">Automatic remote updates (NoFUSS)</label></div>
  380. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="nofussEnabled" /></div>
  381. </div>
  382. <div class="pure-g module module-nofuss">
  383. <label class="pure-u-1 pure-u-md-1-4" for="nofussServer">NoFUSS server</label>
  384. <input name="nofussServer" class="pure-u-1 pure-u-md-3-4" type="text" tabindex="15" />
  385. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  386. <div class="pure-u-1 pure-u-md-3-4 hint">This name address of the NoFUSS server for automatic remote updates (see https://bitbucket.org/xoseperez/nofuss).</div>
  387. </div>
  388. <div class="pure-g">
  389. <label class="pure-u-1 pure-u-md-1-4">Upgrade</label>
  390. <input class="pure-u-1-2 pure-u-md-1-2" name="filename" type="text" readonly />
  391. <div class=" pure-u-1-8 pure-u-md-1-8"><button class="pure-button button-upgrade-browse pure-u-23-24">Browse</button></div>
  392. <div class=" pure-u-1-8 pure-u-md-1-8"><button class="pure-button button-upgrade pure-u-23-24">Upgrade</button></div>
  393. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  394. <div class="pure-u-1 pure-u-md-3-4"><progress id="upgrade-progress"></progress></div>
  395. <input name="upgrade" type="file" tabindex="16" />
  396. </div>
  397. </fieldset>
  398. </div>
  399. </div>
  400. <div class="panel" id="panel-wifi">
  401. <div class="header">
  402. <h1>WIFI</h1>
  403. <h2>You can configure up to 5 different WiFi networks. The device will try to connect in order of signal strength.</h2>
  404. </div>
  405. <div class="page">
  406. <fieldset>
  407. <div id="networks">
  408. </div>
  409. <button type="button" class="pure-button button-add-network">Add network</button>
  410. </fieldset>
  411. </div>
  412. </div>
  413. <div class="panel" id="panel-mqtt">
  414. <div class="header">
  415. <h1>MQTT</h1>
  416. <h2>Configure an <strong>MQTT broker</strong> in your network and you will be able to change the switch status via an MQTT message. Leave the server field empty to disable MQTT.</h2>
  417. </div>
  418. <div class="page">
  419. <fieldset>
  420. <div class="pure-g">
  421. <div class="pure-u-1 pure-u-sm-1-4"><label for="mqttEnabled">Enable MQTT</label></div>
  422. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="mqttEnabled" tabindex="30" /></div>
  423. </div>
  424. <div class="pure-g">
  425. <label class="pure-u-1 pure-u-md-1-4" for="mqttServer">MQTT Broker</label>
  426. <input class="pure-u-1 pure-u-md-3-4" name="mqttServer" type="text" size="20" tabindex="21" placeholder="IP or address of your broker" />
  427. </div>
  428. <div class="pure-g">
  429. <label class="pure-u-1 pure-u-md-1-4" for="mqttPort">MQTT Port</label>
  430. <input class="pure-u-1 pure-u-md-3-4" name="mqttPort" type="text" size="6" tabindex="22" value="1883" />
  431. </div>
  432. <div class="pure-g">
  433. <label class="pure-u-1 pure-u-md-1-4" for="mqttUser">MQTT User</label>
  434. <input class="pure-u-1 pure-u-md-3-4" name="mqttUser" type="text" size="20" tabindex="23" placeholder="Leave blank if no user/pass" autocomplete="false" />
  435. </div>
  436. <div class="pure-g">
  437. <label class="pure-u-1 pure-u-md-1-4" for="mqttPassword">MQTT Password</label>
  438. <input class="pure-u-1 pure-u-md-3-4" name="mqttPassword" type="password" size="20" tabindex="24" placeholder="Leave blank if no user/pass" autocomplete="false" />
  439. </div>
  440. <div class="pure-g module module-mqttssl">
  441. <div class="pure-u-1 pure-u-sm-1-4"><label for="mqttUseSSL">Use secure connection (SSL)</label></div>
  442. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="mqttUseSSL" tabindex="25" /></div>
  443. </div>
  444. <div class="pure-g module module-mqttssl">
  445. <label class="pure-u-1 pure-u-md-1-4" for="mqttFP">SSL Fingerprint</label>
  446. <input class="pure-u-1 pure-u-md-3-4" name="mqttFP" type="text" size="59" tabindex="26" />
  447. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  448. <div class="pure-u-1 pure-u-md-3-4 hint">
  449. This is the fingerprint for the SSL certificate of the server.<br />
  450. You can get it using <a href="https://www.grc.com/fingerprints.htm" target="_blank">https://www.grc.com/fingerprints.htm</a><br />
  451. or using openssl from a linux box by typing:<br />
  452. <pre>$ openssl s_client -connect &lt;host&gt;:&lt;port&gt; &lt; /dev/null 2&gt;/dev/null | openssl x509 -fingerprint -noout -in /dev/stdin</pre>
  453. </div>
  454. </div>
  455. <div class="pure-g">
  456. <label class="pure-u-1 pure-u-md-1-4" for="mqttTopic">MQTT Root Topic</label>
  457. <input class="pure-u-1 pure-u-md-3-4" name="mqttTopic" type="text" size="20" tabindex="27" />
  458. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  459. <div class="pure-u-1 pure-u-md-3-4 hint">
  460. This is the root topic for this device. A trailing slash will be added if not preset. The {identifier} placeholder will be replaced by the device hostname.<br />
  461. - <strong>&lt;root&gt;/relay/#/set</strong> Send a 0 or a 1 as a payload to this topic to switch it on or off. You can also send a 2 to toggle its current state. Replace # with the switch ID (starting from 0). If the board has only one switch it will be 0.<br />
  462. <span class="module module-color">- <strong>&lt;root&gt;/color/set</strong> Set the color using this topic, your can either send an "#RRGGBB" value or "RRR,GGG,BBB".<br /></span>
  463. <span class="module module-color">- <strong>&lt;root&gt;/brightness/set</strong> Set the brighness using a value from 0 to 255.<br /></span>
  464. <span class="module module-color">- <strong>&lt;root&gt;/channel/#/set</strong> Set the value for a single color channel (from 0 to 255). Replace # with the channel ID (starting from 0 and up to 4 for RGBWC lights).<br /></span>
  465. <span class="module module-color">- <strong>&lt;root&gt;/mired/set</strong> Set the temperature color in mired.<br /></span>
  466. - <strong>&lt;root&gt;/status</strong> The device will report a 1 to this topic every few minutes. Upon MQTT disconnecting this will be set to 0.<br />
  467. - Other values reported (depending on the build) are: <strong>firmware</strong> and <strong>version</strong>, <strong>hostname</strong>, <strong>IP</strong>, <strong>MAC</strong>, signal strenth (<strong>RSSI</strong>), <strong>uptime</strong> (in seconds), <strong>free heap</strong> and <strong>power supply</strong>.
  468. </div>
  469. </div>
  470. <div class="pure-g">
  471. <div class="pure-u-1 pure-u-sm-1-4"><label for="mqttUseJson">Use JSON payload</label></div>
  472. <div class="pure-u-1 pure-u-sm-3-4"><input type="checkbox" name="mqttUseJson" tabindex="26" /></div>
  473. <div class="pure-u-1 pure-u-md-1-4">&nbsp;</div>
  474. <div class="pure-u-1 pure-u-md-3-4 hint">
  475. All messages (except the device status) will be included in a JSON payload along with the timestamp and hostname
  476. and sent under the <strong>&lt;root&gt;/data</strong> topic.<br />
  477. Messages will be queued and sent after 100ms, so different messages could be merged into a single payload.<br />
  478. Subscribtions will still be done to single topics.
  479. </div>
  480. </div>
  481. </fieldset>
  482. </div>
  483. </div>
  484. <div class="panel" id="panel-ntp">
  485. <div class="header">
  486. <h1>NTP</h1>
  487. <h2>Configure your NTP (Network Time Protocol) servers and local configuration to keep your device time up to the second for your location.</h2>
  488. </div>
  489. <div class="page">
  490. <fieldset>
  491. <div class="pure-g">
  492. <label class="pure-u-1 pure-u-md-1-4" for="ntpServer1">NTP Server 1</label>
  493. <input class="pure-u-1 pure-u-md-3-4" name="ntpServer1" type="text" size="20" tabindex="41" />
  494. </div>
  495. <div class="pure-g">
  496. <label class="pure-u-1 pure-u-md-1-4" for="ntpServer2">NTP Server 2</label>
  497. <input class="pure-u-1 pure-u-md-3-4" name="ntpServer2" type="text" size="20" tabindex="42" />
  498. </div>
  499. <div class="pure-g">
  500. <label class="pure-u-1 pure-u-md-1-4" for="ntpServer3">NTP Server 3</label>
  501. <input class="pure-u-1 pure-u-md-3-4" name="ntpServer3" type="text" size="20" tabindex="43" />
  502. </div>
  503. <div class="pure-g">
  504. <label class="pure-u-1 pure-u-sm-1-4" for="ntpOffset">Time offset</label>
  505. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24" name="ntpOffset" type="number" min="-11" max="14" tabindex="44" data="0" /></div>
  506. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 for UTC time</div>
  507. </div>
  508. <div class="pure-g">
  509. <div class="pure-u-1 pure-u-sm-1-4"><label for="ntpDST">Enable Daylight Saving Time</label></div>
  510. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="ntpDST" /></div>
  511. </div>
  512. </fieldset>
  513. </div>
  514. </div>
  515. <div class="panel" id="panel-domoticz">
  516. <div class="header">
  517. <h1>DOMOTICZ</h1>
  518. <h2>
  519. Configure the connection to your Domoticz server.
  520. </h2>
  521. </div>
  522. <div class="page">
  523. <fieldset>
  524. <div class="pure-g">
  525. <div class="pure-u-1 pure-u-sm-1-4"><label for="dczEnabled">Enable Domoticz</label></div>
  526. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="dczEnabled" tabindex="30" /></div>
  527. </div>
  528. <div class="pure-g">
  529. <label class="pure-u-1 pure-u-md-1-4" for="dczTopicIn">Domoticz IN Topic</label>
  530. <input class="pure-u-1 pure-u-md-3-4" name="dczTopicIn" type="text" tabindex="31" />
  531. </div>
  532. <div class="pure-g">
  533. <label class="pure-u-1 pure-u-md-1-4" for="dczTopicOut">Domoticz OUT Topic</label>
  534. <input class="pure-u-1 pure-u-md-3-4" name="dczTopicOut" type="text" tabindex="32" />
  535. </div>
  536. <div class="pure-g module module-dht module-ds">
  537. <label class="pure-u-1 pure-u-sm-1-4" for="dczTmpIdx">Temperature IDX</label>
  538. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24" name="dczTmpIdx" type="number" min="0" tabindex="33" data="0" /></div>
  539. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  540. </div>
  541. <div class="pure-g module module-dht">
  542. <label class="pure-u-1 pure-u-sm-1-4" for="dczHumIdx">Humidity IDX</label>
  543. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24" name="dczHumIdx" type="number" min="0" tabindex="34" data="0" /></div>
  544. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  545. </div>
  546. <div class="pure-g module module-pow module-emon">
  547. <label class="pure-u-1 pure-u-sm-1-4" for="dczPowIdx">Power IDX</label>
  548. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24" name="dczPowIdx" type="number" min="0" tabindex="35" data="0" /></div>
  549. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  550. </div>
  551. <div class="pure-g module module-pow module-emon">
  552. <label class="pure-u-1 pure-u-sm-1-4" for="dczEnergyIdx">Energy increment IDX</label>
  553. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24" name="dczEnergyIdx" type="number" min="0" tabindex="36" data="0" /></div>
  554. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  555. </div>
  556. <div class="pure-g module module-pow">
  557. <label class="pure-u-1 pure-u-sm-1-4" for="dczVoltIdx">Voltage IDX</label>
  558. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24" name="dczVoltIdx" type="number" min="0" tabindex="37" data="0" /></div>
  559. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  560. </div>
  561. <div class="pure-g module module-pow module-emon">
  562. <label class="pure-u-1 pure-u-sm-1-4" for="dczCurrentIdx">Current IDX</label>
  563. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24" name="dczCurrentIdx" type="number" min="0" tabindex="38" data="0" /></div>
  564. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  565. </div>
  566. <div class="pure-g module module-analog">
  567. <label class="pure-u-1 pure-u-sm-1-4" for="dczAnaIdx">Analog IDX</label>
  568. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24" name="dczAnaIdx" type="number" min="0" tabindex="39" data="0" /></div>
  569. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  570. </div>
  571. <div id="idxs">
  572. </div>
  573. </fieldset>
  574. </div>
  575. </div>
  576. <div class="panel" id="panel-idb">
  577. <div class="header">
  578. <h1>INFLUXDB</h1>
  579. <h2>
  580. Configure the connection to your InfluxDB server. Leave the host field empty to disable InfluxDB connection.
  581. </h2>
  582. </div>
  583. <div class="page">
  584. <fieldset>
  585. <div class="pure-g">
  586. <label class="pure-u-1 pure-u-md-1-4" for="idbHost">Host</label>
  587. <input class="pure-u-1 pure-u-md-3-4" name="idbHost" type="text" tabindex="41" />
  588. </div>
  589. <div class="pure-g">
  590. <label class="pure-u-1 pure-u-md-1-4" for="idbPort">Port</label>
  591. <input class="pure-u-1 pure-u-md-3-4" name="idbPort" type="text" tabindex="42" />
  592. </div>
  593. <div class="pure-g">
  594. <label class="pure-u-1 pure-u-md-1-4" for="idbDatabase">Database</label>
  595. <input class="pure-u-1 pure-u-md-3-4" name="idbDatabase" type="text" tabindex="43" />
  596. </div>
  597. <div class="pure-g">
  598. <label class="pure-u-1 pure-u-md-1-4" for="idbUsername">Username</label>
  599. <input class="pure-u-1 pure-u-md-3-4" name="idbUsername" type="text" tabindex="44" autocomplete="false" />
  600. </div>
  601. <div class="pure-g">
  602. <label class="pure-u-1 pure-u-md-1-4" for="idbPassword">Password</label>
  603. <input class="pure-u-1 pure-u-md-3-4" name="idbPassword" type="password" tabindex="45" autocomplete="false" />
  604. </div>
  605. </fieldset>
  606. </div>
  607. </div>
  608. <div class="panel" id="panel-power">
  609. <div class="header">
  610. <h1>POWER</h1>
  611. <h2>
  612. Calibrate your power monitor device. Use a pure resistive load and introduce the expected values for active power, current and voltage. Use the nominal values or a multimeter to get the proper numbers. Set any field to 0 to leave the calibration value untouched.
  613. </h2>
  614. </div>
  615. <div class="page">
  616. <fieldset>
  617. <div class="pure-g">
  618. <label class="pure-u-1 pure-u-md-1-4" for="powExpectedPower">AC RMS Active Power</label>
  619. <input class="pure-u-1 pure-u-md-3-4 powExpected" name="powExpectedPower" type="text" size="8" tabindex="51" placeholder="0" />
  620. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  621. <div class="pure-u-1 pure-u-md-3-4 hint">In Watts (W). If you are using a pure resistive load like a bulb this will be writen on it, otherwise use a socket multimeter to get this value.</div>
  622. </div>
  623. <div class="pure-g">
  624. <label class="pure-u-1 pure-u-md-1-4" for="powExpectedVoltage">AC RMS Voltage</label>
  625. <input class="pure-u-1 pure-u-md-3-4 powExpected" name="powExpectedVoltage" type="text" size="8" tabindex="52" placeholder="0" />
  626. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  627. <div class="pure-u-1 pure-u-md-3-4 hint">In Volts (V). Enter your the nominal AC voltage for your household or facility, or use multimeter to get this value.</div>
  628. </div>
  629. <div class="pure-g">
  630. <label class="pure-u-1 pure-u-md-1-4" for="powExpectedCurrent">AC RMS Current</label>
  631. <input class="pure-u-1 pure-u-md-3-4 powExpected" name="powExpectedCurrent" type="text" size="8" tabindex="55" placeholder="0" />
  632. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  633. <div class="pure-u-1 pure-u-md-3-4 hint">In Ampers (A). If you are using a pure resistive load like a bulb this will the ratio between the two previous values, i.e. power / voltage. You can also use a current clamp around one fo the power wires to get this value.</div>
  634. </div>
  635. <div class="pure-g">
  636. <div class="pure-u-1 pure-u-sm-1-4"><label for="powExpectedReset">Reset calibration</label></div>
  637. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="powExpectedReset" /></div>
  638. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  639. <div class="pure-u-1 pure-u-md-3-4 hint">Move this switch to ON and press "Update" to revert to factory values.</div>
  640. </div>
  641. </fieldset>
  642. </div>
  643. </div>
  644. </form>
  645. <div class="panel" id="panel-rfb">
  646. <div class="header">
  647. <h1>RFBRIDGE</h1>
  648. <h2>
  649. Sonoff 433 RF Bridge Configuration<br /><br />
  650. To learn a new code click <strong>LEARN</strong>, the Sonoff RFBridge will beep, then press a button on the remote, the RFBridge will then double beep and the new code should show up. If the device double beeps but the code does not update it has not been properly learnt. Keep trying.<br /><br />
  651. Modify or create new codes manually (all codes must be 18 characters long) and then click <strong>SAVE</strong> to store them in the device memory. If your controlled device uses the same code to switch ON and OFF, learn the code with the ON button and copy paste it to the OFF input box, then click SAVE on the last one to store the value.<br /><br />
  652. Delete any code clicking the <strong>FORGET</strong> button.
  653. </h2>
  654. </div>
  655. <div class="page">
  656. <div id="rfbNodes" />
  657. </div>
  658. </div>
  659. </div> <!-- content -->
  660. </div> <!-- layout -->
  661. <!-- Templates -->
  662. <div id="rfbNodeTemplate" class="template">
  663. <fieldset>
  664. <legend>&nbsp;Switch <span></span>&nbsp;</legend>
  665. <div class="pure-g">
  666. <label class="pure-u-1-2 pure-u-sm-1-4">Switch ON</label>
  667. <input class="pure-u-1-2 pure-u-sm-1-3" type="text" maxlength="18" name="rfbcode" data_id="1" data_status="1" />
  668. <div class="pure-u-1-3 pure-u-md-1-8"><button type="button" class="pure-u-23-24 pure-button button-rfb-learn">LEARN</button></div>
  669. <div class="pure-u-1-3 pure-u-md-1-8"><button type="button" class="pure-u-23-24 pure-button button-rfb-send">SAVE</button></div>
  670. <div class="pure-u-1-3 pure-u-md-1-8"><button type="button" class="pure-u-23-24 pure-button button-rfb-forget">FORGET</button></div>
  671. </div>
  672. <div class="pure-g">
  673. <label class="pure-u-1-2 pure-u-sm-1-4">Switch OFF</label>
  674. <input class="pure-u-1-2 pure-u-sm-1-3" type="text" maxlength="18" name="rfbcode" data_id="1" data_status="0" />
  675. <div class="pure-u-1-3 pure-u-md-1-8"><button type="button" class="pure-u-23-24 pure-button button-rfb-learn">LEARN</button></div>
  676. <div class="pure-u-1-3 pure-u-md-1-8"><button type="button" class="pure-u-23-24 pure-button button-rfb-send">SAVE</button></div>
  677. <div class="pure-u-1-3 pure-u-md-1-8"><button type="button" class="pure-u-23-24 pure-button button-rfb-forget">FORGET</button></div>
  678. </div>
  679. </fieldset>
  680. </div>
  681. <div id="networkTemplate" class="template">
  682. <div class="pure-g">
  683. <label class="pure-u-md-1-6 pure-u-1-4" for="ssid">Network SSID</label>
  684. <div class="pure-u-md-3-4 pure-u-5-8"><input name="ssid" type="text" class="pure-u-23-24" value="" size="8" tabindex="0" placeholder="Network SSID" required autocomplete="false" /></div>
  685. <div class="pure-u-md-1-12 pure-u-1-8"><button type="button" class="pure-button button-more-network pure-u-1">...</button></div>
  686. <div class="more">
  687. <div class="break"></div>
  688. <label class="pure-u-md-1-6 pure-u-1-4" for="pass">Password</label>
  689. <input class="pure-u-md-5-6 pure-u-3-4" name="pass" type="password" value="" tabindex="0" autocomplete="false" />
  690. <div class="break"></div>
  691. <label class="pure-u-md-1-6 pure-u-1-4" for="ip">Static IP</label>
  692. <input class="pure-u-md-5-6 pure-u-3-4" name="ip" type="text" value="" size="15" tabindex="0" autocomplete="false" />
  693. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  694. <div class="pure-u-md-5-6 pure-u-3-4 hint">Leave empty for DNS negotiation</div>
  695. <label class="pure-u-md-1-6 pure-u-1-4" for="gw">Gateway IP</label>
  696. <input class="pure-u-md-5-6 pure-u-3-4" name="gw" type="text" value="" size="15" tabindex="0" autocomplete="false" />
  697. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  698. <div class="pure-u-md-5-6 pure-u-3-4 hint">Set when using a static IP</div>
  699. <label class="pure-u-md-1-6 pure-u-1-4" for="mask">Network Mask</label>
  700. <input class="pure-u-md-5-6 pure-u-3-4" name="mask" type="text" value="255.255.255.0" size="15" tabindex="0" autocomplete="false" />
  701. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  702. <div class="pure-u-md-5-6 pure-u-3-4 hint">Usually 255.255.255.0 for /24 networks</div>
  703. <label class="pure-u-md-1-6 pure-u-1-4" for="dns">DNS IP</label>
  704. <input class="pure-u-md-5-6 pure-u-3-4" name="dns" type="text" value="8.8.8.8" size="15" tabindex="0" autocomplete="false" />
  705. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  706. <div class="pure-u-md-5-6 pure-u-3-4 hint">Set the Domain Name Server IP to use when using a static IP</div>
  707. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  708. <div class="pure-u-md-1-6 pure-u-1-4"><button type="button" class="pure-button button-del-network pure-u-5-6 pure-u-md-5-6">Del</button></div>
  709. </div>
  710. </div>
  711. </div>
  712. <div id="relayTemplate" class="template">
  713. <div class="pure-g">
  714. <div class="pure-u-1 pure-u-sm-1-4"><label>Switch<span class="relay_id"></span> Status</label></div>
  715. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" class="relayStatus pure-u-1 pure-u-sm-1-4" data="0" /></div
  716. </div>
  717. </div>
  718. <div id="idxTemplate" class="template">
  719. <div class="pure-g">
  720. <label class="pure-u-1 pure-u-sm-1-4" for="dczRelayIdx">Switch<span class="id"></span> IDX</label>
  721. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24 dczRelayIdx" name="dczRelayIdx" type="number" min="0" tabindex="0" data="0" /></div>
  722. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  723. </div>
  724. </div>
  725. <div id="colorTemplate" class="template">
  726. <div class="pure-g">
  727. <label class="pure-u-1 pure-u-sm-1-4">Color</label>
  728. <input class="pure-u-1 pure-u-sm-1-4" data-wcp-layout="block" name="color" readonly />
  729. </div>
  730. <div class="pure-g">
  731. <label class="pure-u-1 pure-u-sm-1-4">Brightness</label>
  732. <div class="slider pure-u-1 pure-u-sm-1-4" id="brightness"></div>
  733. </div>
  734. </div>
  735. <div id="channelTemplate" class="template">
  736. <div class="pure-g">
  737. <label class="pure-u-1 pure-u-sm-1-4">Channel #</label>
  738. <div class="slider channels pure-u-1 pure-u-sm-1-4" data="99"></div>
  739. </div>
  740. </div>
  741. <iframe id="downloader" style="display:none;"></iframe>
  742. <input id="uploader" type="file" style="display:none;" />
  743. </body>
  744. <!-- build:js script.js -->
  745. <script src="jquery-1.12.3.min.js"></script>
  746. <script src="checkboxes.js"></script>
  747. <script src="custom.js"></script>
  748. <script src="jquery.wheelcolorpicker-3.0.2.min.js"></script>
  749. <script src="nouislider.min.js"></script>
  750. <!-- endbuild -->
  751. </html>