mirror of
https://github.com/eliasrenman/gardentron.git
synced 2026-03-16 20:46:07 +01:00
feat: added config
This commit is contained in:
14
server/src/config.types.ts
Normal file
14
server/src/config.types.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export type Configuration = {
|
||||
timeout: number;
|
||||
threshold: number;
|
||||
moisture: Moisture;
|
||||
};
|
||||
|
||||
export type Moisture = {
|
||||
thresholds: Thresholds;
|
||||
};
|
||||
|
||||
export type Thresholds = {
|
||||
lower: { [key: string]: number };
|
||||
upper: { [key: string]: number };
|
||||
};
|
||||
Reference in New Issue
Block a user