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); const heightDifferenceInCm = Math.abs(actualWaterLevelInCm - measuredHeightNum);
let message; let message;
if (heightDifferenceInCm <= 10) { // Within 10 cm is considered a match if (heightDifferenceInCm <= 10) {
message = "Measured height is within an acceptable range of actual water level."; message = "Manual measurement is match within 10 cm of the sensor data.";
} else { } else {
message = "Measured height differs significantly from actual water level."; message = "Manual measurement not matched within range 10cm from the sensor data.";
} }
reply.send({ reply.send({

Loading…
Cancel
Save