@ -187,7 +187,7 @@ exports.updateTanklevels = async (req, reply) => {
// waterLevel = newWaterLevel;
}, 2000);
}, 5000);
intervals[tankId] = intervalId;
}
@ -42,7 +42,7 @@ const tanksSchema = new mongoose.Schema({
waterlevel: { type: String, default: "0" },
tankLocation: { type: String, default: null },
motor_status: { type: String, default: "0" },
waterlevel_at_midnight:{ type: String },
waterlevel_at_midnight:{ type: String,default:"0" },
connections: {
source: { type: String },
inputConnections: [