Skip to content

Commit

Permalink
agriculture: change controller direction from number to letters
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Coman <[email protected]>
  • Loading branch information
victorcoman committed Dec 13, 2021
1 parent 3c8bbb9 commit 5c940b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion agriculture/Procfile.config → agriculture/Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: gunicorn --bind :8000 --workers 3 --threads 2 agriculturecommon.wsgi:application
websocket: daphne -b :: -p 5000 agriculturecommon.asgi:application
websocket: daphne -b :: -p 5000 agriculturecommon.asgi:application
4 changes: 2 additions & 2 deletions agriculture/static/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const INFO_WINDOW_CONTENT_CONTROLLER = "" +
" </div>" +
" <div class='marker-info-value'>" +
" <span id='infow-wind'>@@WIND@@</span> km/h (" +
" <span id='infow-wind_dir'>@@WIND_DIR@@</span>)" +
" <span id='infow-wind_dir'></span> )" +
" </div>" +
" </div>" +
" <div class='marker-info-element'>" +
Expand Down Expand Up @@ -548,7 +548,7 @@ function updateWeatherStation(response) {
controllerWindDirElement.innerText = dir;
let controllerWindDirInfowElement = document.getElementById("infow-wind_dir");
if (controllerWindDirInfowElement != null)
controllerWindDirInfowElement.innerText = weatherStationStatus[ID_WIND_DIR];
controllerWindDirInfowElement.innerText = dir;

// Update the rain value.
controllerRainDiff = weatherStationStatus[ID_RAIN];
Expand Down

0 comments on commit 5c940b1

Please sign in to comment.