Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kaulketh committed Oct 1, 2021
1 parent 80065f9 commit 4f427eb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# RingPi-Bot

Based on RaspBerryPi Zero and switching a GPIO
via optocoupler through 12VAC from the doorbell.
see [wiring.png](hardware/wiring.png)
When the doorbell rings, a message is sent to a private Telegram chat group.

Based on RaspBerryPi Zero and switching a GPIO via optocoupler through 12VAC
from the doorbell, see [wiring.png](hardware/wiring.png)



10 changes: 5 additions & 5 deletions bot/ring_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
from telepot.loop import MessageLoop

from bot import singleton
from config import RING_BOT_TOKEN, RING_RING_GROUP, THK, \
switch_state, \
DING_DONG, WELCOME, RUNNING, STOPPED, UNKNOWN_CMD, UNKNOWN_TYPE, \
RING_BOT_NAME, CMD_START, CMD_STOP, CMD_REBOOT, REBOOT, START, STARTED, \
STOPPING
from config import RING_BOT_TOKEN, RING_BOT_NAME, RING_RING_GROUP, \
THK # no public deployment (secret.py)
from config import switch_state, DING_DONG, WELCOME, RUNNING, STOPPED, \
UNKNOWN_CMD, UNKNOWN_TYPE, CMD_START, CMD_STOP, CMD_REBOOT, REBOOT, \
START, STARTED, STOPPING
from logger import LOGGER


Expand Down
2 changes: 1 addition & 1 deletion config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
# -----------------------------------------------------------
from .constants import *
from .gpio import *
from .secret import *
from .secret import * # no public deployment

0 comments on commit 4f427eb

Please sign in to comment.