1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 10:22:53 +00:00

updated sensor page as adjusted time for connection status

This commit is contained in:
2016-05-22 00:47:49 -05:00
parent 2cba4b932c
commit 60b9405048
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -1,7 +1,7 @@
<div class="container">
<br>
<h1 class="text-center">ESP8266 Temperature Sensors</h1>
<p><span class="colorRed">Note:</span> 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.
<p><span class="colorRed">Note:</span> 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.
</p>
<hr>
<div ng-repeat="sensorInfo in information">