Tasker Help

dhendriksen

Android Addict
Feb 25, 2011
1,144
61
0
I'm wanting to do a couple of things with Tasker, but not fully grasping how to use it. Hoping I can get some guidance.

I have an app on my phone. I want to set it up so that when I launch that app, if I'm not connected to a specific WiFi network, then it automatically establishes a VPN connection via OpenVPN. I have the OpenVPN plugin...I just don't know how to set the logic to check when that app launches, if it's connected to that WiFi network and if not...establish the connection.

I also want to have it sent an HTTP request to a certain web address based on my location. So...when EXITS GEOFENCE send command HTTP://IPADDRESS:PORT/COMMAND. And the same thing about when I re-enter the GEOFENCE.
 
https://groups.google.com/forum/#!topic/tasker/ScdArOrUwBE has code to determine the SSID of a wifi connection, so use IF and if the variable mathces your specific SSID, do the rest of the VPN stuff.

As for the HTTP request, you can do a POST or a GET in Tasker natively - Net HTTP Post or Net HTTP Get.

Rukbat, on the HTTP request....I'd like to think I can figure that part out. Can you share with me how I have it fire the HTTP POST based on EXITING or ENTERING a specific area? Like 1/2 mile radius around my home, for example?
 
The learning curve on this app is pretty steep! I purchased the AUTOLOCATION plugin, and setup a GeoFence. I just can't figure out how to have it execute commands based on me ENTERING or EXITING the GeoFence.

Hmmm...