Possible jamming

Thomas Henry tjhjr at mac.com
Tue Sep 2 12:41:42 EDT 2014


James, 

I will try this. Good ideas.

Thanks,
Tom

On Sep 2, 2014, at 10:30 AM, James Sentman <james at sentman.com> wrote:

> 
> On Sep 2, 2014, at 9:16 AM, horst-ml <horst-ml at cox.net> wrote:
> 
>> If I wanted to monitor my wifi, I'd use the command line airport command. http://osxdaily.com/2007/01/18/airport-the-little-known-command-line-wireless-utility/
>> 
>> It would be easy to set up a scheduled event either in Xtension or launchd to periodically report things like signal strength and noise. 
>> 
> 
> Wow, that is excellent, I didn't know about that utility. I will definitely be experimenting with that. 
> 
> There is a way to ping a device and see if it's on the network or not. You can do this in a separate applescript applet saved as an applet. Here is my script that I use to tell if the internet is up or not. I ping my own server on the other side, you probably shouldn't ping something repeatedly like that which doesn't belong to you as it generates a little bit of traffic that adds up over time and they might block you if it got to be a pain for them. Not all servers even return pings. What I would do is to find one of the upstream routers from yourself via a traceroute command and ping that, but use your own best judgement ;)
> 
> But pinging something on your local network to see if you can reach it or not is simple enough, paste this into a new script in the system script editor (not the window in XTension) and save it as a stay open applet. 
> 
> on idle
> 	tell application "XTension" to write log "checking internet…"
> 	try
> 		set MyResponse to (do shell script "ping -c 3 your.device.IP.address")
> 		
> 		tell application "XTension"
> 			write log "internet available"
> 			set CurrentStatus to (status of "internet available")
> 			if CurrentStatus is not true then
> 				turnon "internet available"
> 			end if
> 		end tell
> 		return 15 * minutes
> 		
> 	on error
> 		
> 		tell application "XTension"
> 			write log "internet unavailable"
> 			set CurrentStatus to (status of "internet available")
> 			if CurrentStatus is not false then
> 				turnoff "internet available"
> 			end if
> 		end tell
> 		
> 		return 2 * minutes
> 		
> 	end try
> 	
> 	
> end idle
> 
> this pings the server every 15 minutes while it's up and every 2 mintues once it finds it down, but you can do it more rapidly if you're doing something locally that might disspappear. You'll also want to change the name of the pseudo unit from internet available to something like "cam available" or whatever suits your usage of it. Make sure the app starts at launch, but after XTension is running or it will get a timeout on the event.
> 
> Thanks,
> 	James
> 
> 
> James Sentman                       http://sentman.com		http://MacHomeAutomation.com
> 
> 
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at shed.com
> http://shed.com/mailman/listinfo/xtensionlist



More information about the XTensionList mailing list