From 5c940b1c8d8eddb3bb83da40414724739ab6771d Mon Sep 17 00:00:00 2001 From: Victor Coman Date: Mon, 13 Dec 2021 11:32:11 +0100 Subject: [PATCH] agriculture: change controller direction from number to letters Signed-off-by: Victor Coman --- agriculture/{Procfile.config => Procfile} | 2 +- agriculture/static/js/dashboard.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename agriculture/{Procfile.config => Procfile} (96%) diff --git a/agriculture/Procfile.config b/agriculture/Procfile similarity index 96% rename from agriculture/Procfile.config rename to agriculture/Procfile index 10f881f..e342204 100644 --- a/agriculture/Procfile.config +++ b/agriculture/Procfile @@ -1,2 +1,2 @@ web: gunicorn --bind :8000 --workers 3 --threads 2 agriculturecommon.wsgi:application -websocket: daphne -b :: -p 5000 agriculturecommon.asgi:application \ No newline at end of file +websocket: daphne -b :: -p 5000 agriculturecommon.asgi:application diff --git a/agriculture/static/js/dashboard.js b/agriculture/static/js/dashboard.js index 64b1df5..0fd80d3 100644 --- a/agriculture/static/js/dashboard.js +++ b/agriculture/static/js/dashboard.js @@ -64,7 +64,7 @@ const INFO_WINDOW_CONTENT_CONTROLLER = "" + " " + "
" + " @@WIND@@ km/h (" + - " @@WIND_DIR@@)" + + " )" + "
" + " " + "
" + @@ -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];