-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault_config.toml
24 lines (21 loc) · 1007 Bytes
/
default_config.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
# Smarthome server configuration
[smarthome]
url = "http://smarthome.box" # Fully-qualified root URL of the main server
token = "your-token" # Authentication token for (navigate to `http://url/profile` to obtain a token)
# Hardware configuration
[hardware]
enabled = false # If the infrared scanner should be initialized on startup
pin = 0 # The BCM pin number on which the infrared scanner is attached
# Button actions can be configured here
[[actions]]
name = "default" # A name which describes your action well
triggers = [101] # A list of numbers (the codes which match the action), multiple codes can correspond to one action
homescript = "print('Homescript')" # The Homescript code which is executed when the action was matched (validated on startup)
# Add as many actions as desired
#
# [[actions]]
# name = "default 2"
# triggers = [102]
# homescript = "print('Homescript')"
#
#