mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 02:42:48 +00:00
test123
This commit is contained in:
@@ -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,
|
||||||
located: String,
|
location: String,
|
||||||
updated: {type: Date, default: Date.now}
|
updated: {type: Date, default: Date.now}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ router.post('/', function(req, res, next) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log("--information saved--");
|
||||||
|
|
||||||
res.send("Information Logged");
|
res.send("Information Logged");
|
||||||
|
|
||||||
@@ -32,6 +33,7 @@ router.post('/', function(req, res, next) {
|
|||||||
|
|
||||||
else{
|
else{
|
||||||
|
|
||||||
|
console.log("--information not saved--");
|
||||||
res.send("Invalid Authentication");
|
res.send("Invalid Authentication");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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.located%></span>
|
<span class="colorWhite">Location: <%=query.location%></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