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:
@@ -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 {
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user