-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vcoman/ces demo #6
Open
victorcoman
wants to merge
13
commits into
master
Choose a base branch
from
vcoman/ces_demo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5e998f0
gitignore: do not allow to commit .idea/* files
victorcoman 47f7eac
agriculture: add support for weather station in agriculture demo
victorcoman 4cb358e
agriculture: remove weather condition control from Simulation Controls.
victorcoman 96697d5
agriculture: dashboard works completely without any weather condition…
victorcoman cdb8ce0
agriculture: dashboard works completely without any weather condition…
victorcoman 6c88f65
Merge branch 'vcoman/ces_demo' of github.com:digidotcom/xbee-iot-web-…
victorcoman 464fdfe
agriculture: fix little problem that didn´t let choose between temper…
victorcoman 971c6a9
agriculture: fix small changes
victorcoman 4a20395
agriculture: fix charts and wind direction
victorcoman fcb4c35
agriculture: change the rain symbol depending on the rain difference …
victorcoman 3c8bbb9
agriculture: modify allowed hosts
victorcoman be00e8b
agriculture: change controller direction from number to letters
victorcoman 43d9741
agriculture: fix comments from pull request
victorcoman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,21 +21,21 @@ | |
</button> | ||
<div class="dropdown-menu shadow-sm simulation-controls-container" aria-labelledby="simulationMenuButton"> | ||
<p>Simulation controls</p> | ||
<div class="card"> | ||
<p class="widget-title">Weather condition</p> | ||
<p class="widget-desc">Control the weather condition of the farm. You can change it to see different temperature and moisture values.</p> | ||
<div class="widget-button-container"> | ||
<button id="weather-sunny" class="btn widget-button weather-button" type="button" value="0"> | ||
<span id="weather-sunny-logo" class="icon-widget weather-icon fas fa-sun fa-2x" title="Change weather to sunny"></span> | ||
</button> | ||
<button id="weather-cloudy" class="btn widget-button weather-button" type="button" value="1"> | ||
<span id="weather-cloudy-logo" class="icon-widget weather-icon fas fa-cloud fa-2x" title="Change weather to cloudy"></span> | ||
</button> | ||
<button id="weather-rainy" class="btn widget-button weather-button" type="button" value="2"> | ||
<span id="weather-rainy-logo" class="icon-widget weather-icon fas fa-cloud-rain fa-2x" title="Change weather to rainy"></span> | ||
</button> | ||
</div> | ||
</div> | ||
<!-- <div class="card">--> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as before, just remove this, if we wanted to recover it we can always go back to a previous commit that had this piece of code. |
||
<!-- <p class="widget-title">Weather condition</p>--> | ||
<!-- <p class="widget-desc">Control the weather condition of the farm. You can change it to see different temperature and moisture values.</p>--> | ||
<!-- <div class="widget-button-container">--> | ||
<!-- <button id="weather-sunny" class="btn widget-button weather-button" type="button" value="0">--> | ||
<!-- <span id="weather-sunny-logo" class="icon-widget weather-icon fas fa-sun fa-2x" title="Change weather to sunny"></span>--> | ||
<!-- </button>--> | ||
<!-- <button id="weather-cloudy" class="btn widget-button weather-button" type="button" value="1">--> | ||
<!-- <span id="weather-cloudy-logo" class="icon-widget weather-icon fas fa-cloud fa-2x" title="Change weather to cloudy"></span>--> | ||
<!-- </button>--> | ||
<!-- <button id="weather-rainy" class="btn widget-button weather-button" type="button" value="2">--> | ||
<!-- <span id="weather-rainy-logo" class="icon-widget weather-icon fas fa-cloud-rain fa-2x" title="Change weather to rainy"></span>--> | ||
<!-- </button>--> | ||
<!-- </div>--> | ||
<!-- </div>--> | ||
<div class="card"> | ||
<p class="widget-title">Time</p> | ||
<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 @@ | |
// Get the weather condition and time factor from the irrigation controller. | ||
getWeatherCondition(); | ||
getTimeFactor(); | ||
|
||
// Check farm connectivity in 5 secs. | ||
setTimeout(checkFarmConnected, 5000, "schedule"); | ||
}); | ||
|
||
// Sets the selected section. | ||
|
@@ -223,7 +226,7 @@ | |
function getControllerID() { | ||
return '{{ controller_id }}'; | ||
} | ||
|
||
// Gets the status of the farm. | ||
function verifyParameters() { | ||
let url = new URL(window.location.href); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why all these changes (until line 543)?