mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-11 18:32:50 +00:00
another test
This commit is contained in:
4
app.js
4
app.js
@@ -49,7 +49,7 @@ app.use(function(req, res, next) {
|
|||||||
|
|
||||||
// development error handler
|
// development error handler
|
||||||
// will print stacktrace
|
// will print stacktrace
|
||||||
/*
|
|
||||||
if (app.get('env') === 'development') {
|
if (app.get('env') === 'development') {
|
||||||
app.use(function(err, req, res, next) {
|
app.use(function(err, req, res, next) {
|
||||||
res.status(err.status || 500);
|
res.status(err.status || 500);
|
||||||
@@ -59,7 +59,7 @@ if (app.get('env') === 'development') {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
// production error handler
|
// production error handler
|
||||||
// no stacktraces leaked to user
|
// no stacktraces leaked to user
|
||||||
app.use(function(err, req, res, next) {
|
app.use(function(err, req, res, next) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ var mongoose = require('mongoose');
|
|||||||
var temperatureSchema = new mongoose.Schema({
|
var temperatureSchema = new mongoose.Schema({
|
||||||
temperature: String,
|
temperature: String,
|
||||||
humidity: String,
|
humidity: String,
|
||||||
location: String,
|
located: String,
|
||||||
updated: {type: Date, default: Date.now}
|
updated: {type: Date, default: Date.now}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<div class="lowerLeft">
|
<div class="lowerLeft">
|
||||||
<span class="colorWhite">ESP8266 With DHT11 Sensor</span>
|
<span class="colorWhite">ESP8266 With DHT11 Sensor</span>
|
||||||
<br>
|
<br>
|
||||||
<span class="colorWhite">Location: <%=query.location%></span>
|
<span class="colorWhite">Location: <%=query.located%></span>
|
||||||
<br>
|
<br>
|
||||||
<span class="colorWhite">Temperature: <%=query.temperature%>°F</span>
|
<span class="colorWhite">Temperature: <%=query.temperature%>°F</span>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
Reference in New Issue
Block a user