Init
This commit is contained in:
commit
5e19a4e603
8 changed files with 93 additions and 0 deletions
17
lib/controller.pkl
Normal file
17
lib/controller.pkl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import "./common.pkl"
|
||||
|
||||
server: common.ServerConfig
|
||||
|
||||
database: String
|
||||
|
||||
permissions: common.PermissionsConfig
|
||||
|
||||
logging: common.LoggingConfig
|
||||
|
||||
class RelayConfig {
|
||||
driver: "null"|"gpio"|"piface"
|
||||
pin: Number
|
||||
inverted: Boolean
|
||||
pulse: Number(this >= 0)|Null = null
|
||||
}
|
||||
relays: Listing<RelayConfig>
|
||||
Loading…
Reference in a new issue