master^2
Bhaskar 6 months ago
parent cdb6afd11d
commit dcd83742df

@ -7595,10 +7595,10 @@ exports.compareMeasuredHeight = async (req, reply) => {
const heightDifferenceInCm = Math.abs(actualWaterLevelInCm - measuredHeightNum);
let message;
if (heightDifferenceInCm <= 10) { // Within 10 cm is considered a match
message = "Measured height is within an acceptable range of actual water level.";
if (heightDifferenceInCm <= 10) {
message = "Manual measurement is match within 10 cm of the sensor data.";
} else {
message = "Measured height differs significantly from actual water level.";
message = "Manual measurement not matched within range 10cm from the sensor data.";
}
reply.send({

Loading…
Cancel
Save