Updated ota html
This commit is contained in:
parent
7c35bb59d0
commit
6706a7f9d6
@ -468,7 +468,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row mb-3">
|
<div class="row mb-3" id="ota-hide">
|
||||||
<label for="ota-url" class="col-sm-2 col-form-label">OTA base URL</label>
|
<label for="ota-url" class="col-sm-2 col-form-label">OTA base URL</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input type="url" maxlength="90" class="form-control" name="ota-url" id="ota-url" placeholder="http://www.local.com/path/" data-bs-toggle="tooltip" title="Base URL to where firmware and version.json file can be found. Needs to end with '/', example: http://www.mysite.com/firmware/">
|
<input type="url" maxlength="90" class="form-control" name="ota-url" id="ota-url" placeholder="http://www.local.com/path/" data-bs-toggle="tooltip" title="Base URL to where firmware and version.json file can be found. Needs to end with '/', example: http://www.mysite.com/firmware/">
|
||||||
@ -507,9 +507,9 @@
|
|||||||
|
|
||||||
if ( b ) {
|
if ( b ) {
|
||||||
$("#ota-url").val(gravitymonUrl);
|
$("#ota-url").val(gravitymonUrl);
|
||||||
$("#ota-url").prop("disabled", true);
|
$('#ota-hide').hide();
|
||||||
} else {
|
} else {
|
||||||
$("#ota-url").prop("disabled", false);
|
$('#ota-hide').show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -966,7 +966,7 @@
|
|||||||
|
|
||||||
if( cfg["ota-url"] == gravitymonUrl) {
|
if( cfg["ota-url"] == gravitymonUrl) {
|
||||||
$("#gravitymon-com").prop( "checked", true );
|
$("#gravitymon-com").prop( "checked", true );
|
||||||
$("#ota-url").prop("disabled", true);
|
$("#ota-hide").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#token").val(cfg["token"]);
|
$("#token").val(cfg["token"]);
|
||||||
|
File diff suppressed because one or more lines are too long
@ -3,7 +3,7 @@
|
|||||||
"wifi-ssid2": "ssid 2",
|
"wifi-ssid2": "ssid 2",
|
||||||
"mdns": "gravmon3",
|
"mdns": "gravmon3",
|
||||||
"id": "7376ef",
|
"id": "7376ef",
|
||||||
"ota-url": "http://192.168.1.100:80/firmware/gravmon/",
|
"ota-url": "https://www.gravitymon.com/firmware/",
|
||||||
"temp-format": "C",
|
"temp-format": "C",
|
||||||
"http-push": "http://192.168.1.10:9090/api/v1/ZYfjlUNeiuyu9N/telemetry",
|
"http-push": "http://192.168.1.10:9090/api/v1/ZYfjlUNeiuyu9N/telemetry",
|
||||||
"http-push-h1": "Auth: Basic T7IF9DD9fF3RDddE=",
|
"http-push-h1": "Auth: Basic T7IF9DD9fF3RDddE=",
|
||||||
|
Loading…
Reference in New Issue
Block a user