Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/focusedsupport/thedoorman
Why hire a doorman when you can build one?
https://github.com/focusedsupport/thedoorman
raspberry raspberry-pi raspberry-pi-camera raspberry-pi-gpio raspberrypi slack slackbot
Last synced: 28 days ago
JSON representation
Why hire a doorman when you can build one?
- Host: GitHub
- URL: https://github.com/focusedsupport/thedoorman
- Owner: FocusedSupport
- License: mit
- Created: 2017-02-28T16:53:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T20:03:21.000Z (over 5 years ago)
- Last Synced: 2024-10-11T17:21:00.595Z (28 days ago)
- Topics: raspberry, raspberry-pi, raspberry-pi-camera, raspberry-pi-gpio, raspberrypi, slack, slackbot
- Language: Python
- Size: 50.8 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# doorman
Why hire a doorman when you can build one?[![PyPI version](https://badge.fury.io/py/thedoorman.svg)](https://badge.fury.io/py/thedoorman)
## How to Install
```
pip install thedoorman
```## Configuration
Edit `slackbot_settings.py`:1. Update `team_name` as appropriate
2. Update `bot_name` as appropriate
3. Either uncomment and include your bot's API token or identify it in your environment via the variable `SLACKBOT_API_TOKEN`
4. Set the environment variable DOORBELL_SOUND to the path to a mp3 file to be played when the doorbell rings.
5. Set the environment variable $SPEECH_SCRIPT to a script which does text to speech. Several examples are in the misc directory.## To Run
`python run.py`## To Run on boot
1. Edit start-doorman.sh, setting the python3 interpreter and install directory if necessary, and setting any environment variables needed.
2. Edit doorman.service, adjusting the paths as necessary.
3. Install doorman.service:
% sudo cp doorman.service /lib/systemd/system/
% sudo chmod 644 /lib/systemd/system/doorman.service
% sudo systemctl daemon-reload
% sudo systemctl enable doorman
4. Reboot