Open a garage door through a Slack bot
- 1 Slack bot
- 1 NodeJS app to host the Slack bot
- 1 ESP8266 (like the Wemos D1 Mini) to control 1 SG90 Servo
git clone https://github.com/mtthp/garage-door/
cd garage-door
npm install
Change the env variables accordingly in the config/.env
file, then
npm start
Why host a NodeJS app instead of doing all the work on the ESP8266 (eg. connecting to Slack and managing the bot) ?
Because some ESP8266 don't have enough memory to store/parse the Slack response messages (using the RTM API). It is inevitable that crashes will occur and the ESP will reboot or be unavailable from time to time.
- Draw some diagram to show a physical representation
This project is licensed under the MIT license.