1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

added temperature/humidity sensor

This commit is contained in:
2015-08-31 19:42:26 -05:00
parent 7e7719ca92
commit eec9f50229
9 changed files with 182 additions and 25 deletions

11
models/temperature.js Normal file
View File

@@ -0,0 +1,11 @@
var mongoose = require('mongoose');
var temperatureSchema = new mongoose.Schema({
temperature: String,
humidity: String,
location: String,
updated: {type: Date, default: Date.now}
});
mongoose.model('temperature', temperatureSchema);