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.

560 lines
33 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>ESPurna 0.0.0</title>
  5. <meta charset="utf-8" />
  6. <link rel="shortcut icon" type="image/x-icon" href="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. <!-- endbuild -->
  15. </head>
  16. <body>
  17. <div id="layout">
  18. <a href="#menu" id="menuLink" class="menu-link">
  19. <span></span>
  20. </a>
  21. <div id="menu">
  22. <div class="pure-menu">
  23. <span class="pure-menu-heading">ESPurna 0.0.0</span>
  24. <ul class="pure-menu-list">
  25. <li class="pure-menu-item">
  26. <a href="#" class="pure-menu-link" data="panel-status">STATUS</a>
  27. </li>
  28. <li class="pure-menu-item">
  29. <a href="#" class="pure-menu-link" data="panel-general">GENERAL</a>
  30. </li>
  31. <li class="pure-menu-item">
  32. <a href="#" class="pure-menu-link" data="panel-security">SECURITY</a>
  33. </li>
  34. <li class="pure-menu-item">
  35. <a href="#" class="pure-menu-link" data="panel-wifi">WIFI</a>
  36. </li>
  37. <li class="pure-menu-item">
  38. <a href="#" class="pure-menu-link" data="panel-mqtt">MQTT</a>
  39. </li>
  40. <li class="pure-menu-item module module-dcz">
  41. <a href="#" class="pure-menu-link" data="panel-domoticz">DOMOTICZ</a>
  42. </li>
  43. <li class="pure-menu-item module module-pow">
  44. <a href="#" class="pure-menu-link" data="panel-power">POWER</a>
  45. </li>
  46. </ul>
  47. <div class="main-buttons">
  48. <button class="pure-button button-update">Update</button>
  49. <button class="pure-button button-reconnect">Reconnect</button>
  50. <button class="pure-button button-reset">Reset</button>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="content">
  55. <div class="panel" id="panel-status" style="display: block;">
  56. <div class="header">
  57. <h1>STATUS</h1>
  58. <h2>Current configuration</h2>
  59. </div>
  60. <div class="page">
  61. <form class="pure-form pure-form-aligned">
  62. <fieldset>
  63. <div class="pure-g">
  64. <label class="pure-u-1 pure-u-sm-1-4" for="manufacturer">Manufacturer</label>
  65. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="manufacturer" readonly />
  66. </div>
  67. <div class="pure-g">
  68. <label class="pure-u-1 pure-u-sm-1-4" for="device">Device</label>
  69. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="device" readonly />
  70. </div>
  71. <div class="pure-g">
  72. <label class="pure-u-1 pure-u-sm-1-4" for="chipid">Chip ID</label>
  73. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="chipid" readonly />
  74. </div>
  75. <div class="pure-g">
  76. <label class="pure-u-1 pure-u-sm-1-4" for="mac">MAC</label>
  77. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="mac" readonly />
  78. </div>
  79. <div class="pure-g">
  80. <label class="pure-u-1 pure-u-sm-1-4" for="network">Network</label>
  81. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="network" readonly />
  82. </div>
  83. <div class="pure-g">
  84. <label class="pure-u-1 pure-u-sm-1-4" for="deviceip">IP</label>
  85. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="deviceip" readonly />
  86. </div>
  87. <div class="pure-g">
  88. <label class="pure-u-1 pure-u-sm-1-4" for="mqtt">MQTT Status</label>
  89. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="mqttStatus" readonly />
  90. </div>
  91. <div class="pure-g module module-ds">
  92. <label class="pure-u-1 pure-u-sm-1-4" for="dsTmp">Temperature (ºC)</label>
  93. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="dsTmp" readonly />
  94. </div>
  95. <div class="pure-g module module-dht">
  96. <label class="pure-u-1 pure-u-sm-1-4" for="dhtTmp">Temperature (ºC)</label>
  97. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="dhtTmp" readonly />
  98. </div>
  99. <div class="pure-g module module-dht">
  100. <label class="pure-u-1 pure-u-sm-1-4" for="dhtHum">Humidity (%)</label>
  101. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="dhtHum" readonly />
  102. </div>
  103. <div class="pure-g module module-pow">
  104. <label class="pure-u-1 pure-u-sm-1-4" for="powActivePower">Active Power (W)</label>
  105. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powActivePower" readonly />
  106. </div>
  107. <div class="pure-g module module-pow module-emon">
  108. <label class="pure-u-1 pure-u-sm-1-4" for="powApparentPower">Apparent Power (W)</label>
  109. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powApparentPower" readonly />
  110. </div>
  111. <div class="pure-g module module-pow">
  112. <label class="pure-u-1 pure-u-sm-1-4" for="powReactivePower">Reactive Power (W)</label>
  113. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powReactivePower" readonly />
  114. </div>
  115. <div class="pure-g module module-pow">
  116. <label class="pure-u-1 pure-u-sm-1-4" for="powCurrent">Current (A)</label>
  117. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powCurrent" readonly />
  118. </div>
  119. <div class="pure-g module module-pow">
  120. <label class="pure-u-1 pure-u-sm-1-4" for="powVoltage">Voltage (V)</label>
  121. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powVoltage" readonly />
  122. </div>
  123. <div class="pure-g module module-pow">
  124. <label class="pure-u-1 pure-u-sm-1-4" for="powPowerFactor">Power Factor (%)</label>
  125. <input class="pure-u-1 pure-u-sm-3-4" type="text" name="powPowerFactor" readonly />
  126. </div>
  127. <div id="relays">
  128. </div>
  129. </fieldset>
  130. </form>
  131. </div>
  132. </div>
  133. <form id="formSave" class="pure-form" action="/" method="post">
  134. <div class="panel" id="panel-general">
  135. <div class="header">
  136. <h1>GENERAL</h1>
  137. <h2>General configuration values</h2>
  138. </div>
  139. <div class="page">
  140. <fieldset>
  141. <div class="pure-g">
  142. <label class="pure-u-1 pure-u-md-1-4" for="hostname">Hostname</label>
  143. <input name="hostname" class="pure-u-1 pure-u-md-3-4" type="text" tabindex="1" />
  144. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  145. <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>
  146. </div>
  147. <div class="pure-g">
  148. <label class="pure-u-1 pure-u-md-1-4" for="relayMode">Relay boot mode</label>
  149. <div class="pure-u-1 pure-u-md-3-4">
  150. <select name="relayMode" class="pure-u-3-4" tabindex="2">
  151. <option value="0">Always OFF</a>
  152. <option value="1">Always ON</a>
  153. <option value="2">Same as before</a>
  154. <option value="3">Toogle before</a>
  155. </select>
  156. </div>
  157. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  158. <div class="pure-u-1 pure-u-md-3-4 hint">Here you can define what will be the status of the relay after a reboot.</div>
  159. </div>
  160. <div class="pure-g module module-multirelay">
  161. <label class="pure-u-1 pure-u-md-1-4" for="relaySync">Relay sync mode</label>
  162. <div class="pure-u-1 pure-u-md-3-4">
  163. <select name="relaySync" class="pure-u-3-4" tabindex="3">
  164. <option value="0">No synchonisation</a>
  165. <option value="1">Zero or one relays active</a>
  166. <option value="2">One and just one relay active</a>
  167. <option value="3">All synchonised</a>
  168. </select>
  169. </div>
  170. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  171. <div class="pure-u-1 pure-u-md-3-4 hint">Define how the different relays should be synchronized.</div>
  172. </div>
  173. <div class="pure-g">
  174. <label class="pure-u-1 pure-u-md-1-4" for="relayPulseMode">Relay pulse mode</label>
  175. <div class="pure-u-1 pure-u-md-3-4">
  176. <select name="relayPulseMode" class="pure-u-3-4" tabindex="4">
  177. <option value="0">Don't pulse</a>
  178. <option value="1">Normally OFF (stays on for a short time)</a>
  179. <option value="2">Normally ON (stays off for a short time)</a>
  180. </select>
  181. </div>
  182. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  183. <div class="pure-u-1 pure-u-md-3-4 hint">When pulse mode is enabled the relay will automatically switch back to its normal state after the pulse time (below).</div>
  184. </div>
  185. <div class="pure-g">
  186. <label class="pure-u-1 pure-u-md-1-4" for="relayPulseTime">Relay pulse time</label>
  187. <input name="relayPulseTime" class="pure-u-1 pure-u-md-3-4" type="number" min="1" tabindex="5" />
  188. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  189. <div class="pure-u-1 pure-u-md-3-4 hint">Pulse time in seconds.</div>
  190. </div>
  191. <div class="pure-g module module-fauxmo">
  192. <div class="pure-u-1 pure-u-sm-1-4"><label for="fauxmoEnabled">Alexa integration</label></div>
  193. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="fauxmoEnabled" tabindex="6" /></div>
  194. </div>
  195. </fieldset>
  196. </div>
  197. </div>
  198. <div class="panel" id="panel-security">
  199. <div class="header">
  200. <h1>SECURITY</h1>
  201. <h2>Device security settings</h2>
  202. </div>
  203. <div class="page">
  204. <fieldset>
  205. <div class="pure-g">
  206. <label class="pure-u-1 pure-u-md-1-4" for="adminPass1">Admin password</label>
  207. <input name="adminPass1" class="pure-u-1 pure-u-md-3-4" type="password" tabindex="11" />
  208. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  209. <div class="pure-u-1 pure-u-md-3-4 hint">
  210. 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 />
  211. 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>
  212. </div>
  213. <div class="pure-g">
  214. <label class="pure-u-1 pure-u-md-1-4" for="adminPass2">Admin password (repeat)</label>
  215. <input name="adminPass2" class="pure-u-1 pure-u-md-3-4" type="password" tabindex="12" />
  216. </div>
  217. <div class="pure-g">
  218. <div class="pure-u-1 pure-u-sm-1-4"><label for="apiEnabled">Enable HTTP API</label></div>
  219. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="apiEnabled" /></div>
  220. </div>
  221. <div class="pure-g">
  222. <label class="pure-u-1 pure-u-md-1-4" for="apiKey">HTTP API Key</label>
  223. <input name="apiKey" class="pure-u-3-4 pure-u-md-1-2" type="text" tabindex="13" />
  224. <div class=" pure-u-1-4 pure-u-md-1-4"><button class="pure-button button-apikey pure-u-23-24">Generate</button></div>
  225. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  226. <div class="pure-u-1 pure-u-md-3-4 hint">
  227. This is the key you will have to pass with every HTTP request to the API, either to get or write values.<br />
  228. All API calls must contain the <strong>apikey</strong> parameter with the value above.<br />
  229. To know what APIs are enabled do a call to <strong>/apis</strong>.
  230. </div>
  231. </div>
  232. </fieldset>
  233. </div>
  234. </div>
  235. <div class="panel" id="panel-wifi">
  236. <div class="header">
  237. <h1>WIFI</h1>
  238. <h2>You can configure up to 5 different WiFi networks. The device will try to connect in order of signal strength.</h2>
  239. </div>
  240. <div class="page">
  241. <fieldset>
  242. <div id="networks">
  243. </div>
  244. <button type="button" class="pure-button button-add-network">Add network</button>
  245. </fieldset>
  246. </div>
  247. </div>
  248. <div class="panel" id="panel-mqtt">
  249. <div class="header">
  250. <h1>MQTT</h1>
  251. <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>
  252. </div>
  253. <div class="page">
  254. <fieldset>
  255. <div class="pure-g">
  256. <label class="pure-u-1 pure-u-md-1-4" for="mqttServer">MQTT Server</label>
  257. <input class="pure-u-1 pure-u-md-3-4" name="mqttServer" type="text" size="20" tabindex="21" placeholder="MQTT Server" />
  258. </div>
  259. <div class="pure-g">
  260. <label class="pure-u-1 pure-u-md-1-4" for="mqttPort">MQTT Port</label>
  261. <input class="pure-u-1 pure-u-md-3-4" name="mqttPort" type="text" size="6" tabindex="22" placeholder="1883" />
  262. </div>
  263. <div class="pure-g">
  264. <label class="pure-u-1 pure-u-md-1-4" for="mqttUser">MQTT User</label>
  265. <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" />
  266. </div>
  267. <div class="pure-g">
  268. <label class="pure-u-1 pure-u-md-1-4" for="mqttPassword">MQTT Password</label>
  269. <input class="pure-u-1 pure-u-md-3-4" name="mqttPassword" type="text" size="20" tabindex="24" placeholder="Leave blank if no user/pass" />
  270. </div>
  271. <div class="pure-g">
  272. <label class="pure-u-1 pure-u-md-1-4" for="mqttTopic">MQTT Root Topic</label>
  273. <input class="pure-u-1 pure-u-md-3-4" name="mqttTopic" type="text" size="20" tabindex="25" />
  274. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  275. <div class="pure-u-1 pure-u-md-3-4 hint">
  276. This is the root topic for this device. The {identifier} placeholder will be replaces by the device hostname.<br />
  277. - <strong>&lt;root&gt;/relay/#</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 relay ID (starting from 0). If the board has only one relay it will be 0.<br />
  278. - <strong>&lt;root&gt;/led/#</strong> Send a 0 or a 1 as a payload to this topic to set the onboard LED to the given state, send a 3 to turn it back to WIFI indicator. Replace # with the LED ID (starting from 0). If the board has only one LED it will be 0.<br />
  279. - <strong>&lt;root&gt;/button/#</strong> For each button in the board subscribe to this topic to know when it is pressed (payload 1) or released (payload 0).<br />
  280. - <strong>&lt;root&gt;/ip</strong> The device will report to this topic its IP.<br />
  281. - <strong>&lt;root&gt;/version</strong> The device will report to this topic its firmware version on boot.<br />
  282. - <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.
  283. </div>
  284. </div>
  285. </fieldset>
  286. </div>
  287. </div>
  288. <div class="panel" id="panel-domoticz">
  289. <div class="header">
  290. <h1>DOMOTICZ</h1>
  291. <h2>
  292. Configure the connection to your Domoticz server.
  293. </h2>
  294. </div>
  295. <div class="page">
  296. <fieldset>
  297. <div class="pure-g">
  298. <label class="pure-u-1 pure-u-md-1-4" for="dczTopicIn">Domoticz IN Topic</label>
  299. <input class="pure-u-1 pure-u-md-3-4" name="dczTopicIn" type="text" tabindex="31" placeholder="domoticz/in" />
  300. </div>
  301. <div class="pure-g">
  302. <label class="pure-u-1 pure-u-md-1-4" for="dczTopicOut">Domoticz OUT Topic</label>
  303. <input class="pure-u-1 pure-u-md-3-4" name="dczTopicOut" type="text" tabindex="32" placeholder="domoticz/out" />
  304. </div>
  305. <div class="pure-g module module-dht module-ds">
  306. <label class="pure-u-1 pure-u-sm-1-4" for="dczTmpIdx">Temperature IDX</label>
  307. <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>
  308. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  309. </div>
  310. <div class="pure-g module module-dht">
  311. <label class="pure-u-1 pure-u-sm-1-4" for="dczHumIdx">Humidity IDX</label>
  312. <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>
  313. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  314. </div>
  315. <div class="pure-g module module-pow module-emon">
  316. <label class="pure-u-1 pure-u-sm-1-4" for="dczPowIdx">Power IDX</label>
  317. <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>
  318. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  319. </div>
  320. <div class="pure-g module module-pow module-emon">
  321. <label class="pure-u-1 pure-u-sm-1-4" for="dczEnergyIdx">Energy increment IDX</label>
  322. <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>
  323. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  324. </div>
  325. <div class="pure-g module module-pow module-emon">
  326. <label class="pure-u-1 pure-u-sm-1-4" for="dczVoltIdx">Voltage IDX</label>
  327. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24" name="dczVoltIdx" type="number" min="0" tabindex="36" data="0" /></div>
  328. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  329. </div>
  330. <div class="pure-g module module-pow module-emon">
  331. <label class="pure-u-1 pure-u-sm-1-4" for="dczCurrentIdx">Current IDX</label>
  332. <div class="pure-u-1 pure-u-sm-1-8"><input class="pure-u-sm-23-24" name="dczCurrentIdx" type="number" min="0" tabindex="36" data="0" /></div>
  333. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  334. </div>
  335. <div id="idxs">
  336. </div>
  337. </fieldset>
  338. </div>
  339. </div>
  340. <div class="panel" id="panel-power">
  341. <div class="header">
  342. <h1>POWER</h1>
  343. <h2>
  344. 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.
  345. </h2>
  346. </div>
  347. <div class="page">
  348. <fieldset>
  349. <div class="pure-g">
  350. <label class="pure-u-1 pure-u-md-1-4" for="powExpectedPower">AC RMS Active Power</label>
  351. <input class="pure-u-1 pure-u-md-3-4 powExpected" name="powExpectedPower" type="text" size="8" tabindex="51" placeholder="0" />
  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">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>
  354. </div>
  355. <div class="pure-g">
  356. <label class="pure-u-1 pure-u-md-1-4" for="powExpectedVoltage">AC RMS Voltage</label>
  357. <input class="pure-u-1 pure-u-md-3-4 powExpected" name="powExpectedVoltage" type="text" size="8" tabindex="52" placeholder="0" />
  358. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  359. <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>
  360. </div>
  361. <div class="pure-g">
  362. <label class="pure-u-1 pure-u-md-1-4" for="powExpectedCurrent">AC RMS Current</label>
  363. <input class="pure-u-1 pure-u-md-3-4 powExpected" name="powExpectedCurrent" type="text" size="8" tabindex="55" placeholder="0" />
  364. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  365. <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>
  366. </div>
  367. <div class="pure-g">
  368. <div class="pure-u-1 pure-u-sm-1-4"><label for="powExpectedReset">Reset calibration</label></div>
  369. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" name="powExpectedReset" /></div>
  370. <div class="pure-u-0 pure-u-md-1-4">&nbsp;</div>
  371. <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>
  372. </div>
  373. </fieldset>
  374. </div>
  375. </div>
  376. </form>
  377. </div> <!-- content -->
  378. </div> <!-- layout -->
  379. <!-- Templates -->
  380. <div id="networkTemplate" class="template">
  381. <div class="pure-g">
  382. <label class="pure-u-md-1-6 pure-u-1-4" for="ssid">Network SSID</label>
  383. <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 /></div>
  384. <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>
  385. <div class="more">
  386. <div class="break"></div>
  387. <label class="pure-u-md-1-6 pure-u-1-4" for="pass">Password</label>
  388. <input class="pure-u-md-5-6 pure-u-3-4" name="pass" type="password" value="" tabindex="0" />
  389. <div class="break"></div>
  390. <label class="pure-u-md-1-6 pure-u-1-4" for="ip">Static IP</label>
  391. <input class="pure-u-md-5-6 pure-u-3-4" name="ip" type="text" value="" size="15" tabindex="0" />
  392. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  393. <div class="pure-u-md-5-6 pure-u-3-4 hint">Leave empty for DNS negotiation</div>
  394. <label class="pure-u-md-1-6 pure-u-1-4" for="gw">Gateway IP</label>
  395. <input class="pure-u-md-5-6 pure-u-3-4" name="gw" type="text" value="" size="15" tabindex="0" />
  396. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  397. <div class="pure-u-md-5-6 pure-u-3-4 hint">Set when using a static IP</div>
  398. <label class="pure-u-md-1-6 pure-u-1-4" for="mask">Network Mask</label>
  399. <input class="pure-u-md-5-6 pure-u-3-4" name="mask" type="text" value="" size="15" tabindex="0" placeholder="255.255.255.0" />
  400. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  401. <div class="pure-u-md-5-6 pure-u-3-4 hint">Usually 255.255.255.0 for /24 networks</div>
  402. <label class="pure-u-md-1-6 pure-u-1-4" for="dns">DNS IP</label>
  403. <input class="pure-u-md-5-6 pure-u-3-4" name="dns" type="text" value="" size="15" tabindex="0" placeholder="8.8.8.8" />
  404. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  405. <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>
  406. <div class="pure-u-md-1-6 pure-u-1-4"></div>
  407. <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>
  408. </div>
  409. </div>
  410. </div>
  411. <div id="relayTemplate" class="template">
  412. <div class="pure-g">
  413. <label class="pure-u-1 pure-u-sm-1-4">Relay<span class="relay_id"></span> Status</label>
  414. <div class="pure-u-1 pure-u-sm-1-4"><input type="checkbox" class="relayStatus" data="0" /></div>
  415. </div>
  416. </div>
  417. <div id="idxTemplate" class="template">
  418. <div class="pure-g">
  419. <label class="pure-u-1 pure-u-sm-1-4" for="dczRelayIdx">Relay<span class="id"></span> IDX</label>
  420. <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>
  421. <div class="pure-u-1 pure-u-sm-5-8 hint center">Set to 0 to disable notifications.</div>
  422. </div>
  423. </div>
  424. </body>
  425. <!-- build:js script.js -->
  426. <script src="jquery-1.12.3.min.js"></script>
  427. <script src="checkboxes.js"></script>
  428. <script src="custom.js"></script>
  429. <!-- endbuild -->
  430. </html>