core/config/lib/controller.pkl
Tobias Reisinger b2ff632e64
Improve config system
Add pkl to generate configs
2024-02-18 19:50:22 +01:00

16 lines
250 B
Text

import "./common.pkl"
server: common.ServerConfig
database: String
permissions: common.PermissionsConfig
logging: common.LoggingConfig
class RelayConfig {
driver: "gpio" | "piface"
pin: Number
inverted: Boolean
}
relays: Listing<RelayConfig>