Wow, I'm struggling. I can't find the bit in the user guide describing splits and I just can't understand how to define them. How do I know what to put after the % variable for example? (httpd211 etc)
I understand why splits work just not how.
Could you point me in the right direction for the user guide description?
Splits are explained quite well
here
Also any other advice, if you have time, on how I can use the splits etc to collect location data, using gps/google maps so when I'm driving....and plugged in to power my auto response text will add in my location.
I'm sorry, I just can't get my head around your profile enough to work it out myself.
I've copied it exactly..I think. And when I add a pop up to tell me what % LOCNAME should be....I just get % HTTPD11221? Any ideas?
Are you doing a GET first to obtain the location? a variable rerturns its own name when it has no value.
I would start by building a very basic task first to get used to how this all works,
eg:
1. Misc Action: Get Location (Net)
2. HTTP GET (per my first task link)
3. Alert Action: Popup %HTTPD
Test.
The popup should contain the returned data from the GET; this is what we want to split.
As far as knowing what to split, it is trial and error I'm afraid. I built that task over a weekend, using various posts on the tasker google group and the Google API documentation (and several file editing utilities on my old macbook).
When you split a variable it divides into as may sub variables as required (eg %TEST divides into %TEST1 %TEST2 etc as required by the splitter).
As far as the contexts you need I would suggest:
1. State - Power
2. Event - Phone - Received Text
3. <Some other trigger> - bluetooth connected (if you have a car kit / headset you use?)
Alternatively I've seen some posts on the tasker group about detecting movement, but not tried that route myself.
You can then trigger the task based on these contexts; I'd consider setting up some way of ensuring that you aren't checking for location more than you need to (eg if you get 5 texts in 2 minutes you probably don't want to check your location 5 times) - storing the time you last retrieved the location and checking it at the start of the location retrieval woud do it.
This is quite an advanced task if you are just starting out with Tasker so don't be put off by it; start small and build on what you have. It took me about 2 rewrites to be happy with my tasker setup, and I have slimmed down the number of tasks that I was running at one point..