use same output for moisture on webpage as in mqtt

This commit is contained in:
2025-05-19 12:16:09 +02:00
parent 171b130a29
commit 9f48b46738
4 changed files with 28 additions and 20 deletions

View File

@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
use crate::{config::PlantConfig, in_time_range, plant_hal};
const MOIST_SENSOR_MAX_FREQUENCY: f32 = 6500.; // 60kHz (500Hz margin)
const MOIST_SENSOR_MAX_FREQUENCY: f32 = 7500.; // 60kHz (500Hz margin)
const MOIST_SENSOR_MIN_FREQUENCY: f32 = 150.; // this is really, really dry, think like cactus levels
#[derive(Debug, PartialEq, Serialize)]