https://github.com/rusq/dogbutton-esp32
Dog button
https://github.com/rusq/dogbutton-esp32
esp32 m5atom-lite m5stack telegram-bot
Last synced: about 2 months ago
JSON representation
Dog button
- Host: GitHub
- URL: https://github.com/rusq/dogbutton-esp32
- Owner: rusq
- License: wtfpl
- Created: 2023-09-05T09:22:42.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-14T08:50:44.000Z (almost 3 years ago)
- Last Synced: 2026-01-21T23:21:21.888Z (5 months ago)
- Topics: esp32, m5atom-lite, m5stack, telegram-bot
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE
Awesome Lists containing this project
README
===================
Dog Button, The
===================
Press the button on your ESP32 and receive a telegram bot message.
After reading this text, you will understand that the alpha and omega,
the beginning and the end, most important thing, and a meaning of life
is a button.
Prerequisitage
--------------
You need:
1. A button (or M5AtomLite, it has a couple of those)
2. A telegram bot (get token from https://t.me/botfather)
3. Wifi SSID/Password
4. A neighbour's dog that barks.
5. OCD on listening to the dog barking.
Usage
-----
1. Create "include/secrets.h" by copying "include/secrets.h.sample", and update the values.
2. Build/Upload to the ESP32.
3. Press the button.
4. ...
5. Receive an message
Optional:
6. Export JSON from the bot chat
7. Get the timestamps
8. Record neighbour's dogs barking
9. Create a program that replays the barks with the time intervals taken from the origial timestamps
...
?. PROFIT!!!
Features
--------
If the button is not pressed for (roughly) 60 seconds, ESP32 is put to a light sleep mode.
Press the button to wake it up and send a message.
How to build the project
------------------------
Originally built for M5Atom-Lite S3, but should work with any ESP32,
as long as you have a button, or two.
Get the PlatformIO: https://docs.platformio.org/en/latest/
If you don't have a button, get one, now.
Log level is controlled in "platformio.ini" through the "build_flags"
variable. To enable debug level logs, modify it to:
build_flags = -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
License
-------
WTFPL.