typescript changes
This commit is contained in:
@@ -1,54 +1,65 @@
|
||||
interface PlantControllerConfig {
|
||||
ap_ssid: string,
|
||||
ssid: string,
|
||||
password: string,
|
||||
mqtt_url: string,
|
||||
base_topic: string,
|
||||
tank_sensor_enabled: boolean,
|
||||
tank_allow_pumping_if_sensor_error: boolean,
|
||||
tank_useable_ml: number,
|
||||
tank_warn_percent: number,
|
||||
tank_empty_percent: number,
|
||||
tank_full_percent: number,
|
||||
night_lamp_hour_start: number,
|
||||
night_lamp_hour_end: number,
|
||||
night_lamp_only_when_dark: boolean,
|
||||
max_consecutive_pump_count: number,
|
||||
|
||||
plants: PlantConfig[]
|
||||
}
|
||||
interface NetworkConfig {
|
||||
ap_ssid: string,
|
||||
ssid: string,
|
||||
password: string,
|
||||
mqtt_url: string,
|
||||
base_topic: string
|
||||
}
|
||||
|
||||
interface PlantConfig{
|
||||
mode: string,
|
||||
target_moisture: number,
|
||||
pump_time_s: number,
|
||||
pump_cooldown_min: number,
|
||||
pump_hour_start: number,
|
||||
pump_hour_end: number,
|
||||
sensor_b: boolean
|
||||
}
|
||||
|
||||
|
||||
interface SSIDList {
|
||||
ssids: [string]
|
||||
}
|
||||
|
||||
interface TestPump {
|
||||
pump: number
|
||||
}
|
||||
|
||||
interface SetTime {
|
||||
time: string
|
||||
}
|
||||
|
||||
interface GetData {
|
||||
rtc: string,
|
||||
native: string,
|
||||
moisture_a: [number],
|
||||
moisture_b: [number],
|
||||
}
|
||||
|
||||
interface VersionInfo {
|
||||
git_hash: string,
|
||||
build_time: string
|
||||
}
|
||||
interface NightLampConfig {
|
||||
night_lamp_hour_start: number,
|
||||
night_lamp_hour_end: number,
|
||||
night_lamp_only_when_dark: boolean,
|
||||
}
|
||||
|
||||
interface TankConfig {
|
||||
tank_sensor_enabled: boolean,
|
||||
tank_allow_pumping_if_sensor_error: boolean,
|
||||
tank_useable_ml: number,
|
||||
tank_warn_percent: number,
|
||||
tank_empty_percent: number,
|
||||
tank_full_percent: number,
|
||||
}
|
||||
|
||||
interface PlantControllerConfig {
|
||||
network: NetworkConfig,
|
||||
tank: TankConfig,
|
||||
nightLamp: NightLampConfig,
|
||||
plants: PlantConfig[]
|
||||
}
|
||||
|
||||
interface PlantConfig {
|
||||
mode: string,
|
||||
target_moisture: number,
|
||||
pump_time_s: number,
|
||||
pump_cooldown_min: number,
|
||||
pump_hour_start: number,
|
||||
pump_hour_end: number,
|
||||
sensor_b: boolean,
|
||||
max_consecutive_pump_count: number,
|
||||
}
|
||||
|
||||
|
||||
interface SSIDList {
|
||||
ssids: [string]
|
||||
}
|
||||
|
||||
interface TestPump {
|
||||
pump: number
|
||||
}
|
||||
|
||||
interface SetTime {
|
||||
time: string
|
||||
}
|
||||
|
||||
interface GetData {
|
||||
rtc: string,
|
||||
native: string,
|
||||
moisture_a: [number],
|
||||
moisture_b: [number],
|
||||
}
|
||||
|
||||
interface VersionInfo {
|
||||
git_hash: string,
|
||||
build_time: string
|
||||
}
|
||||
Reference in New Issue
Block a user