| Author |
Message |
|
nsheldon
Joined: Aug 09, 2010 Posts: 761 Location: CA
|
 Re: Smartphone Radar - Smartphone presence detection (Update
Hi Travis, everyone.
Travis, I like the plugin design. It's put together well.
I'd like to make a suggestion for a possible feature addition in future versions. In my setup, I have multiple AirPort Expresses and one AirPort Extreme set up (mostly for use with Airfoil for simple whole-home audio and to have Indigo provide spoken alerts in each room). A few of the AirPorts are set up to extend my wireless network since the main router is on the far side of my house. In the current version (1.0.5) of the Smartphone Radar plugin, it can only obtain SNMP data from one router. Since some of my mobile devices attach to other AirPort Expresses, they don't show up on the main router. It'd be useful to check multiple routers for the presence of a device. I know this would likely require a pretty significant rewrite of the code, but it's just something to think about.
|
| Wed Feb 15, 2012 3:27 pm |
|
 |
|
travisc
Joined: Sep 07, 2010 Posts: 228 Location: Toronto, Canada
|
 Re: Smartphone Radar - Smartphone presence detection (Update
Hi nsheldon,
That's already implemented. Enter multiple SNMP addresses and passwords/community strings separated by commas.
This feature will be documented once I update the main post with the new version.
|
| Wed Feb 15, 2012 3:31 pm |
|
 |
|
travisc
Joined: Sep 07, 2010 Posts: 228 Location: Toronto, Canada
|
 Re: Smartphone Radar - Smartphone presence detection (Update
@AlaskaDave
Sounds like the IP address of your router is incorrect, SNMP is not enabled, or you have the wrong SNMP password. Keep in mind the password you use is not the same one you use to log in to your Airport's config. It's technically an SNMP community string, Apple has decided to call it the SNMP password on some models. If your Airport does not allow you to specify one in the SNMP config it is almost certainly 'public'.
|
| Wed Feb 15, 2012 3:34 pm |
|
 |
|
AlaskaDave
Joined: Oct 16, 2008 Posts: 214 Location: Juneau, Alaksa
|
 Re: Smartphone Radar - Smartphone presence detection (Update
Thanks. I got things working for my main router and a newer express unit running on 80211n. My older 80211g models do not seem to contain the field for SNMP Community String. In this case would I just enter the AirPort Express Name (IP/Local) and leave the field blank for Airport Password due to being public as stated above?
I did notice one thing that hung me up when adding an additional express unit to the SmartPhone Radar Configuration and that is the placement of commas. This seem to work with no spaces, so "first,second" and NOT "first, second". Just an observation.
|
| Wed Feb 15, 2012 4:27 pm |
|
 |
|
travisc
Joined: Sep 07, 2010 Posts: 228 Location: Toronto, Canada
|
 Re: Smartphone Radar - Smartphone presence detection (Update
If there is nowhere to specify a community string use 'public'. Blank will not work.
I'll checkout that comma thing, might be a bug.
Thanks
|
| Wed Feb 15, 2012 4:30 pm |
|
 |
|
AlaskaDave
Joined: Oct 16, 2008 Posts: 214 Location: Juneau, Alaksa
|
 Re: Smartphone Radar - Smartphone presence detection (Update
I tried public in the "Airport Password" Field where I've been using the SNMP community string and kept coming up with errors. I instead tested with the use of that AirPort Expresses Password and that seems to work, at least the plug-in is not showing errors with the addition of this b/g compatible Express.
|
| Wed Feb 15, 2012 6:13 pm |
|
 |
|
nsheldon
Joined: Aug 09, 2010 Posts: 761 Location: CA
|
 Re: Smartphone Radar - Smartphone presence detection (Update
@travisc: Great! Thanks for the info (RE: multiple AirPorts separated by commas).
Regards, Nathan
|
| Wed Feb 15, 2012 6:18 pm |
|
 |
|
travisc
Joined: Sep 07, 2010 Posts: 228 Location: Toronto, Canada
|
 Re: Smartphone Radar - Smartphone presence detection (Update
@AlaskaDave:
Interesting. That product must use the airport password for the community string then. If the plugin's not throwing errors then it should be getting good data.
Thanks for the update.
|
| Wed Feb 15, 2012 8:06 pm |
|
 |
|
AlaskaDave
Joined: Oct 16, 2008 Posts: 214 Location: Juneau, Alaksa
|
 Re: Smartphone Radar - Smartphone presence detection (Update
Most most used and most reliable plug-in to date! I no longer forget to change my houses status when leaving in the morning... that's a good thing. Great Work! If only I could get the SecuritySpy Plug-in to work  Update: SecuritySpy has been up and running great. Initially I had issues with finding my camera. I now have two cameras in the mix and they both show up and are usable through the plug-in.
Last edited by AlaskaDave on Tue Jun 19, 2012 12:03 am, edited 1 time in total.
|
| Sun Feb 19, 2012 12:02 am |
|
 |
|
ateliers119
Joined: Feb 02, 2012 Posts: 11
|
 Re: Smartphone Radar - Smartphone presence detection (Update
@ Travis, any ideas on the idea i suggested earlier? To monitor DHCP logs? Or perhaps to support the SNMP stream for Mac OS Server?
|
| Sun Feb 19, 2012 12:46 pm |
|
 |
|
travisc
Joined: Sep 07, 2010 Posts: 228 Location: Toronto, Canada
|
 Re: Smartphone Radar - Smartphone presence detection (Update
@AlaskaDave: Thanks, glad you're enjoying it.  I think I'll be posting this SNMP version into the main post now since most people seem to be using it without problems. I'll fix those few bugs you guys found and then move it over. @ateliers119: Does all your internet traffic pass through your lion server, or is it just acting as the DHCP server? Using DHCP alone will not be reliable enough, the DHCP request will only come along when the phone first associates with the network. If you use your phone for 30 minutes straight the plugin will not see any DHCP activity and it will be declared away. If all your traffic passes through the Lion server then you can use an iptables rule to log any connections from your phones. Then you just forward your syslog to Smartphone Radar and you're done. This would be the most reliable method. I use this method in my Tomato router.
|
| Sun Feb 19, 2012 1:22 pm |
|
 |
|
ateliers119
Joined: Feb 02, 2012 Posts: 11
|
 Re: Smartphone Radar - Smartphone presence detection (Update
@travis
There is a router handling NAT. DNS/DHCP is done via OSX Server, This is a mac mini with a single Ethernetport. This is not a gateway or router in any way. We need the DNS capabilities of the server for domain routing and such. A router or similar does not suffice for this.
|
| Sun Feb 19, 2012 2:08 pm |
|
 |
|
travisc
Joined: Sep 07, 2010 Posts: 228 Location: Toronto, Canada
|
 Re: Smartphone Radar - Smartphone presence detection (Update
Then unfortunately I think you're out of luck. If the Lion server is only handling DHCP/DNS then it will not be contacted by the iPhone often enough to be reliable. Are you also running a mail server on there that the iPhone polls? Then you could forward that log to SR or somehow scan it on a schedule and make custom entires in the system log using logger as described by berkinet.
If there's no mail server on the Lion server then forwarding the router's log to SR is the only reliable option.
|
| Sun Feb 19, 2012 2:18 pm |
|
 |
|
ateliers119
Joined: Feb 02, 2012 Posts: 11
|
 Re: Smartphone Radar - Smartphone presence detection (Update
Would iCal server suffice? This is configured with either Push notifications or a few minute interval.
But how would the syslog be forwarded then? since the snmp doesn't seem to work as described earlier
|
| Sun Feb 19, 2012 2:19 pm |
|
 |
|
travisc
Joined: Sep 07, 2010 Posts: 228 Location: Toronto, Canada
|
 Re: Smartphone Radar - Smartphone presence detection (Update
I'm not sure if that guarantees a connection to the server every 15 minutes or not. Maybe someone else on here knows more than I do. There must be a log for the Calendar server that you can check. I'd assume it would log connections from devices checking calendars.
|
| Sun Feb 19, 2012 2:34 pm |
|
|