Browse Source

Using 'post' particles in web interface

fastled
Xose Pérez 7 years ago
parent
commit
d7bb924c1c
4 changed files with 2931 additions and 2938 deletions
  1. BIN
      code/espurna/data/index.html.gz
  2. +2928
    -2929
      code/espurna/static/index.html.gz.h
  3. +0
    -6
      code/html/custom.js
  4. +3
    -3
      code/html/index.html

BIN
code/espurna/data/index.html.gz View File


+ 2928
- 2929
code/espurna/static/index.html.gz.h
File diff suppressed because it is too large
View File


+ 0
- 6
code/html/custom.js View File

@ -542,12 +542,6 @@ function processData(data) {
data[key] = days + 'd ' + ("00" + hours).slice(-2) + 'h ' + ("00" + minutes).slice(-2) + 'm ' + ("00" + seconds).slice(-2) + 's'; data[key] = days + 'd ' + ("00" + hours).slice(-2) + 'h ' + ("00" + minutes).slice(-2) + 'm ' + ("00" + seconds).slice(-2) + 's';
} }
if (key == "time") data[key] = data[key].replace('T', ' ');
if (key == "heap") data[key] = data[key] + ' bytes';
if (key == "sketch_size") data[key] = data[key] + ' bytes';
if (key == "free_size") data[key] = data[key] + ' bytes';
if (key == "useWhite") { if (key == "useWhite") {
useWhite = data[key]; useWhite = data[key];
} }


+ 3
- 3
code/html/index.html View File

@ -258,13 +258,13 @@
<div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="uptime"></span></div> <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="uptime"></span></div>
<div class="pure-u-1 pure-u-sm-1-4">Free heap</div> <div class="pure-u-1 pure-u-sm-1-4">Free heap</div>
<div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="heap"></span></div>
<div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="heap" post=" bytes"></span></div>
<div class="pure-u-1 pure-u-sm-1-4">Firmware size</div> <div class="pure-u-1 pure-u-sm-1-4">Firmware size</div>
<div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="sketch_size"></span></div>
<div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="sketch_size" post=" bytes"></span></div>
<div class="pure-u-1 pure-u-sm-1-4">Free space</div> <div class="pure-u-1 pure-u-sm-1-4">Free space</div>
<div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="free_size"></span></div>
<div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="free_size" post=" bytes"></span></div>
<div class="pure-u-1 pure-u-sm-1-4">MQTT Status</div> <div class="pure-u-1 pure-u-sm-1-4">MQTT Status</div>
<div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="mqttStatus"></span></div> <div class="pure-u-1 pure-u-sm-17-24"><span class="right" name="mqttStatus"></span></div>


Loading…
Cancel
Save