Compare commits

..

22 Commits

Author SHA1 Message Date
tanner 1e87df0b7a Change broker's IP address 2022-11-14 02:11:43 +00:00
tanner 7d5d68e29c Increase cooldown 2022-11-14 02:11:24 +00:00
tanner 4cc057ea57 Improve barking sound effect 2022-11-13 18:46:02 -07:00
tanner 5bcbe7239b Freeze requirements 2022-11-14 01:44:47 +00:00
tanner 21b077f547 Increase cooldown 2022-06-28 06:26:53 +01:00
tanner 74da51284c Add Audacity bark file 2022-06-27 22:52:16 -06:00
tanner f5c729d368 Add back door woof 2022-06-27 22:34:59 -06:00
tanner 5a7ca0f0e9 Fix bugs 2022-06-27 17:31:45 -06:00
tanner bbf04d6397 Change script to dog barking 2022-06-27 17:13:24 -06:00
tanner c2d0c8e27b Switch audio files to barks 2022-06-27 16:46:58 -06:00
tanner 5352c625f3 Add testing sound 2022-02-03 21:40:12 -07:00
tanner 6f609ac43c Convert doorbell to use rtl_433 and mqtt 2022-01-30 17:53:35 -07:00
tanner 3d028e30b3 Replace speech with American accent 2022-01-30 17:09:25 -07:00
tanner a091d161cb Remove EzViz junk 2022-01-30 17:05:24 -07:00
tanner 6e669608bf Replace chime 2022-01-30 17:05:16 -07:00
tanner d9de230b24 Increase buffer 2022-01-30 23:52:17 +00:00
tanner b2ad9369ac Increase buffer 2021-10-07 05:51:47 +01:00
tanner b20e2845b5 Integrate pyezviz MQTT with doorbell 2021-10-06 22:02:16 -06:00
tanner c8bc300077 Clone pyezviz from https://github.com/BaQs/pyEzviz 2021-10-06 21:27:35 -06:00
tanner 2059073f80 Play door chime through speaker 2021-10-06 03:04:07 -06:00
tanner 2e408e4109 Ignore secrets 2021-10-06 03:03:55 -06:00
tanner 9fda4dec6f Initial commit 2021-10-06 03:03:25 -06:00
2 changed files with 0 additions and 62 deletions
-62
View File
@@ -2,70 +2,8 @@
This script plays a fake dog bark through speakers to scare people away from your house.
## Setup
Set up the Pi:
```
$ sudo usermod -aG audio tanner
$ sudo apt update
$ sudo apt install python3 python3-pip python3-virtualenv libsdl2-mixer-2.0-0 supervisor
$ sudo bash -c 'echo 0 > /proc/sys/kernel/hung_task_timeout_secs'
```
Edit /etc/pulse/daemon.conf:
```text
default-fragments = 5
default-fragment-size-msec = 2
```
Install woof:
```
$ git clone https://git.tannercollin.com/tanner/woof.git
$ cd woof/
$ virtualenv -p python3 env
$ . env/bin/activate
(env) $ pip install -r requirements.txt
```
Run manually to test it:
```
$ . env/bin/activate
(env) $ python main.py
```
Ignore "(snd_pcm_recover) underrun occurred" errors.
To start automatically, create `/etc/supervisor/conf.d/woof.conf`:
```
[program:woof]
user=tanner
directory=/home/tanner/woof
command=/home/tanner/woof/env/bin/python -u main.py
stopasgroup=true
stopsignal=INT
autostart=true
autorestart=true
stderr_logfile=/dev/null
#stderr_logfile_maxbytes=10MB
stdout_logfile=/var/log/woof.log
stdout_logfile_maxbytes=10MB
```
Apply changes:
```
$ sudo supervisorctl reread; sudo supervisorctl reload
$ sudo supervisorctl status
$ tail -f /var/log/woof.log
```
## License
This program is free and open-source software licensed under the GNU Affero General Public License. Please see the `LICENSE` file for details.
That means you have the right to study, change, and distribute the software and source code to anyone and for any purpose. You deserve these rights.
BIN
View File
Binary file not shown.