|
21 | 21 | </button> |
22 | 22 | <div class="dropdown-menu shadow-sm simulation-controls-container" aria-labelledby="simulationMenuButton"> |
23 | 23 | <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>--> |
39 | 39 | <div class="card"> |
40 | 40 | <p class="widget-title">Time</p> |
41 | 41 | <p class="widget-desc">Control how the time elapses in the farm. You can change it to see the irrigation events faster.</p> |
|
197 | 197 | // Get the weather condition and time factor from the irrigation controller. |
198 | 198 | getWeatherCondition(); |
199 | 199 | getTimeFactor(); |
| 200 | + |
| 201 | + // Check farm connectivity in 5 secs. |
| 202 | + setTimeout(checkFarmConnected, 5000, "schedule"); |
200 | 203 | }); |
201 | 204 |
|
202 | 205 | // Sets the selected section. |
|
223 | 226 | function getControllerID() { |
224 | 227 | return '{{ controller_id }}'; |
225 | 228 | } |
226 | | - |
| 229 | + |
227 | 230 | // Gets the status of the farm. |
228 | 231 | function verifyParameters() { |
229 | 232 | let url = new URL(window.location.href); |
|
0 commit comments