Skip to content

Commit

Permalink
I feel like I've really helped the world today. 🌅
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCarlino committed Sep 1, 2019
1 parent be3003b commit fba4c6c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
Keep your home safe. Woof Alert™ is a special dog collar that sends you email alerts whenever your dog barks. By leveraging the power of the ESP32 and state of the art sound detection modules, Woof Alert™ puts _you_ in control.

![](barry.jpg)
![](device.jpg)
![](screenshot.png)

# Are You Serious?

Nope. Lighten up.
Nope! This is one of those "I wonder if..." projects to help me learn more about the [ESP32](https://www.espressif.com/en/products/hardware/esp32/overview). My dog probably wore the thing for less than 5 minutes and at no point did I intend to actually solve real problems.

# Installation - Software

Expand Down Expand Up @@ -34,7 +36,25 @@ Here's how I did it:

![](wiring.jpg)

# Deployment
# Deploying a Webhook Service

The collar sends an HTTP POST to the URL defined as `WOOF_POST_URL` within `secrets.h`.

I wrote this awful snippet in PHP to send myself an email:

```php

<?php
$message = "I SEE SOMETHING!";
$message = wordwrap($message, 70, "\r\n");

mail('foo@bar.com', 'Woof!', $message);
?>

```

Alternatively, you could use a slack webhook URL (probably).
# Deploying the Hardware

Cut a tube and insert the ESP, microphone and a small USB power bank. Attach the tube to a standard collar, making sure that there are no exposed wires or uncomfortable pokey things that might annoy your doggo.

Expand Down
Binary file modified barry.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added device.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ boolean bAlarm = false;

unsigned long lastSoundDetectTime;

int soundAlarmTime = 500;
int soundAlarmTime = 25;

void setup()
{
Expand Down
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fba4c6c

Please sign in to comment.