Author |
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: July 14 2014 at 11:56 | IP Logged
|
|
|
Hi guys,
What if I want to add automatic people detection to ph?
My idea is as follows:
I carry with me some kind of tag which detects in turn my presence at home. PH knows I am at home and acts accordingly. Any hardware ideas on this?
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: July 14 2014 at 12:20 | IP Logged
|
|
|
Peter,
What I do is reserve a DHCP address in my router for my smartphone (so it'll always have the same IP) and then use the ph_ping1 function to check if its available every 5 minutes.
When Im home, my phone is automatically connected to my wifi and the ping works. When Im outside the range of my wifi, then the ping fails.
Do a forum search as I know several other people have done the same thing. Gadgetguy has put together some code so that this can work with an iphone (I use android so just a ping works for me).
Dave.
|
Back to Top |
|
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: July 14 2014 at 15:07 | IP Logged
|
|
|
I've got this running also but it is depending on WiFi.
What if I would like to be independant from WiFi?
What is the difference between ph-ping and ph-ping1?
|
Back to Top |
|
|
lizaoreo Groupie
Joined: February 11 2013 Location: United States
Online Status: Offline Posts: 75
|
Posted: July 15 2014 at 12:01 | IP Logged
|
|
|
I've seen where some people experimented with active RFID tagging and such. Most seemed to agree that it was too sporadic to actually track where a person was, but it worked for seeing who was in a building (or home).
There's a few other ways I've seen people do it mentioned on the homeautomation subreddit on reddit. One guy used Bluetooth dongles on several computers throughout the house to detect when a phone was in range to decide roughly where a person was.
Here's one example: Here
Other links for the topic I've looked at: Here, Here
Edited by lizaoreo - July 15 2014 at 12:02
|
Back to Top |
|
|