Open Switch thread skeleton

This commit is contained in:
Ondrej Mikle 2017-10-27 20:15:06 +02:00
parent fdc3007904
commit 388d8a80b0
2 changed files with 28 additions and 0 deletions

View file

@ -41,3 +41,11 @@ password = whatevs
channels = #test-bjornbot
tls = True
reconnect_delay = 300
[open-switch]
# Controls showing status of "OPEN/CLOSE" switch that is connected to some GPIO pin
# Changes topic of connected IRC channels if IRC is enabled
# enabled - True/False
# status_file - file in sysfs that contains 1 or 0 defining the state of button
enabled = True
status_file = /sys/class/gpio/gpio11/value