You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2024. It is now read-only.
Open Door via email - nodejs orchestration server.
Workflow:
1. Visitor rings my doorbell, which triggers an ESP8266 running https://gist.github.com/talyian/58b93d15451dcb418808213faa7e5a35
2. The 8266 requests <server>/door, which blocks and waits for step 4
3. We send an email with a one-time-use token /open/SECRETTOKENHERE.
4. Two things could occur:
A) The link is clicked within 5 minutes, and we return a "open" command to the 8266, which sends a signal to open the door as if we were pressing the buzzer from within the room.
B) A timeout occurs after 5 minutes, and we return 'timeout'. The token is invalidated. If any /open/ link is clicked with a stale token, the client is informed that they were too slow.