|
|
|
|
|
by JohnBooty
1593 days ago
|
|
First: Cool project! Second: I'm probably missing something, but: Therefore, I would at least need to start a process
that would understand my intent to leave
How did you solve the "intent" issue? It looks like your solution simply detects when your phone stops responding to pings, and then unlocks the doors when it resumes.This doesn't seem like it would distinguish between "going for a run", "going on a car trip", "turning the phone off for 10 minutes and then back on again, but never leaving the house," etc. I suppose one (fun, overkill, probably) solution would be if the phone's sensors could be queried. Once the phone "returns", your home network could query the phone and ask it if you've been exercising or not, based on your heartrate/motion since the phone was last seen by the network. |
|
> I wrapped everything up in a small Flask app to serve a simple HTML form on a Raspberry Pi. Clicking Submit launches the start_process function as a background process:
Clicking submit is establishing intent. Once intent is established, then it uses the timeout to detect when they've gone, and, later, their return.