mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-08-03 02:43:37 +02:00
Added topic chaning for switch open/close
This commit is contained in:
parent
388d8a80b0
commit
ef1d8b8080
2 changed files with 83 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue