|
|
|
|
@ -53,6 +53,9 @@ const tanksSchema = new mongoose.Schema({
|
|
|
|
|
motor_temperature: { type: String, default: "0" },
|
|
|
|
|
waterlevel_at_midnight:{ type: String,default:"0" },
|
|
|
|
|
total_water_added_from_midnight:{ type: String,default:"0" },
|
|
|
|
|
auto_min_percentage :{ type: String, default: "20" },
|
|
|
|
|
auto_max_percentage :{ type: String, default: "80" },
|
|
|
|
|
manual_threesold_percentage:{type: String, default: "90"},
|
|
|
|
|
connections: {
|
|
|
|
|
source: { type: String },
|
|
|
|
|
inputConnections: [
|
|
|
|
|
@ -63,6 +66,8 @@ const tanksSchema = new mongoose.Schema({
|
|
|
|
|
motor_id:{ type: String ,default: null},
|
|
|
|
|
motor_status: { type: String, default: "0" },
|
|
|
|
|
motor_stop_status: { type: String, default: "1" },
|
|
|
|
|
motor_on_type :{ type: String, default: "manual" },
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
outputConnections: [
|
|
|
|
|
@ -73,6 +78,7 @@ const tanksSchema = new mongoose.Schema({
|
|
|
|
|
motor_id:{ type: String ,default: null},
|
|
|
|
|
motor_status: { type: String, default: "0" },
|
|
|
|
|
motor_stop_status: { type: String, default: "1" },
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|