|
@@ -8,16 +8,16 @@
|
|
|
<title>SqueezeESP32</title>
|
|
|
|
|
|
</head>
|
|
|
-
|
|
|
-<body>
|
|
|
+
|
|
|
+<body class="d-flex flex-column">
|
|
|
<div style="display:none">
|
|
|
- <% if (htmlWebpackPlugin.files.sprites) { %>
|
|
|
- <% for (var spriteFileName in htmlWebpackPlugin.files.sprites) { %>
|
|
|
- <%= htmlWebpackPlugin.files.sprites[spriteFileName] %>
|
|
|
- <% } %>
|
|
|
- <% } %>
|
|
|
- </div>
|
|
|
- <nav class="navbar navbar-expand-sm navbar-dark bg-primary" id="mainnav">
|
|
|
+ <% if (htmlWebpackPlugin.files.sprites) { %>
|
|
|
+ <% for (var spriteFileName in htmlWebpackPlugin.files.sprites) { %>
|
|
|
+ <%= htmlWebpackPlugin.files.sprites[spriteFileName] %>
|
|
|
+ <% } %>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ <header class="navbar navbar-expand-sm navbar-dark bg-primary sticky-top border-bottom border-dark" id="mainnav">
|
|
|
<a class="navbar-brand" id="navtitle" href="#">SqueezeESP32</a>
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
|
|
|
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
@@ -40,19 +40,19 @@
|
|
|
|
|
|
</div>
|
|
|
<div class="info navbar-right" style="display: inline-flex;">
|
|
|
- <svg class="recovery_element bg-primary" style="fill:orange; width:1.5rem; height: 1.5rem;">
|
|
|
+ <svg class="recovery_element " style="fill:orange; width:1.5rem; height: 1.5rem;">
|
|
|
<use xlink:href="#device-recover-fill"></use>
|
|
|
</svg>
|
|
|
|
|
|
<svg style="fill:white; width:1.5rem; height: 1.5rem;">
|
|
|
<use id="battery" xlink:href="#battery-fill"></use>
|
|
|
</svg>
|
|
|
- <svg id="o_jack" style="fill:white; width:1.5rem; height: 1.5rem;">
|
|
|
- <use xlink:href="#headphone-fill"></use>
|
|
|
+ <svg id="o_jack" style="fill:white; width:1.5rem; height: 1.5rem;">
|
|
|
+ <use xlink:href="#headphone-fill"></use>
|
|
|
+ </svg>
|
|
|
+ <svg style="fill:white; width:1.5rem; height: 1.5rem;">
|
|
|
+ <use id="o_bt" xlink:href="#bluetooth-fill"></use>
|
|
|
</svg>
|
|
|
- <svg style="fill:white; width:1.5rem; height: 1.5rem;">
|
|
|
- <use id="o_bt" xlink:href="#bluetooth-fill"></use>
|
|
|
- </svg>
|
|
|
<span data-toggle="tooltip" id="o_type" data-placement="top" title=""><svg
|
|
|
xmlns="http://www.w3.org/2000/svg" id="output" width="24" height="24" viewBox="0 0 24 24">
|
|
|
<g id="o_i2s" display="none">
|
|
@@ -70,370 +70,441 @@
|
|
|
d="M3 14L3 15L3 16L3 17L3 18L3 19L3 20L3 21L3 22L4 22L5 22L6 22L7 22L7 21L8 21L8 20L9 20L9 19L9 18L9 17L9 16L8 16L8 15L7 15L7 14L6 14L5 14L3 14z" />
|
|
|
</g>
|
|
|
</svg></span>
|
|
|
- <svg style="fill:white; width:1.5rem; height: 1.5rem;">
|
|
|
- <use id="wifiStsIcon" xlink:href="#signal-wifi-fill"></use>
|
|
|
- </svg>
|
|
|
-
|
|
|
+ <svg style="fill:white; width:1.5rem; height: 1.5rem;">
|
|
|
+ <use id="wifiStsIcon" xlink:href="#signal-wifi-fill"></use>
|
|
|
+ </svg>
|
|
|
|
|
|
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </header>
|
|
|
+ <main role="main" class="flex-grow mt-1 mb-5" id="content">
|
|
|
+ <!-- Button trigger modal -->
|
|
|
+
|
|
|
+ <!-- Modal -->
|
|
|
+ <div class="modal fade" id="otadiv" tabindex="-1" role="dialog" aria-labelledby="fwProgressLabel" aria-hidden="true">
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title" id="fwProgressLabel">Upgrade Progress</h5>
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
+ <span aria-hidden="true">×</span>
|
|
|
+ </button>
|
|
|
</div>
|
|
|
- </nav>
|
|
|
- <div id="message"></div>
|
|
|
- <div id="content">
|
|
|
- <div id="myTabContent" class="tab-content mt-3">
|
|
|
+ <div class="modal-body">
|
|
|
+ <span id="flash-status"></span>
|
|
|
+ <div class="progress" id="progress">
|
|
|
+ <div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" style="width:0%">
|
|
|
+ 0%
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div id="myTabContent" class="tab-content">
|
|
|
+
|
|
|
<div class="tab-pane fade" id="tab-cfg-hw"></div>
|
|
|
<div class="tab-pane fade" id="tab-cfg-syst"></div>
|
|
|
<div class="tab-pane fade" id="tab-cfg-gen"></div>
|
|
|
<div class="tab-pane fade" id="tab-cfg-fw">
|
|
|
- <div id="boot-div">
|
|
|
- <form id="boot-form" action="/recovery.json" method="post" target="dummyframe">
|
|
|
- <button id="boot-button" type="submit" class="btn btn-primary">Recovery</button>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- <h1>Check for firmware upgrade</h1>
|
|
|
- <div class="buttons">
|
|
|
- <input type="button" id="fwcheck" class="btn btn-info" value="Check for updates" />
|
|
|
- </div>
|
|
|
- <div id="searchfw" class="form-group">
|
|
|
- <select class="custom-select" id="fwbranch">
|
|
|
- <option selected="">Choose FW branch</option>
|
|
|
- </select>
|
|
|
- <input class="form-control form-control-sm" id="searchinput" type="text"
|
|
|
- placeholder="search releases" id="inputSmall">
|
|
|
- </div>
|
|
|
- <table class="table table-hover">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th scope="col">Firmware version</th>
|
|
|
- <th scope="col">Release date/time</th>
|
|
|
- <th scope="col">HW platform</th>
|
|
|
- <th scope="col">IDF version</th>
|
|
|
- <th scope="col">Branch</th>
|
|
|
- <th scope="col">Flash this FW</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="releaseTable">
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <h2>Firmware URL:</h2>
|
|
|
- <textarea id="fwurl" maxlength="1000"></textarea>
|
|
|
- <div class="buttons">
|
|
|
- <input type="button" id="flash" class="btn btn-danger" value="Flash!" /><span
|
|
|
- id="flash-status"></span>
|
|
|
- </div>
|
|
|
- <div id="uploaddiv" class="recovery_element">
|
|
|
- <p>OR</p>
|
|
|
- <div class="form-group">
|
|
|
- <input type="file" class="form-control-file" id="flashfilename" aria-describedby="fileHelp">
|
|
|
- <div class="buttons">
|
|
|
- <button type="button" class="btn btn-danger" id="fwUpload">Upload!</button>
|
|
|
+
|
|
|
+ <div class="card text-white mb-3">
|
|
|
+ <div class="card-header">Software Updates</div>
|
|
|
+ <div class="card-body">
|
|
|
+ <table class="table table-hover table-striped table-dark">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th class="border-bottom-0 pb-0" scope="col">Version</th>
|
|
|
+ <th class="border-bottom-0 pb-0" scope="col">Date/Time</th>
|
|
|
+ <th class="border-bottom-0 pb-0" scope="col">Platform</th>
|
|
|
+ <th class="border-bottom-0 pb-0" scope="col">Branch</th>
|
|
|
+ <th class="border-bottom-0 pb-0" scope="col">Bit Depth</th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="border-top-0 pt-0" scope="col"><input class="form-control-sm upSrch"
|
|
|
+ id="svrs" type="text" placeholder="search releases"></th>
|
|
|
+ <th class="border-top-0 pt-0" scope="col"></th>
|
|
|
+ <th class="border-top-0 pt-0" scope="col"><input class="form-control-sm upSrch"
|
|
|
+ id="splf" type="text" placeholder="search platform"></th>
|
|
|
+ <th class="border-top-0 pt-0" scope="col"><select class="form-control-sm upSrch"
|
|
|
+ id="fwbranch">
|
|
|
+ <option selected="">Choose FW branch</option>
|
|
|
+ </select>
|
|
|
+ <th class="border-top-0 pt-0" scope="col"><input class="form-control-sm upSrch"
|
|
|
+ id="bits" type="text" placeholder="search bit depth"></th>
|
|
|
+ </th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="rTable"></tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <div class="form-group row">
|
|
|
+ <div class="col-auto">
|
|
|
+ <button type="button" id="chkUpdates" class="btn btn-info btn-sm">Check for
|
|
|
+ updates</button>
|
|
|
+ </div>
|
|
|
+ <label class="col-auto col-form-label" for="fw-url-input">Firmware URL</label>
|
|
|
+ <div class="col">
|
|
|
+ <input type="text" class="form-control"
|
|
|
+ placeholder="select entry from list or enter known url" id="fw-url-input">
|
|
|
+ </div>
|
|
|
+ <div class="col-auto">
|
|
|
+ <button type="button" id='start-flash' data-toggle="modal" data-target="#uCnfrm"
|
|
|
+ class="btn btn-warning btn-sm" style="display: none;">Flash Firmware</button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="otadiv" class="recovery_element">
|
|
|
- <div class="progress" id="progress">
|
|
|
- <div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100"
|
|
|
- style="width:0%">
|
|
|
- 0%
|
|
|
+ <div class="modal" id="uCnfrm">
|
|
|
+ <div class="modal-dialog modal-dialog-centered" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title">Firmware Flash</h5>
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
+ <span aria-hidden="true">×</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <p>Flash URL <span id="selectedFWURL"></span> to device?</p>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer ">
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
|
|
+ <button type="button" class="btn btn-warning" data-dismiss="modal"
|
|
|
+ onclick="hFlash();">Ok</button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="tab-pane fade" id="tab-nvs">
|
|
|
- <table class="table table-hover">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th scope="col">Key</th>
|
|
|
- <th scope="col">Value</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="nvsTable">
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <div class="buttons">
|
|
|
- <div id="boot-div">
|
|
|
- <form id="reboot-form" action="/reboot.json" method="post" target="dummyframe">
|
|
|
- <button id="reboot-button" type="submit" class="btn btn-primary">Reboot</button>
|
|
|
- </form>
|
|
|
+ <div class="card text-white mb-3">
|
|
|
+ <div class="card-header">Local Firmware Upload</div>
|
|
|
+ <div class="card-body">
|
|
|
+ <div id="uploaddiv" class="recovery_element form-group row">
|
|
|
+ <label for="flashfilename" class="col-auto col-form-label">Local File</label>
|
|
|
+ <div class="col">
|
|
|
+ <input type="file" class="form-control-file" id="flashfilename" aria-describedby="fileHelp">
|
|
|
+ </div>
|
|
|
+ <div class="col-auto">
|
|
|
+ <div class="buttons">
|
|
|
+ <button type="button" class="btn btn-danger" id="fwUpload">Upload!</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <input id="save-nvs" type="button" class="btn btn-success" value="Commit">
|
|
|
- <input id="save-as-nvs" type="button" class="btn btn-success" value="Download config">
|
|
|
- <input id="load-nvs" type="button" class="btn btn-success" value="Load File">
|
|
|
- <input aria-describedby="fileHelp" onchange="onChooseFile(event, onFileLoad.bind(this))"
|
|
|
- id="nvsfilename" type="file" style="display:none">
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
|
|
|
- <div class="tab-pane fade" id="tab-cfg-audio">
|
|
|
- <div class="card text-white bg-primary mb-3">
|
|
|
- <div class="card-header">Usage Templates</div>
|
|
|
- <div class="card-body">
|
|
|
- <fieldset>
|
|
|
- <fieldset class="form-group" id="output-tmpl">
|
|
|
- <legend>Output</legend>
|
|
|
- <div class="form-check">
|
|
|
- <label class="form-check-label">
|
|
|
- <input type="radio" class="form-check-input" name="output-tmpl" id="i2s">
|
|
|
- I2S Dac
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- <div class="form-check">
|
|
|
- <label class="form-check-label">
|
|
|
- <input type="radio" class="form-check-input" name="output-tmpl" id="spdif">
|
|
|
- SPDIF
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- <div class="form-check">
|
|
|
- <label class="form-check-label">
|
|
|
- <input type="radio" class="form-check-input" name="output-tmpl" id="bt">
|
|
|
- Bluetooth
|
|
|
- </label>
|
|
|
- </div>
|
|
|
- </fieldset>
|
|
|
- <div class="form-group"><label for="player">Player Name</label><input type="text"
|
|
|
- class="form-control " placeholder="Squeezelite" id="player"></div>
|
|
|
- <div class="form-group"><label for="optional">Optional setting (e.g. for LMS IP
|
|
|
- address)</label><input type="text" class="form-control" id="optional"></div>
|
|
|
- <div class="form-group">
|
|
|
- <div class="form-check">
|
|
|
- <label class="form-check-label">
|
|
|
- <input class="form-check-input" type="checkbox" id="disable-squeezelite"
|
|
|
- value="" checked="">
|
|
|
- Disable Squeezelite
|
|
|
- </label>
|
|
|
- </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="tab-pane fade" id="tab-nvs">
|
|
|
+ <table class="table table-hover">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th scope="col">Key</th>
|
|
|
+ <th scope="col">Value</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="nvsTable">
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <div class="buttons">
|
|
|
+ <div id="boot-div">
|
|
|
+ <form id="reboot-form" action="/reboot.json" method="post" target="dummyframe">
|
|
|
+ <button id="reboot-button" type="submit" class="btn btn-primary">Reboot</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <input id="save-nvs" type="button" class="btn btn-success" value="Commit">
|
|
|
+ <input id="save-as-nvs" type="button" class="btn btn-success" value="Download config">
|
|
|
+ <input id="load-nvs" type="button" class="btn btn-success" value="Load File">
|
|
|
+ <input aria-describedby="fileHelp" onchange="onChooseFile(event, onFileLoad.bind(this))"
|
|
|
+ id="nvsfilename" type="file" style="display:none">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="tab-pane fade" id="tab-cfg-audio">
|
|
|
+ <div class="card text-white mb-3">
|
|
|
+ <div class="card-header">Usage Templates</div>
|
|
|
+ <div class="card-body">
|
|
|
+ <fieldset>
|
|
|
+ <fieldset class="form-group" id="output-tmpl">
|
|
|
+ <legend>Output</legend>
|
|
|
+ <div class="form-check">
|
|
|
+ <label class="form-check-label">
|
|
|
+ <input type="radio" class="form-check-input" name="output-tmpl" id="i2s">
|
|
|
+ I2S Dac
|
|
|
+ </label>
|
|
|
</div>
|
|
|
- <div class="toast show" role="alert" aria-live="assertive" aria-atomic="true"
|
|
|
- style="display: none;" id="toast_cfg-audio-tmpl">
|
|
|
- <div class="toast-header"><strong class="mr-auto">Result</strong><button type="button"
|
|
|
- class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close"
|
|
|
- onclick="hideSurrounding(this)"><span aria-hidden="true">×</span></button></div>
|
|
|
- <div class="toast-body" id="msg_cfg-audio-tmpl"></div>
|
|
|
+ <div class="form-check">
|
|
|
+ <label class="form-check-label">
|
|
|
+ <input type="radio" class="form-check-input" name="output-tmpl" id="spdif">
|
|
|
+ SPDIF
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="form-check">
|
|
|
+ <label class="form-check-label">
|
|
|
+ <input type="radio" class="form-check-input" name="output-tmpl" id="bt">
|
|
|
+ Bluetooth
|
|
|
+ </label>
|
|
|
</div>
|
|
|
- <button id="save-autoexec1" type="submit" class="btn btn-info" cmdname="cfg-audio-tmpl"
|
|
|
- onclick="saveAutoexec1(false)">Save</button>
|
|
|
- <button id="commit-autoexec1" type="submit" class="btn btn-warning" cmdname="cfg-audio-tmpl"
|
|
|
- onclick="saveAutoexec1(true)">Apply</button>
|
|
|
</fieldset>
|
|
|
- </div>
|
|
|
+ <div class="form-group"><label for="player">Player Name</label><input type="text"
|
|
|
+ class="form-control " placeholder="Squeezelite" id="player"></div>
|
|
|
+ <div class="form-group"><label for="optional">Optional setting (e.g. for LMS IP
|
|
|
+ address)</label><input type="text" class="form-control" id="optional"></div>
|
|
|
+ <div class="form-group">
|
|
|
+ <div class="form-check">
|
|
|
+ <label class="form-check-label">
|
|
|
+ <input class="form-check-input" type="checkbox" id="disable-squeezelite" value=""
|
|
|
+ checked="">
|
|
|
+ Disable Squeezelite
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="toast show" role="alert" aria-live="assertive" aria-atomic="true"
|
|
|
+ style="display: none;" id="toast_cfg-audio-tmpl">
|
|
|
+ <div class="toast-header"><strong class="mr-auto">Result</strong><button type="button"
|
|
|
+ class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close"
|
|
|
+ onclick="hideSurrounding(this)"><span aria-hidden="true">×</span></button></div>
|
|
|
+ <div class="toast-body" id="msg_cfg-audio-tmpl"></div>
|
|
|
+ </div>
|
|
|
+ <button id="save-autoexec1" type="submit" class="btn btn-info" cmdname="cfg-audio-tmpl"
|
|
|
+ onclick="saveAutoexec1(false)">Save</button>
|
|
|
+ <button id="commit-autoexec1" type="submit" class="btn btn-warning" cmdname="cfg-audio-tmpl"
|
|
|
+ onclick="saveAutoexec1(true)">Apply</button>
|
|
|
+ </fieldset>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="tab-pane fade active show" id="tab-wifi">
|
|
|
- <div class="card text-white bg-primary mb-3">
|
|
|
- <div class="card-header">WiFi Status</div>
|
|
|
- <div class="card-body">
|
|
|
- <table class="table table-hover">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th scope="col">Joined</th>
|
|
|
- <th scope="col">Name</th>
|
|
|
- <th scope="col">Signal</th>
|
|
|
- <th scope="col">Security</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="wifiTable"></tbody>
|
|
|
- </table>
|
|
|
- <button type="button" id="updateAP" class="btn btn-info btn-sm">Scan</button>
|
|
|
+ </div>
|
|
|
+ <div class="tab-pane fade active show" id="tab-wifi">
|
|
|
+ <div class="card text-white mb-3">
|
|
|
+ <div class="card-header">WiFi Status</div>
|
|
|
+ <div class="card-body">
|
|
|
+ <table class="table table-hover">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th scope="col">Joined</th>
|
|
|
+ <th scope="col">Name</th>
|
|
|
+ <th scope="col">Signal</th>
|
|
|
+ <th scope="col">Security</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="wifiTable"></tbody>
|
|
|
+ </table>
|
|
|
+ <button type="button" id="updateAP" class="btn btn-info btn-sm">Scan</button>
|
|
|
|
|
|
- </div>
|
|
|
- <div class="modal" id="WiFiDisconnectConfirm">
|
|
|
- <div class="modal-dialog modal-dialog-centered" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="modal-header">
|
|
|
- <h5 class="modal-title">Disconnect</h5>
|
|
|
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
- <span aria-hidden="true">×</span>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div class="modal-body">
|
|
|
- <p>Disconnect from network? After disconnecting, the system won't be accessible from the current address and will expose itself as access point name <span id="apName"></span> with password <span id="apPass"></span> </p>
|
|
|
- </div>
|
|
|
- <div class="modal-footer connecting-success connecting-status">
|
|
|
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
|
|
- <button type="button" class="btn btn-warning" data-dismiss="modal"
|
|
|
- onclick="handleDisconnect();">Ok</button>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="modal" id="WiFiDisconnectConfirm">
|
|
|
+ <div class="modal-dialog modal-dialog-centered" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title">Disconnect</h5>
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
+ <span aria-hidden="true">×</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <p>Disconnect from network? After disconnecting, the system won't be accessible from
|
|
|
+ the current address and will expose itself as access point name <span
|
|
|
+ id="apName"></span> with password <span id="apPass"></span> </p>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer connecting-success connecting-status">
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
|
|
+ <button type="button" class="btn btn-warning" data-dismiss="modal"
|
|
|
+ onclick="handleDisconnect();">Ok</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="modal" id="WifiConnectDialog">
|
|
|
- <div class="modal-dialog modal-dialog-centered" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="modal-header">
|
|
|
- <h5 class="modal-title connecting connecting-init connecting-fail">Connect to WiFi</h5>
|
|
|
- <h5 class="modal-title connecting-status connecting-success">Status</h5>
|
|
|
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
- <span aria-hidden="true">×</span>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div class="modal-body">
|
|
|
- <fieldset class="connecting-init connecting-fail">
|
|
|
- <div class="form-group"><label for="manual_ssid">Wifi Name</label><input
|
|
|
- type="text" class="form-control" placeholder="Enter Name"
|
|
|
- id="manual_ssid"></div>
|
|
|
- <div class="form-group"><label for="manual_pwd">Password</label><input
|
|
|
- type="password" class="form-control" placeholder="Enter Name"
|
|
|
- id="manual_pwd"></div>
|
|
|
- </fieldset>
|
|
|
- <div id="connect-wait" class="connecting">
|
|
|
- <div>Connecting to <span id="ssid-wait"></span> </div>
|
|
|
+ </div>
|
|
|
+ <div class="modal" id="WifiConnectDialog">
|
|
|
+ <div class="modal-dialog modal-dialog-centered" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title connecting connecting-init connecting-fail">Connect to WiFi
|
|
|
+ </h5>
|
|
|
+ <h5 class="modal-title connecting-status connecting-success">Status</h5>
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
+ <span aria-hidden="true">×</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <fieldset class="connecting-init connecting-fail">
|
|
|
+ <div class="form-group"><label for="manual_ssid">Wifi Name</label><input type="text"
|
|
|
+ class="form-control" placeholder="Enter Name" id="manual_ssid"></div>
|
|
|
+ <div class="form-group"><label for="manual_pwd">Password</label><input
|
|
|
+ type="password" class="form-control" placeholder="Enter Name"
|
|
|
+ id="manual_pwd"></div>
|
|
|
+ </fieldset>
|
|
|
+ <div id="connect-wait" class="connecting">
|
|
|
+ <div>Connecting to <span id="ssid-wait"></span> </div>
|
|
|
<div>
|
|
|
- You may lose wifi access while the esp32 recalibrates
|
|
|
- its radio. Please
|
|
|
- wait until your device automatically reconnects. This can take up to
|
|
|
- 30s.
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div id="connect-success" class="connecting-success connecting-status">
|
|
|
- <div> Connected to Access Point : <span id="connectedToSSID"></span></div>
|
|
|
- <div> Device IP address : <span id="ipAddress"></span></div>
|
|
|
- <div>Subnet Mask:<span id="netmask"></span></div>
|
|
|
- <div>Default Gateway:<span id="gateway"></span></div>
|
|
|
- </div>
|
|
|
- <div id="connect-fail" class="connecting-fail">
|
|
|
- <h3 class="text-error">Connection failed</h3>
|
|
|
- <p >Please double-check wifi password if any and make sure the access point has good signal.</p>
|
|
|
+ You may lose wifi access while the esp32 recalibrates
|
|
|
+ its radio. Please
|
|
|
+ wait until your device automatically reconnects. This can take up to
|
|
|
+ 30s.
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="modal-footer ">
|
|
|
- <button type="button" class="btn btn-secondary connecting-init connecting-fail connecting" data-dismiss="modal">Close</button>
|
|
|
- <button type="button" id="btnJoin" class="btn btn-primary connecting-init connecting-fail"
|
|
|
- onclick="handleConnect();">Join</button>
|
|
|
- <button type="button" class="connecting btn btn-primary" disabled>
|
|
|
- <span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
|
|
|
- <span class="sr-only">Connecting...</span></button>
|
|
|
+ <div id="connect-success" class="connecting-success connecting-status">
|
|
|
+ <div> Connected to Access Point : <span id="connectedToSSID"></span></div>
|
|
|
+ <div> Device IP address : <span id="ipAddress"></span></div>
|
|
|
+ <div>Subnet Mask:<span id="netmask"></span></div>
|
|
|
+ <div>Default Gateway:<span id="gateway"></span></div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="modal-footer connecting-success connecting-status">
|
|
|
- <button type="button" class="btn btn-warning" data-toggle="modal"
|
|
|
- data-dismiss="modal" data-target="#WiFiDisconnectConfirm">Disconnect</button>
|
|
|
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
|
+ <div id="connect-fail" class="connecting-fail">
|
|
|
+ <h3 class="text-error">Connection failed</h3>
|
|
|
+ <p>Please double-check wifi password if any and make sure the access point has
|
|
|
+ good signal.</p>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer ">
|
|
|
+ <button type="button"
|
|
|
+ class="btn btn-secondary connecting-init connecting-fail connecting"
|
|
|
+ data-dismiss="modal">Close</button>
|
|
|
+ <button type="button" id="btnJoin"
|
|
|
+ class="btn btn-primary connecting-init connecting-fail"
|
|
|
+ onclick="handleConnect();">Join</button>
|
|
|
+ <button type="button" class="connecting btn btn-primary" disabled>
|
|
|
+ <span class="spinner-border spinner-border-sm" role="status"
|
|
|
+ aria-hidden="true"></span>
|
|
|
+ <span class="sr-only">Connecting...</span></button>
|
|
|
+ </div>
|
|
|
|
|
|
+ <div class="modal-footer connecting-success connecting-status">
|
|
|
+ <button type="button" class="btn btn-warning" data-toggle="modal" data-dismiss="modal"
|
|
|
+ data-target="#WiFiDisconnectConfirm">Disconnect</button>
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
- <div class="tab-pane fade " id="tab-commands">
|
|
|
- <fieldset id="commands-list"></fieldset>
|
|
|
- </div>
|
|
|
- <!-- Status -->
|
|
|
- <div class="tab-pane fade " id="tab-syslog">
|
|
|
- <div class="card border-primary mb-3">
|
|
|
- <div class="card-header">Logs</div>
|
|
|
- <div class="card-body">
|
|
|
- <table class="table table-hover">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th scope="col">Timestamp</th>
|
|
|
- <th scope="col">Message</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="syslogTable">
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <div class="buttons">
|
|
|
- <input id="clear-syslog" type="button" class="btn btn-danger btn-sm" value="Clear" />
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="tab-pane fade " id="tab-commands">
|
|
|
+ <fieldset id="commands-list"></fieldset>
|
|
|
+ </div>
|
|
|
+ <!-- Status -->
|
|
|
+ <div class="tab-pane fade " id="tab-syslog">
|
|
|
+ <div class="card border-primary mb-3">
|
|
|
+ <div class="card-header">Logs</div>
|
|
|
+ <div class="card-body">
|
|
|
+ <table class="table table-hover">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th scope="col">Timestamp</th>
|
|
|
+ <th scope="col">Message</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="syslogTable">
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <div class="buttons">
|
|
|
+ <input id="clear-syslog" type="button" class="btn btn-danger btn-sm" value="Clear" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="card border-primary mb-3">
|
|
|
- <div class="card-header">Pin Assignments</div>
|
|
|
- <div class="card-body">
|
|
|
- <table class="table table-hover">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th scope="col">Device</th>
|
|
|
- <th scope="col">Pin Name</th>
|
|
|
- <th scope="col">GPIO Number</th>
|
|
|
- <th scope="col">Type</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="gpiotable"></tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="card border-primary mb-3">
|
|
|
+ <div class="card-header">Pin Assignments</div>
|
|
|
+ <div class="card-body">
|
|
|
+ <table class="table table-hover">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th scope="col">Device</th>
|
|
|
+ <th scope="col">Pin Name</th>
|
|
|
+ <th scope="col">GPIO Number</th>
|
|
|
+ <th scope="col">Type</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="gpiotable"></tbody>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
- <div class="card border-primary mb-3" style="visibility: collapse;" id="tasks_sect">
|
|
|
- <div class="card-header">Tasks</div>
|
|
|
- <div class="card-body">
|
|
|
- <table class="table table-hover">
|
|
|
- <!-- console.log(msg_time.toLocaleString() + '\tname' + '\tcpu' + '\tstate' + '\tminstk' + '\tbprio' + '\tcprio' + '\tnum'); -->
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th scope="col">#</th>
|
|
|
- <th scope="col">Task Name</th>
|
|
|
- <th scope="col">CPU</th>
|
|
|
- <th scope="col">State</th>
|
|
|
- <th scope="col">Min Stack</th>
|
|
|
- <th scope="col">Base Priority</th>
|
|
|
- <th scope="col">Cur Priority</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="tasks"></tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="card border-primary mb-3" style="visibility: collapse;" id="tasks_sect">
|
|
|
+ <div class="card-header">Tasks</div>
|
|
|
+ <div class="card-body">
|
|
|
+ <table class="table table-hover">
|
|
|
+ <!-- console.log(msg_time.toLocaleString() + '\tname' + '\tcpu' + '\tstate' + '\tminstk' + '\tbprio' + '\tcprio' + '\tnum'); -->
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th scope="col">#</th>
|
|
|
+ <th scope="col">Task Name</th>
|
|
|
+ <th scope="col">CPU</th>
|
|
|
+ <th scope="col">State</th>
|
|
|
+ <th scope="col">Min Stack</th>
|
|
|
+ <th scope="col">Base Priority</th>
|
|
|
+ <th scope="col">Cur Priority</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="tasks"></tbody>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- syslog -->
|
|
|
- <div class="tab-pane fade " id="tab-credits">
|
|
|
- <div class="card text-white bg-primary mb-3">
|
|
|
- <div class="card-header">Credits</div>
|
|
|
- <div class="card-body">
|
|
|
- <p><strong><a
|
|
|
- href="https://github.com/sle118/squeezelite-esp32">squeezelite-esp32</a><br></strong>©
|
|
|
- 2020, philippe44, sle118, daduke<br /><a href="https://opensource.org/licenses/MIT">This
|
|
|
- software is released under the MIT License.</a></p>
|
|
|
- <p>
|
|
|
- This app would not be possible without the following libraries:
|
|
|
- </p>
|
|
|
- <ul>
|
|
|
- <li>squeezelite, © 2012-2019, Adrian Smith and Ralph Irving. Licensed under the GPL
|
|
|
- License.</li>
|
|
|
- <li>esp32-wifi-manager, © 2017-2019, Tony Pottier. Licensed under the MIT License.</li>
|
|
|
- <li>SpinKit, © 2015, Tobias Ahlin. Licensed under the MIT License.</li>
|
|
|
- <li>jQuery, The jQuery Foundation. Licensed under the MIT License.</li>
|
|
|
- <li>cJSON, © 2009-2017, Dave Gamble and cJSON contributors. Licensed under the MIT
|
|
|
- License.
|
|
|
- </li>
|
|
|
- <li>esp32-rotary-encoder, © 2011-2019, David Antliff and Ben Buxton. Licensed under the
|
|
|
- GPL
|
|
|
- License.</li>
|
|
|
- <li>tarablessd1306, © 2017-2018, Tara Keeling. Licensed under the MIT license.</li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <!-- syslog -->
|
|
|
+ <div class="tab-pane fade " id="tab-credits">
|
|
|
+ <div class="card text-white mb-3">
|
|
|
+ <div class="card-header">Credits</div>
|
|
|
+ <div class="card-body">
|
|
|
+ <p><strong><a
|
|
|
+ href="https://github.com/sle118/squeezelite-esp32">squeezelite-esp32</a><br></strong>©
|
|
|
+ 2020, philippe44, sle118, daduke<br /><a href="https://opensource.org/licenses/MIT">This
|
|
|
+ software is released under the MIT License.</a></p>
|
|
|
+ <p>
|
|
|
+ This app would not be possible without the following libraries:
|
|
|
+ </p>
|
|
|
+ <ul>
|
|
|
+ <li>squeezelite, © 2012-2019, Adrian Smith and Ralph Irving. Licensed under the GPL
|
|
|
+ License.</li>
|
|
|
+ <li>esp32-wifi-manager, © 2017-2019, Tony Pottier. Licensed under the MIT License.</li>
|
|
|
+ <li>SpinKit, © 2015, Tobias Ahlin. Licensed under the MIT License.</li>
|
|
|
+ <li>jQuery, The jQuery Foundation. Licensed under the MIT License.</li>
|
|
|
+ <li>cJSON, © 2009-2017, Dave Gamble and cJSON contributors. Licensed under the MIT
|
|
|
+ License.
|
|
|
+ </li>
|
|
|
+ <li>esp32-rotary-encoder, © 2011-2019, David Antliff and Ben Buxton. Licensed under the
|
|
|
+ GPL
|
|
|
+ License.</li>
|
|
|
+ <li>tarablessd1306, © 2017-2018, Tara Keeling. Licensed under the MIT license.</li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
- <div class="card text-white bg-primary mb-3">
|
|
|
- <div class="card-header">Extras/Overrides</div>
|
|
|
- <div class="card-body">
|
|
|
- <fieldset>
|
|
|
- <div class="form-check">
|
|
|
- <label class="form-check-label"><input type="checkbox" id="show-nvs"
|
|
|
- class="form-check-input " value="">Show NVS Editor</label>
|
|
|
- </div>
|
|
|
- </fieldset>
|
|
|
- <fieldset>
|
|
|
- <div class="form-check">
|
|
|
- <label class="form-check-label"><input type="checkbox" id="show-commands"
|
|
|
- class="form-check-input " value="">Show Advanced Commands</label>
|
|
|
- </div>
|
|
|
- </fieldset>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="card text-white mb-3">
|
|
|
+ <div class="card-header">Extras/Overrides</div>
|
|
|
+ <div class="card-body">
|
|
|
+ <fieldset>
|
|
|
+ <div class="form-check">
|
|
|
+ <label class="form-check-label"><input type="checkbox" id="show-nvs"
|
|
|
+ class="form-check-input " value="">Show NVS Editor</label>
|
|
|
+ </div>
|
|
|
+ </fieldset>
|
|
|
+ <fieldset>
|
|
|
+ <div class="form-check">
|
|
|
+ <label class="form-check-label"><input type="checkbox" id="show-commands"
|
|
|
+ class="form-check-input " value="">Show Advanced Commands</label>
|
|
|
+ </div>
|
|
|
+ </fieldset>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- credits -->
|
|
|
</div>
|
|
|
-
|
|
|
+ <!-- credits -->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <footer class="footer bg-primary text.primary">
|
|
|
- <button class="btn-warning ota_element" id="reboot_nav" type="submit" onclick="handleReboot(false);"
|
|
|
- style="display: none;">Reboot</button>
|
|
|
- <button class="btn-danger recovery_element" id="reboot_ota_nav" type="submit" onclick="handleReboot(true);"
|
|
|
- style="display: none;">Exit Recovery</button><br>
|
|
|
- <span id="foot-fw"></span><span id="foot-wifi"></span>
|
|
|
+ </main>
|
|
|
+ <footer>
|
|
|
+ <div class="fixed-bottom d-flex justify-content-between border-top border-dark p-3 bg-primary">
|
|
|
+ <span class="text-center" id="foot-fw"></span><button class="btn-warning ota_element " id="reboot_nav"
|
|
|
+ type="submit" onclick="handleReboot(false);" style="display: none;">Reboot</button>
|
|
|
+ <button class="btn-warning recovery_element" id="reboot_ota_nav" type="submit" onclick="handleReboot(true);"
|
|
|
+ style="display: none;">Exit Recovery</button><span class="text-center" id="foot-wifi"></span>
|
|
|
+ </div>
|
|
|
+
|
|
|
</footer>
|
|
|
- </div>
|
|
|
</body>
|
|
|
|
|
|
</html>
|