This commit is contained in:
Your Name
2025-04-01 11:57:39 +02:00
parent d4c1178b3d
commit 9d280c6e37
3 changed files with 56 additions and 6 deletions

View File

@@ -118,6 +118,13 @@
</label>
</div>
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" value="" id="check_uSpot" onchange="update_config_sqlite('send_uSpot', this.checked)" disabled>
<label class="form-check-label" for="check_uSpot">
uSpot
</label>
</div>
<div class="input-group mb-3" id="sondes_envea_div"></div>
@@ -263,6 +270,9 @@ window.onload = function() {
//windMeter (as a config not a script -> it's running with a systemd service)
const checkbox_wind = document.getElementById("check_WindMeter");
checkbox_wind.checked = response["windMeter"];
//send uSpot
const checkbox_uSpot = document.getElementById("check_uSpot");
checkbox_uSpot.checked = response["send_uSpot"];
},
error: function(xhr, status, error) {
@@ -290,6 +300,7 @@ window.onload = function() {
checkbox_envea.checked = response["envea/read_value_v2.py"];
checkbox_solar.checked = response["MPPT/read.py"];
//si sonde envea is true
if (response["envea/read_value_v2.py"]) {
add_sondeEnveaContainer();