22 lines
411 B
Text
22 lines
411 B
Text
module emgauwa.controller
|
|
|
|
import "./common.pkl"
|
|
|
|
server: common.ServerConfig
|
|
|
|
database: String
|
|
|
|
permissions: common.PermissionsConfig
|
|
|
|
logging: common.LoggingConfig
|
|
|
|
midnight: String(matches(Regex(#"([01]?[0-9]|2[0-3]):[0-5][0-9]"#)))
|
|
|
|
class RelayConfig {
|
|
number: Number
|
|
driver: "null"|"gpio"|"piface"
|
|
pin: Number
|
|
inverted: Boolean
|
|
pulse: Number(this >= 0)|Null = null
|
|
}
|
|
relays: Listing<RelayConfig>
|