Improve config system
Add pkl to generate configs
This commit is contained in:
parent
8785186dfa
commit
b2ff632e64
47 changed files with 915 additions and 276 deletions
71
config/emgauwa-controller.pkl
Normal file
71
config/emgauwa-controller.pkl
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
amends "./lib/controller.pkl"
|
||||
|
||||
server {
|
||||
host = "127.0.0.1"
|
||||
port = 4419
|
||||
}
|
||||
|
||||
database = "sqlite://_local/emgauwa-controller.sqlite"
|
||||
|
||||
permissions {
|
||||
user = "emgauwa"
|
||||
group = "emgauwa"
|
||||
}
|
||||
|
||||
logging {
|
||||
level = "DEBUG"
|
||||
file = "stdout"
|
||||
}
|
||||
|
||||
relays {
|
||||
new {
|
||||
driver = "gpio"
|
||||
pin = 5
|
||||
inverted = true
|
||||
}
|
||||
new {
|
||||
driver = "gpio"
|
||||
pin = 4
|
||||
inverted = true
|
||||
}
|
||||
new {
|
||||
driver = "gpio"
|
||||
pin = 3
|
||||
inverted = true
|
||||
}
|
||||
new {
|
||||
driver = "gpio"
|
||||
pin = 2
|
||||
inverted = true
|
||||
}
|
||||
new {
|
||||
driver = "gpio"
|
||||
pin = 1
|
||||
inverted = true
|
||||
}
|
||||
new {
|
||||
driver = "gpio"
|
||||
pin = 0
|
||||
inverted = true
|
||||
}
|
||||
new {
|
||||
driver = "gpio"
|
||||
pin = 16
|
||||
inverted = true
|
||||
}
|
||||
new {
|
||||
driver = "gpio"
|
||||
pin = 15
|
||||
inverted = true
|
||||
}
|
||||
new {
|
||||
driver = "piface"
|
||||
pin = 1
|
||||
inverted = false
|
||||
}
|
||||
new {
|
||||
driver = "piface"
|
||||
pin = 0
|
||||
inverted = false
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue