Added topic chaning for switch open/close

This commit is contained in:
Ondrej Mikle 2017-10-29 15:39:09 +01:00
parent 388d8a80b0
commit ef1d8b8080
2 changed files with 83 additions and 18 deletions

View file

@ -42,10 +42,13 @@ channels = #test-bjornbot
tls = True
reconnect_delay = 300
[open-switch]
[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
# There is no point in enabling this if you disabled IRC
# enabled - True/False
# status_file - file in sysfs that contains 1 or 0 defining the state of button
# open_value - which value in status_file respresents the switch being in "OPEN" position, 1 character
enabled = True
status_file = /sys/class/gpio/gpio11/value
open_value = 1