From 60b9405048657d88f356054da3d50ca44d0b3811 Mon Sep 17 00:00:00 2001 From: Mitchell Date: Sun, 22 May 2016 00:47:49 -0500 Subject: [PATCH] updated sensor page as adjusted time for connection status --- public/js/SensorsController.js | 2 +- public/view/sensors.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/SensorsController.js b/public/js/SensorsController.js index 5f93634..29c2a5c 100644 --- a/public/js/SensorsController.js +++ b/public/js/SensorsController.js @@ -16,7 +16,7 @@ app.controller('SensorsController', function($scope, $http) { $scope.information[i].date = date.toLocaleString('en-US', options); - if ((Date.now() - date) < 120000) { + if ((Date.now() - date) < 420000) { $scope.information[i].status = "Connected"; $scope.information[i].css = "colorGreen"; } else { diff --git a/public/view/sensors.html b/public/view/sensors.html index 9822165..80e7a08 100644 --- a/public/view/sensors.html +++ b/public/view/sensors.html @@ -1,7 +1,7 @@

ESP8266 Temperature Sensors

-

Note: I am using a DHT11 analog sensor for both temperature and humidity readings. I am also using a DS18B20 digital sensor, which only takes temperature readings. The digital sensor seems to get more accurate readings. Some of the data may be inconsistent as this is an experimental process. +

Note: As of 5-22-16 I have redone the entire back and front end of this website. Along with that, many database queries have been changed to be more optimized. Because of this I have gotten rid of all older data and am starting a fresh database.