QnaList > Groups > Tasker > Mar 2016
faq

Filtering Out Variable 12hr Time For Calendar Based Task

I'm having the hardest time trying to get Tasker to intercept a Calendar 
Notification (using AutoNotification) to remove the time and have the 
address for an upcoming appointment be set as a variable.
I can successfully scrape the notification for the info needed, but using 
Variable Section is not consistent as times are not the same for each 
notification, ie. 10 AM - 5 PM/4:30 - 5:20 PM.
What I'm trying to accomplish is parse the info, remove the time factors 
and have the address only to use in a Google Maps Navigation task.
The data I'm trying to use comes in this format:
4:30 - 5:20 PM
Joo Ha Hwang
410 Ninth Ave Seattle WA 98104
I think using regex may be the best way to accomplish this, but I cannot 
get Tasker to filter out the time using this regex code:
^\d{1,2}([:.]?[0-9])\s*?(?:AM|PM)?\s*-\s*\d{1,2}([:.]?\d[0-9])\s*?(?:AM|PM)
I am able to validate the code using: https://www.regex101.com/#javascript
How can I accomplish this best? Do I have to include the text after the 
time to filter out the time? Or...?
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

asked Mar 23 2016 at 15:42

Ozone 's gravatar image



3 Replies for : Filtering Out Variable 12hr Time For Calendar Based Task
It looks like you can just do a variable split with a return as a
splitter.
You will need to set local variable to a return to use as the splitter.
Just type in a actual carriage return in the variable set action.
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

answered Mar 23 2016 at 16:26

Rich D 's gravatar image


Ok, I'm confused as to how to use the return function to process this data. 
Can you help walk me through this or provide an example? 
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

answered Mar 23 2016 at 17:31

Ozone 's gravatar image


data.
It is the 'variable split' action not 'return function'
Can you help walk me through this or provide an example?
Here is a exported task example
New Test (746)
A1: Variable Set [ Name:%data To:4:30 - 5:20 PM
Joo Ha Hwang
410 Ninth Ave Seattle WA 98104 Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%ret To:
Do Maths:Off Append:Off ]
A3: Variable Split [ Name:%data Splitter:%ret Delete Base:On ]
A4: Flash [ Text:%data1 Long:Off ]
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

answered Mar 23 2016 at 17:49

Rich D 's gravatar image


Related discussions

Tagged

Group Tasker

asked Mar 23 2016 at 15:42

active Mar 23 2016 at 17:49

posts:4

users:2

Tasker

©2013 QnaList.com . QnaList is part of ZisaTechnologies LLC.