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.

994 lines
62 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-hlw module-emon module-v9261f">
  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 id="colorsExtras">
  121. </div>
  122. <div class="pure-g module module-analog">
  123. <label class="pure-u-1 pure-u-sm-1-4" for="analogValue">Analog</label>
  124. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="analogValue" readonly />
  125. </div>
  126. <div class="pure-g module module-counter">
  127. <label class="pure-u-1 pure-u-sm-1-4" for="counterValue">Counts / last minute</label>
  128. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="counterValue" readonly />
  129. </div>
  130. <div class="pure-g module module-ds">
  131. <label class="pure-u-1 pure-u-sm-1-4" for="dsTmp">Temperature (<span id="tmpUnit"></span>)</label>
  132. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="dsTmp" readonly />
  133. </div>
  134. <div class="pure-g module module-dht">
  135. <label class="pure-u-1 pure-u-sm-1-4" for="dhtTmp">Temperature (<span id="tmpUnit"></span>)</label>
  136. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="dhtTmp" readonly />
  137. </div>
  138. <div class="pure-g module module-dht">
  139. <label class="pure-u-1 pure-u-sm-1-4" for="dhtHum">Humidity (%)</label>
  140. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="dhtHum" readonly />
  141. </div>
  142. <div class="pure-g module module-emon module-hlw module-v9261f module-ech1560">
  143. <label class="pure-u-1 pure-u-sm-1-4" for="pwrCurrent">Current</label>
  144. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="pwrCurrent" post=" A" readonly />
  145. </div>
  146. <div class="pure-g module module-emon module-hlw module-v9261f module-ech1560">
  147. <label class="pure-u-1 pure-u-sm-1-4" for="pwrVoltage">Voltage</label>
  148. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="pwrVoltage" post=" V" readonly />
  149. </div>
  150. <div class="pure-g module module-hlw module-v9261f">
  151. <label class="pure-u-1 pure-u-sm-1-4" for="pwrActive">Active Power</label>
  152. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="pwrActive" post=" W" readonly />
  153. </div>
  154. <div class="pure-g module module-emon module-hlw module-v9261f module-ech1560">
  155. <label class="pure-u-1 pure-u-sm-1-4" for="pwrApparent">Apparent Power</label>
  156. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="pwrApparent" post=" VA" readonly />
  157. </div>
  158. <div class="pure-g module module-hlw module-v9261f">
  159. <label class="pure-u-1 pure-u-sm-1-4" for="pwrReactive">Reactive Power</label>
  160. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="pwrReactive" post=" VAR" readonly />
  161. </div>
  162. <div class="pure-g module module-hlw module-v9261f">
  163. <label class="pure-u-1 pure-u-sm-1-4" for="pwrFactor">Power Factor</label>
  164. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="pwrFactor" post="%" readonly />
  165. </div>
  166. <div class="pure-g module module-emon module-hlw module-v9261f module-ech1560">
  167. <label class="pure-u-1 pure-u-sm-1-4" for="pwrEnergy">Energy (Agg)</label>
  168. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="pwrEnergy" post=" J" readonly />
  169. </div>
  170. <div class="pure-u-1 state">
  171. <div class="pure-u-1 pure-u-sm-1-4">Manufacturer</div>
  172. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="manufacturer"></span></div>
  173. <div class="pure-u-1 pure-u-sm-1-4">Device</div>
  174. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="device"></span></div>
  175. <div class="pure-u-1 pure-u-sm-1-4">Chip ID</div>
  176. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="chipid"></span></div>
  177. <div class="pure-u-1 pure-u-sm-1-4">MAC</div>
  178. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="mac"></span></div>
  179. <div class="pure-u-1 pure-u-sm-1-4">Network</div>
  180. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="network"></span></div>
  181. <div class="pure-u-1 pure-u-sm-1-4">IP</div>
  182. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="deviceip"></span></div>
  183. <div class="pure-u-1 pure-u-sm-1-4">ESPurna version</div>
  184. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="version"></span></div>
  185. <div class="pure-u-1 pure-u-sm-1-4">ESPurna build</div>
  186. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="build"></span></div>
  187. <div class="pure-u-1 pure-u-sm-1-4">Current time</div>
  188. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="time"></span></div>
  189. <div class="pure-u-1 pure-u-sm-1-4">Uptime</div>
  190. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="uptime"></span></div>
  191. <div class="pure-u-1 pure-u-sm-1-4">Free heap</div>
  192. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="heap" post=" bytes"></span></div>
  193. <div class="pure-u-1 pure-u-sm-1-4">Firmware size</div>
  194. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="sketch_size" post=" bytes"></span></div>
  195. <div class="pure-u-1 pure-u-sm-1-4">Free space</div>
  196. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="free_size" post=" bytes"></span></div>
  197. <div class="pure-u-1 pure-u-sm-1-4">MQTT Status</div>
  198. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="mqttStatus"></span></div>
  199. <div class="pure-u-1 pure-u-sm-1-4">NTP Status</div>
  200. <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="ntpStatus"></span></div>
  201. </div>
  202. </fieldset>
  203. </form>
  204. </div>
  205. </div>
  206. <form id="formSave" class="pure-form" action="/" method="post" enctype="multipart/form-data">
  207. <input class="pure-u-1 pure-u-sm-3-4" type="hidden" name="webMode" value="0" />
  208. <div class="panel" id="panel-general">
  209. <div class="header">
  210. <h1>GENERAL</h1>
  211. <h2>General configuration values</h2>
  212. </div>
  213. <div class="page">
  214. <fieldset>
  215. <div class="pure-g">
  216. <label class="pure-u-1 pure-u-md-1-4" for="hostname">Hostname</label>
  217. <input name="hostname" class="pure-u-1 pure-u-md-3-4" type="text" tabindex="1" />
  218. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  219. <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>
  220. </div>
  221. <div class="pure-g">
  222. <label class="pure-u-1 pure-u-md-1-4" for="relayMode">Switch boot mode</label>
  223. <div class="pure-u-1 pure-u-md-3-4">
  224. <select name="relayMode" class="pure-u-3-4" tabindex="2">
  225. <option value="0">Always OFF</a>
  226. <option value="1">Always ON</a>
  227. <option value="2">Same as before</a>
  228. <option value="3">Toogle before</a>
  229. </select>
  230. </div>
  231. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  232. <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>
  233. </div>
  234. <div class="pure-g module module-multirelay">
  235. <label class="pure-u-1 pure-u-md-1-4" for="relaySync">Switch sync mode</label>
  236. <div class="pure-u-1 pure-u-md-3-4">
  237. <select name="relaySync" class="pure-u-3-4" tabindex="3">
  238. <option value="0">No synchonisation</a>
  239. <option value="1">Zero or one switches active</a>
  240. <option value="2">One and just one switch active</a>
  241. <option value="3">All synchonised</a>
  242. </select>
  243. </div>
  244. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  245. <div class="pure-u-1 pure-u-md-3-4 hint">Define how the different switches should be synchronized.</div>
  246. </div>
  247. <div class="pure-g">
  248. <label class="pure-u-1 pure-u-md-1-4" for="relayPulseMode">Switch pulse mode</label>
  249. <div class="pure-u-1 pure-u-md-3-4">
  250. <select name="relayPulseMode" class="pure-u-3-4" tabindex="4">
  251. <option value="0">Don't pulse</a>
  252. <option value="1">Normally OFF (stays on for a short time)</a>
  253. <option value="2">Normally ON (stays off for a short time)</a>
  254. </select>
  255. </div>
  256. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  257. <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>
  258. </div>
  259. <div class="pure-g">
  260. <label class="pure-u-1 pure-u-md-1-4" for="relayPulseTime">Switch pulse time</label>
  261. <input name="relayPulseTime" class="pure-u-1 pure-u-md-3-4" type="number" min="0" step="0.1" max="60" tabindex="5" />
  262. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  263. <div class="pure-u-1 pure-u-md-3-4 hint">Pulse time in seconds (maximum value is 60s, accepts decimals).</div>
  264. </div>
  265. <div class="pure-g">
  266. <label class="pure-u-1 pure-u-md-1-4" for="btnDelay">Double click delay</label>
  267. <input name="btnDelay" class="pure-u-1 pure-u-md-3-4" type="number" min="0" step="100" max="1000" tabindex="6" />
  268. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  269. <div class="pure-u-1 pure-u-md-3-4 hint">Delay in milliseconds to detect a double click (from 0 to 1000ms).<br />
  270. The lower this number the faster the device will respond to button clicks but the harder it will be to get a double click.
  271. Increase this number if you are having trouble to double click the button.
  272. 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 />
  273. You will have to <strong>reset the device</strong> after updating for this setting to apply.
  274. </div>
  275. </div>
  276. <div class="pure-g module module-color">
  277. <div class="pure-u-1 pure-u-sm-1-4"><label for="useColor">Use colorpicker</label></div>
  278. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="useColor" tabindex="8" /></div>
  279. <div class="pure-u-0 pure-u-md-1-2">&nbsp;</div>
  280. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  281. <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>
  282. </div>
  283. <div class="pure-g module module-color">
  284. <div class="pure-u-1 pure-u-sm-1-4"><label for="useWhite">Use white channel</label></div>
  285. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="useWhite" tabindex="9" /></div>
  286. <div class="pure-u-0 pure-u-md-1-2">&nbsp;</div>
  287. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  288. <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>
  289. </div>
  290. <div class="pure-g module module-color">
  291. <div class="pure-u-1 pure-u-sm-1-4"><label for="useGamma">Use gamma correction</label></div>
  292. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="useGamma" tabindex="10" /></div>
  293. <div class="pure-u-0 pure-u-md-1-2">&nbsp;</div>
  294. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  295. <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>
  296. </div>
  297. <div class="pure-g module module-alexa">
  298. <div class="pure-u-1 pure-u-sm-1-4"><label for="alexaEnabled">Alexa integration</label></div>
  299. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="alexaEnabled" tabindex="11" /></div>
  300. </div>
  301. <div class="pure-g module module-ha">
  302. <label class="pure-u-1 pure-u-md-1-4" for="haPrefix">Home Assistant Prefix</label>
  303. <input class="pure-u-1 pure-u-md-1-2" name="haPrefix" type="text" tabindex="31" />
  304. <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>
  305. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  306. <div class="pure-u-1 pure-u-md-3-4 hint">Home Assistant auto-discovery feature.</div>
  307. </div>
  308. <div class="pure-g module module-ds module-dht">
  309. <label class="pure-u-1 pure-u-sm-1-4" for="tmpUnits">Temperature units</label>
  310. <div class="pure-u-1 pure-u-sm-1-4"><input type="radio" name="tmpUnits" tabindex="12" value="0"> Celsius (&deg;C)</input></div>
  311. <div class="pure-u-1 pure-u-sm-1-4"><input type="radio" name="tmpUnits" tabindex="13" value="1"> Fahrenheit (&deg;F)</input></div>
  312. </div>
  313. </fieldset>
  314. </div>
  315. </div>
  316. <div class="panel" id="panel-admin">
  317. <div class="header">
  318. <h1>ADMINISTRATION</h1>
  319. <h2>Device administration and security settings</h2>
  320. </div>
  321. <div class="page">
  322. <fieldset>
  323. <div class="pure-g">
  324. <label class="pure-u-1 pure-u-md-1-4" for="adminPass1">Admin password</label>
  325. <input name="adminPass1" class="pure-u-1 pure-u-md-3-4" type="password" tabindex="11" autocomplete="false" />
  326. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  327. <div class="pure-u-1 pure-u-md-3-4 hint">
  328. 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 />
  329. 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>
  330. </div>
  331. <div class="pure-g">
  332. <label class="pure-u-1 pure-u-md-1-4" for="adminPass2">Admin password (repeat)</label>
  333. <input name="adminPass2" class="pure-u-1 pure-u-md-3-4" type="password" tabindex="12" autocomplete="false" />
  334. </div>
  335. <div class="pure-g">
  336. <label class="pure-u-1 pure-u-md-1-4" for="webPort">HTTP port</label>
  337. <input name="webPort" class="pure-u-1 pure-u-md-3-4" type="text" tabindex="13" />
  338. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  339. <div class="pure-u-1 pure-u-md-3-4 hint">
  340. This is the port for the web interface and API requests.<br />
  341. If different than 80 (standard HTTP port) you will have to add it explicitly to your requests: http://myip:myport/
  342. </div>
  343. </div>
  344. <div class="pure-g">
  345. <div class="pure-u-1 pure-u-sm-1-4"><label for="apiEnabled">Enable HTTP API</label></div>
  346. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="apiEnabled" /></div>
  347. </div>
  348. <div class="pure-g">
  349. <label class="pure-u-1 pure-u-md-1-4" for="apiKey">HTTP API Key</label>
  350. <input name="apiKey" class="pure-u-3-4 pure-u-md-1-2" type="text" tabindex="14" />
  351. <div class=" pure-u-1-4 pure-u-md-1-4"><button class="pure-button button-apikey pure-u-23-24">Generate</button></div>
  352. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  353. <div class="pure-u-1 pure-u-md-3-4 hint">
  354. This is the key you will have to pass with every HTTP request to the API, either to get or write values.<br />
  355. All API calls must contain the <strong>apikey</strong> parameter with the value above.<br />
  356. To know what APIs are enabled do a call to <strong>/apis</strong>.
  357. </div>
  358. </div>
  359. <div class="pure-g module module-nofuss">
  360. <div class="pure-u-1 pure-u-sm-1-4"><label for="nofussEnabled">Automatic remote updates (NoFUSS)</label></div>
  361. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="nofussEnabled" /></div>
  362. </div>
  363. <div class="pure-g module module-nofuss">
  364. <label class="pure-u-1 pure-u-md-1-4" for="nofussServer">NoFUSS server</label>
  365. <input name="nofussServer" class="pure-u-1 pure-u-md-3-4" type="text" tabindex="15" />
  366. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  367. <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>
  368. </div>
  369. <div class="pure-g">
  370. <label class="pure-u-1 pure-u-sm-1-4">Settings</label>
  371. <div class="pure-u-1 pure-u-sm-1-8"><button class="pure-button button-settings-backup pure-u-23-24">Backup</button></div>
  372. <div class="pure-u-1 pure-u-sm-1-8"><button class="pure-button button-settings-restore pure-u-23-24">Restore</button></div>
  373. </div>
  374. <div class="pure-g">
  375. <label class="pure-u-1 pure-u-md-1-4">Upgrade</label>
  376. <input class="pure-u-1-2 pure-u-md-1-2" name="filename" type="text" readonly />
  377. <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>
  378. <div class=" pure-u-1-8 pure-u-md-1-8"><button class="pure-button button-upgrade pure-u-23-24">Upgrade</button></div>
  379. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  380. <div class="pure-u-1 pure-u-md-3-4"><progress id="upgrade-progress"></progress></div>
  381. <input name="upgrade" type="file" tabindex="16" />
  382. </div>
  383. </fieldset>
  384. </div>
  385. </div>
  386. <div class="panel" id="panel-wifi">
  387. <div class="header">
  388. <h1>WIFI</h1>
  389. <h2>You can configure up to 5 different WiFi networks. The device will try to connect in order of signal strength.</h2>
  390. </div>
  391. <div class="page">
  392. <fieldset>
  393. <div id="networks">
  394. </div>
  395. <button type="button" class="pure-button button-add-network">Add network</button>
  396. </fieldset>
  397. </div>
  398. </div>
  399. <div class="panel" id="panel-mqtt">
  400. <div class="header">
  401. <h1>MQTT</h1>
  402. <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>
  403. </div>
  404. <div class="page">
  405. <fieldset>
  406. <div class="pure-g">
  407. <div class="pure-u-1 pure-u-sm-1-4"><label for="mqttEnabled">Enable MQTT</label></div>
  408. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="mqttEnabled" tabindex="30" /></div>
  409. </div>
  410. <div class="pure-g">
  411. <label class="pure-u-1 pure-u-md-1-4" for="mqttServer">MQTT Broker</label>
  412. <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" />
  413. </div>
  414. <div class="pure-g">
  415. <label class="pure-u-1 pure-u-md-1-4" for="mqttPort">MQTT Port</label>
  416. <input class="pure-u-1 pure-u-md-3-4" name="mqttPort" type="text" size="6" tabindex="22" value="1883" />
  417. </div>
  418. <div class="pure-g">
  419. <label class="pure-u-1 pure-u-md-1-4" for="mqttUser">MQTT User</label>
  420. <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" />
  421. </div>
  422. <div class="pure-g">
  423. <label class="pure-u-1 pure-u-md-1-4" for="mqttPassword">MQTT Password</label>
  424. <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" />
  425. </div>
  426. <div class="pure-g module module-mqttssl">
  427. <div class="pure-u-1 pure-u-sm-1-4"><label for="mqttUseSSL">Use secure connection (SSL)</label></div>
  428. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="mqttUseSSL" tabindex="25" /></div>
  429. </div>
  430. <div class="pure-g module module-mqttssl">
  431. <label class="pure-u-1 pure-u-md-1-4" for="mqttFP">SSL Fingerprint</label>
  432. <input class="pure-u-1 pure-u-md-3-4" name="mqttFP" type="text" size="59" tabindex="26" />
  433. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  434. <div class="pure-u-1 pure-u-md-3-4 hint">
  435. This is the fingerprint for the SSL certificate of the server.<br />
  436. You can get it using <a href="https://www.grc.com/fingerprints.htm" target="_blank">https://www.grc.com/fingerprints.htm</a><br />
  437. or using openssl from a linux box by typing:<br />
  438. <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>
  439. </div>
  440. </div>
  441. <div class="pure-g">
  442. <label class="pure-u-1 pure-u-md-1-4" for="mqttTopic">MQTT Root Topic</label>
  443. <input class="pure-u-1 pure-u-md-3-4" name="mqttTopic" type="text" size="20" tabindex="27" />
  444. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  445. <div class="pure-u-1 pure-u-md-3-4 hint">
  446. 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 />
  447. - <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 />
  448. <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>
  449. <span class="module module-color">- <strong>&lt;root&gt;/brightness/set</strong> Set the brighness using a value from 0 to 255.<br /></span>
  450. <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>
  451. <span class="module module-color">- <strong>&lt;root&gt;/mired/set</strong> Set the temperature color in mired.<br /></span>
  452. - <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 />
  453. - 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>.
  454. </div>
  455. </div>
  456. <div class="pure-g">
  457. <div class="pure-u-1 pure-u-sm-1-4"><label for="mqttUseJson">Use JSON payload</label></div>
  458. <div class="pure-u-1 pure-u-sm-3-4"><input type="checkbox" name="mqttUseJson" tabindex="26" /></div>
  459. <div class="pure-u-1 pure-u-md-1-4">&nbsp;</div>
  460. <div class="pure-u-1 pure-u-md-3-4 hint">
  461. All messages (except the device status) will be included in a JSON payload along with the timestamp and hostname
  462. and sent under the <strong>&lt;root&gt;/data</strong> topic.<br />
  463. Messages will be queued and sent after 100ms, so different messages could be merged into a single payload.<br />
  464. Subscribtions will still be done to single topics.
  465. </div>
  466. </div>
  467. </fieldset>
  468. </div>
  469. </div>
  470. <div class="panel" id="panel-ntp">
  471. <div class="header">
  472. <h1>NTP</h1>
  473. <h2>Configure your NTP (Network Time Protocol) servers and local configuration to keep your device time up to the second for your location.</h2>
  474. </div>
  475. <div class="page">
  476. <fieldset>
  477. <div class="pure-g">
  478. <label class="pure-u-1 pure-u-md-1-4" for="ntpServer1">NTP Server 1</label>
  479. <input class="pure-u-1 pure-u-md-3-4" name="ntpServer1" type="text" size="20" tabindex="41" />
  480. </div>
  481. <div class="pure-g">
  482. <label class="pure-u-1 pure-u-md-1-4" for="ntpServer2">NTP Server 2</label>
  483. <input class="pure-u-1 pure-u-md-3-4" name="ntpServer2" type="text" size="20" tabindex="42" />
  484. </div>
  485. <div class="pure-g">
  486. <label class="pure-u-1 pure-u-md-1-4" for="ntpServer3">NTP Server 3</label>
  487. <input class="pure-u-1 pure-u-md-3-4" name="ntpServer3" type="text" size="20" tabindex="43" />
  488. </div>
  489. <div class="pure-g">
  490. <label class="pure-u-1 pure-u-sm-1-4" for="ntpOffset">Time offset</label>
  491. <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>
  492. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 for UTC time</div>
  493. </div>
  494. <div class="pure-g">
  495. <div class="pure-u-1 pure-u-sm-1-4"><label for="ntpDST">Enable Daylight Saving Time</label></div>
  496. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="ntpDST" /></div>
  497. </div>
  498. </fieldset>
  499. </div>
  500. </div>
  501. <div class="panel" id="panel-domoticz">
  502. <div class="header">
  503. <h1>DOMOTICZ</h1>
  504. <h2>
  505. Configure the connection to your Domoticz server.
  506. </h2>
  507. </div>
  508. <div class="page">
  509. <fieldset>
  510. <div class="pure-g">
  511. <div class="pure-u-1 pure-u-sm-1-4"><label for="dczEnabled">Enable Domoticz</label></div>
  512. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="dczEnabled" tabindex="30" /></div>
  513. </div>
  514. <div class="pure-g">
  515. <label class="pure-u-1 pure-u-md-1-4" for="dczTopicIn">Domoticz IN Topic</label>
  516. <input class="pure-u-1 pure-u-md-3-4" name="dczTopicIn" type="text" tabindex="31" />
  517. </div>
  518. <div class="pure-g">
  519. <label class="pure-u-1 pure-u-md-1-4" for="dczTopicOut">Domoticz OUT Topic</label>
  520. <input class="pure-u-1 pure-u-md-3-4" name="dczTopicOut" type="text" tabindex="32" />
  521. </div>
  522. <div class="pure-g module module-dht module-ds">
  523. <label class="pure-u-1 pure-u-sm-1-4" for="dczTmpIdx">Temperature IDX</label>
  524. <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>
  525. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  526. </div>
  527. <div class="pure-g module module-dht">
  528. <label class="pure-u-1 pure-u-sm-1-4" for="dczHumIdx">Humidity IDX</label>
  529. <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>
  530. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  531. </div>
  532. <div class="pure-g module module-pwr">
  533. <label class="pure-u-1 pure-u-sm-1-4" for="dczPowIdx">Power IDX</label>
  534. <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>
  535. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  536. </div>
  537. <div class="pure-g module module-pwr">
  538. <label class="pure-u-1 pure-u-sm-1-4" for="dczEnergyIdx">Energy increment IDX</label>
  539. <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>
  540. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  541. </div>
  542. <div class="pure-g module module-pwr">
  543. <label class="pure-u-1 pure-u-sm-1-4" for="dczVoltIdx">Voltage IDX</label>
  544. <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>
  545. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  546. </div>
  547. <div class="pure-g module module-pwr">
  548. <label class="pure-u-1 pure-u-sm-1-4" for="dczCurrentIdx">Current IDX</label>
  549. <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>
  550. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  551. </div>
  552. <div class="pure-g module module-analog">
  553. <label class="pure-u-1 pure-u-sm-1-4" for="dczAnaIdx">Analog IDX</label>
  554. <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>
  555. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  556. </div>
  557. <div id="idxs">
  558. </div>
  559. </fieldset>
  560. </div>
  561. </div>
  562. <div class="panel" id="panel-idb">
  563. <div class="header">
  564. <h1>INFLUXDB</h1>
  565. <h2>
  566. Configure the connection to your InfluxDB server. Leave the host field empty to disable InfluxDB connection.
  567. </h2>
  568. </div>
  569. <div class="page">
  570. <fieldset>
  571. <div class="pure-g">
  572. <label class="pure-u-1 pure-u-md-1-4" for="idbHost">Host</label>
  573. <input class="pure-u-1 pure-u-md-3-4" name="idbHost" type="text" tabindex="41" />
  574. </div>
  575. <div class="pure-g">
  576. <label class="pure-u-1 pure-u-md-1-4" for="idbPort">Port</label>
  577. <input class="pure-u-1 pure-u-md-3-4" name="idbPort" type="text" tabindex="42" />
  578. </div>
  579. <div class="pure-g">
  580. <label class="pure-u-1 pure-u-md-1-4" for="idbDatabase">Database</label>
  581. <input class="pure-u-1 pure-u-md-3-4" name="idbDatabase" type="text" tabindex="43" />
  582. </div>
  583. <div class="pure-g">
  584. <label class="pure-u-1 pure-u-md-1-4" for="idbUsername">Username</label>
  585. <input class="pure-u-1 pure-u-md-3-4" name="idbUsername" type="text" tabindex="44" autocomplete="false" />
  586. </div>
  587. <div class="pure-g">
  588. <label class="pure-u-1 pure-u-md-1-4" for="idbPassword">Password</label>
  589. <input class="pure-u-1 pure-u-md-3-4" name="idbPassword" type="password" tabindex="45" autocomplete="false" />
  590. </div>
  591. </fieldset>
  592. </div>
  593. </div>
  594. <div class="panel" id="panel-power">
  595. <div class="header">
  596. <h1>POWER CALIBRATION</h1>
  597. <h2>
  598. 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.
  599. </h2>
  600. </div>
  601. <div class="page">
  602. <fieldset>
  603. <div class="pure-g module module-hlw module-emon module-v9261f">
  604. <label class="pure-u-1 pure-u-md-1-4" for="pwrExpectedP">AC RMS Active Power</label>
  605. <input class="pure-u-1 pure-u-md-3-4 pwrExpected" name="pwrExpectedP" type="text" size="8" tabindex="51" placeholder="0" />
  606. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  607. <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>
  608. </div>
  609. <div class="pure-g module module-v9261f">
  610. <label class="pure-u-1 pure-u-md-1-4" for="pwrExpectedF">AC Power Factor</label>
  611. <input class="pure-u-1 pure-u-md-3-4 pwrExpected" name="pwrExpectedF" type="text" size="8" tabindex="51" placeholder="0" />
  612. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  613. <div class="pure-u-1 pure-u-md-3-4 hint">In percentage (%). You will need to use a calibrated multimeter to get this value and a mixed resistive and reactive load.</div>
  614. </div>
  615. <div class="pure-g module module-emon module-hlw module-v9261f">
  616. <label class="pure-u-1 pure-u-md-1-4" for="pwrExpectedV">AC RMS Voltage</label>
  617. <input class="pure-u-1 pure-u-md-3-4 pwrExpected" name="pwrExpectedV" type="text" size="8" tabindex="52" placeholder="0" />
  618. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  619. <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>
  620. </div>
  621. <div class="pure-g module module-hlw module-v9261f">
  622. <label class="pure-u-1 pure-u-md-1-4" for="pwrExpectedC">AC RMS Current</label>
  623. <input class="pure-u-1 pure-u-md-3-4 pwrExpected" name="pwrExpectedC" type="text" size="8" tabindex="55" placeholder="0" />
  624. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  625. <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>
  626. </div>
  627. <div class="pure-g module module-hlw module-emon module-v9261f">
  628. <div class="pure-u-1 pure-u-sm-1-4"><label for="pwrResetCalibration">Reset calibration</label></div>
  629. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="pwrResetCalibration" /></div>
  630. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  631. <div class="pure-u-1 pure-u-md-3-4 hint">Move this switch to ON and press "Update" to revert to factory calibration values.</div>
  632. </div>
  633. </fieldset>
  634. </div>
  635. </div>
  636. </form>
  637. <div class="panel" id="panel-rfb">
  638. <div class="header">
  639. <h1>RFBRIDGE</h1>
  640. <h2>
  641. Sonoff 433 RF Bridge Configuration<br /><br />
  642. 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 />
  643. 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 />
  644. Delete any code clicking the <strong>FORGET</strong> button.
  645. </h2>
  646. </div>
  647. <div class="page">
  648. <div id="rfbNodes" />
  649. </div>
  650. </div>
  651. </div> <!-- content -->
  652. </div> <!-- layout -->
  653. <!-- Templates -->
  654. <div id="rfbNodeTemplate" class="template">
  655. <fieldset>
  656. <legend>&nbsp;Switch <span></span>&nbsp;</legend>
  657. <div class="pure-g">
  658. <label class="pure-u-1-2 pure-u-sm-1-4">Switch ON</label>
  659. <input class="pure-u-1-2 pure-u-sm-1-3" type="text" maxlength="18" name="rfbcode" data_id="1" data_status="1" />
  660. <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>
  661. <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>
  662. <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>
  663. </div>
  664. <div class="pure-g">
  665. <label class="pure-u-1-2 pure-u-sm-1-4">Switch OFF</label>
  666. <input class="pure-u-1-2 pure-u-sm-1-3" type="text" maxlength="18" name="rfbcode" data_id="1" data_status="0" />
  667. <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>
  668. <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>
  669. <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>
  670. </div>
  671. </fieldset>
  672. </div>
  673. <div id="networkTemplate" class="template">
  674. <div class="pure-g">
  675. <label class="pure-u-md-1-6 pure-u-1-4" for="ssid">Network SSID</label>
  676. <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>
  677. <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>
  678. <div class="more">
  679. <div class="break"></div>
  680. <label class="pure-u-md-1-6 pure-u-1-4" for="pass">Password</label>
  681. <input class="pure-u-md-5-6 pure-u-3-4" name="pass" type="password" value="" tabindex="0" autocomplete="false" />
  682. <div class="break"></div>
  683. <label class="pure-u-md-1-6 pure-u-1-4" for="ip">Static IP</label>
  684. <input class="pure-u-md-5-6 pure-u-3-4" name="ip" type="text" value="" size="15" tabindex="0" autocomplete="false" />
  685. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  686. <div class="pure-u-md-5-6 pure-u-3-4 hint">Leave empty for DNS negotiation</div>
  687. <label class="pure-u-md-1-6 pure-u-1-4" for="gw">Gateway IP</label>
  688. <input class="pure-u-md-5-6 pure-u-3-4" name="gw" type="text" value="" size="15" tabindex="0" autocomplete="false" />
  689. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  690. <div class="pure-u-md-5-6 pure-u-3-4 hint">Set when using a static IP</div>
  691. <label class="pure-u-md-1-6 pure-u-1-4" for="mask">Network Mask</label>
  692. <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" />
  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">Usually 255.255.255.0 for /24 networks</div>
  695. <label class="pure-u-md-1-6 pure-u-1-4" for="dns">DNS IP</label>
  696. <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" />
  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 the Domain Name Server IP to use when using a static IP</div>
  699. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  700. <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>
  701. </div>
  702. </div>
  703. </div>
  704. <div id="relayTemplate" class="template">
  705. <div class="pure-g">
  706. <div class="pure-u-1 pure-u-sm-1-4"><label>Switch<span class="relay_id"></span> Status</label></div>
  707. <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
  708. </div>
  709. </div>
  710. <div id="idxTemplate" class="template">
  711. <div class="pure-g">
  712. <label class="pure-u-1 pure-u-sm-1-4" for="dczRelayIdx">Switch<span class="id"></span> IDX</label>
  713. <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>
  714. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  715. </div>
  716. </div>
  717. <div id="colorTemplate" class="template">
  718. <div class="pure-g">
  719. <label class="pure-u-1 pure-u-sm-1-4">Color</label>
  720. <input class="pure-u-1 pure-u-sm-1-4" data-wcp-layout="block" name="color" readonly />
  721. </div>
  722. <div class="pure-g">
  723. <label class="pure-u-1 pure-u-sm-1-4">Brightness</label>
  724. <div class="slider pure-u-1 pure-u-sm-1-4" id="brightness"></div>
  725. </div>
  726. </div>
  727. <div id="colorHsvTemplate" class="template">
  728. <div class="pure-g">
  729. <label class="pure-u-1 pure-u-sm-1-4">Color</label>
  730. <input class="pure-u-1 pure-u-sm-1-4" data-wcp-layout="block" name="color" readonly />
  731. </div>
  732. </div>
  733. <div id="colorsExtrasTemplate" class="template">
  734. <div class="pure-g">
  735. <label class="pure-u-1 pure-u-sm-1-4">Mode</label>
  736. <select class="pure-u-1 pure-u-sm-1-4" name="animation" id="animMode">
  737. <option value=0>Single Color</option>
  738. <option value=1>1 - Flash</option>
  739. <option value=2>2 - Strobe</option>
  740. <option value=3>3 - Fade</option>
  741. <option value=4>4 - Smooth</option>
  742. <option value=5>5 - Party</option>
  743. </select>
  744. </div>
  745. <div class="pure-g">
  746. <label class="pure-u-1 pure-u-sm-1-4">Speed</label>
  747. <div class="slider pure-u-1 pure-u-sm-1-4" id="animSpeed"></div>
  748. </div>
  749. </div>
  750. <div id="channelTemplate" class="template">
  751. <div class="pure-g">
  752. <label class="pure-u-1 pure-u-sm-1-4">Channel #</label>
  753. <div class="slider channels pure-u-1 pure-u-sm-1-4" data="99"></div>
  754. </div>
  755. </div>
  756. <iframe id="downloader" style="display:none;"></iframe>
  757. <input id="uploader" type="file" style="display:none;" />
  758. </body>
  759. <!-- build:js script.js -->
  760. <script src="jquery-1.12.3.min.js"></script>
  761. <script src="checkboxes.js"></script>
  762. <script src="custom.js"></script>
  763. <script src="jquery.wheelcolorpicker-3.0.2.min.js"></script>
  764. <script src="nouislider.min.js"></script>
  765. <!-- endbuild -->
  766. </html>