Skip to content

Commit 4cb358e

Browse files
committed
agriculture: remove weather condition control from Simulation Controls.
Signed-off-by: Victor Coman <victor.coman@digi.com>
1 parent 47f7eac commit 4cb358e

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

agriculture/agriculturecore/templates/sidebar.html

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@
2121
</button>
2222
<div class="dropdown-menu shadow-sm simulation-controls-container" aria-labelledby="simulationMenuButton">
2323
<p>Simulation controls</p>
24-
<div class="card">
25-
<p class="widget-title">Weather condition</p>
26-
<p class="widget-desc">Control the weather condition of the farm. You can change it to see different temperature and moisture values.</p>
27-
<div class="widget-button-container">
28-
<button id="weather-sunny" class="btn widget-button weather-button" type="button" value="0">
29-
<span id="weather-sunny-logo" class="icon-widget weather-icon fas fa-sun fa-2x" title="Change weather to sunny"></span>
30-
</button>
31-
<button id="weather-cloudy" class="btn widget-button weather-button" type="button" value="1">
32-
<span id="weather-cloudy-logo" class="icon-widget weather-icon fas fa-cloud fa-2x" title="Change weather to cloudy"></span>
33-
</button>
34-
<button id="weather-rainy" class="btn widget-button weather-button" type="button" value="2">
35-
<span id="weather-rainy-logo" class="icon-widget weather-icon fas fa-cloud-rain fa-2x" title="Change weather to rainy"></span>
36-
</button>
37-
</div>
38-
</div>
24+
<!-- <div class="card">-->
25+
<!-- <p class="widget-title">Weather condition</p>-->
26+
<!-- <p class="widget-desc">Control the weather condition of the farm. You can change it to see different temperature and moisture values.</p>-->
27+
<!-- <div class="widget-button-container">-->
28+
<!-- <button id="weather-sunny" class="btn widget-button weather-button" type="button" value="0">-->
29+
<!-- <span id="weather-sunny-logo" class="icon-widget weather-icon fas fa-sun fa-2x" title="Change weather to sunny"></span>-->
30+
<!-- </button>-->
31+
<!-- <button id="weather-cloudy" class="btn widget-button weather-button" type="button" value="1">-->
32+
<!-- <span id="weather-cloudy-logo" class="icon-widget weather-icon fas fa-cloud fa-2x" title="Change weather to cloudy"></span>-->
33+
<!-- </button>-->
34+
<!-- <button id="weather-rainy" class="btn widget-button weather-button" type="button" value="2">-->
35+
<!-- <span id="weather-rainy-logo" class="icon-widget weather-icon fas fa-cloud-rain fa-2x" title="Change weather to rainy"></span>-->
36+
<!-- </button>-->
37+
<!-- </div>-->
38+
<!-- </div>-->
3939
<div class="card">
4040
<p class="widget-title">Time</p>
4141
<p class="widget-desc">Control how the time elapses in the farm. You can change it to see the irrigation events faster.</p>
@@ -197,6 +197,9 @@
197197
// Get the weather condition and time factor from the irrigation controller.
198198
getWeatherCondition();
199199
getTimeFactor();
200+
201+
// Check farm connectivity in 5 secs.
202+
setTimeout(checkFarmConnected, 5000, "schedule");
200203
});
201204

202205
// Sets the selected section.
@@ -223,7 +226,7 @@
223226
function getControllerID() {
224227
return '{{ controller_id }}';
225228
}
226-
229+
227230
// Gets the status of the farm.
228231
function verifyParameters() {
229232
let url = new URL(window.location.href);

0 commit comments

Comments
 (0)