generated from jmgiacalone/esp32-template
updated client
This commit is contained in:
@@ -96,7 +96,7 @@
|
|||||||
<div class="card-action">
|
<div class="card-action">
|
||||||
<div class="row valign-wrapper">
|
<div class="row valign-wrapper">
|
||||||
<div class="input-field col s3">
|
<div class="input-field col s3">
|
||||||
<input type="number" name="profileName" id="profileName" />
|
<input type="text" name="profileName" id="profileName" />
|
||||||
<label for="Xmax">enter new profile name</label>
|
<label for="Xmax">enter new profile name</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col s6">
|
<div class="col s6">
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ setInterval(function () {
|
|||||||
});
|
});
|
||||||
myChart.update();
|
myChart.update();
|
||||||
}
|
}
|
||||||
}, 40000);
|
}, 4000);
|
||||||
|
|
||||||
async function fetchData(url) {
|
async function fetchData(url) {
|
||||||
let raw = await fetch(url);
|
let raw = await fetch(url);
|
||||||
@@ -142,7 +142,7 @@ function runProfile() {
|
|||||||
myChart.update();
|
myChart.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch('/profile', {
|
fetch('/profile/run', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||||||
|
|||||||
Reference in New Issue
Block a user