-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.example.toml
52 lines (45 loc) · 1.4 KB
/
config.example.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# COPY THIS TO config.toml
[misc]
debugLogging = false
#Logfile = "logs/foo.log"
[mqtt]
url = "tls://server:8883"
# optional
certFile = "server.cert.pem"
username = "user"
password = "pass"
[mqtt.topics]
spaceInternalBrokerTopic = "$SYS/broker/connection/spacegate.mainframe.lan/state"
devices = "/net/devices"
StateSpace = "/access-control-system/space-state"
StateSpaceNext = "/access-control-system/space-state-next"
StateRadstelle = "/access-control-system/radstelle-state"
StateLab3d = "/access-control-system/3dlab-state"
StateMachining = "/access-control-system/machining/state"
EnergyFront = "/test/stromVorne/power"
EnergyBack = "/test/stromHinten/power"
EnergyMachining = "/test/stromFraese/power"
KeyholderId = "/access-control-system/keyholder/id"
KeyholderName = "/access-control-system/keyholder/name"
[mysql]
host ="localhost"
user = "root"
password ="your pw"
database ="spaceschalter"
SaveDevicesIntervalInSec = 900 # 15 * 60
[twitter]
# if true, it does everthing except the actual tweet. Useful for developing.
Mocking = false
Enabled = false
# delay tweeting after space state change for this long; it's also the minimum time between two tweets
TwitterdelayInSec = 180 # 3 * 60
# auth
ConsumerKey = "?"
ConsumerSecret = "?"
AccessTokenKey = "?"
AccessTokenSecret = "?"
[web]
Host = "localhost"
Port = 9000
# to change the status on the /switch page. If empty, the /switch page is disabled.
SwitchPassword = ""