time and distance to home

402 views
Skip to first unread message

burick graham

unread,
Apr 6, 2014, 6:12:03 PM4/6/14
to tas...@googlegroups.com
hi. how can i make tasker read how far away from home i am and how long my commute will take.

Rich D

unread,
Apr 6, 2014, 6:56:34 PM4/6/14
to Tasker Google Groups Post

This was discussed with a good approach a short time ago. Search this group, you should be able to find it... 

On Apr 6, 2014 6:12 PM, "burick graham" <bur...@gmail.com> wrote:
hi. how can i make tasker read how far away from home i am and how long my commute will take.

--
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 tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

nanobrain

unread,
Apr 6, 2014, 7:16:16 PM4/6/14
to tas...@googlegroups.com

As for commute time, I created a task based on easiuser's idea (https://groups.google.com/d/msg/tasker/CjJr42clMJc/9eVh8eFXbdkJ) to poll every 10 minutes before and around quitting time Google maps directions for the commute time:

Get Traffic Work-Home (25)
A1: Array Clear [ Name:%Text ]
A2: HTTP Get [ Server:Port:https://maps.google.com Path:maps?saddr=1600+Pennsylvania+Ave+NW,+Washington,+DC+20500&daddr=1+United+Nations+Plaza,+New+York,+NY+10017&hl=en Attributes: Cookies: Timeout:20 Mime Type: Output File: Trust Any Certificate:Off ]
A3: Stop [ With Error:Off Task: ] If [ %HTTPR !~ 200 ]
A4: AutoNotification Cancel [ Configuration:Id: Commutehome Package:com.joaomgcd.autonotification Name:AutoNotification Cancel Timeout (Seconds):0 ]
A5: Variable Set [ Name:%reply To:%HTTPD Do Maths:Off Append:Off ]
A6: Variable Split [ Name:%reply Splitter:In current traffic: Delete Base:Off ]
A7: For [ Variable:%item Items:2:%reply(#) ]
A8: Variable Set [ Name:%path To:%reply(%item) Do Maths:Off Append:Off ]
A9: Variable Split [ Name:%path Splitter:mins </span> </div> <div> Delete Base:Off ]
A10: Variable Set [ Name:%duration To:%path1 Do Maths:Off Append:Off ]
A11: Variable Split [ Name:%path2 Splitter:</div> Delete Base:Off ]
A12: Variable Set [ Name:%road To: %path21 Do Maths:Off Append:Off ]
A13: Variable Set [ Name:%Text(%item) To:%road: %duration min Do Maths:Off Append:Off ]
A14: Array Process [ Variable:%Text Type:Squash ]
A15: End For
A16: AutoNotification [ Configuration:Title: Commute Time Home Text: %Text() Status Bar Icon: ic_action_exit Id: Commutehome Package:com.joaomgcd.autonotification Name:AutoNotification Timeout (Seconds):0 ] 

I use Autonotification, but you can create your own.

Brandon Horwath

unread,
Apr 6, 2014, 7:53:07 PM4/6/14
to tas...@googlegroups.com
Setting a home location in maps will generate a time to home notification in your drop down status bar anytime you're away from home.

I think from there using a notification intercept should provide you with those details.

Rich D

unread,
Apr 6, 2014, 8:01:24 PM4/6/14
to Tasker Google Groups Post

> Setting a home location in maps will generate a time to home notification in your drop down status bar anytime you're away from home.

Where do you set this 'home' location?  

Rich D

unread,
Apr 6, 2014, 8:24:50 PM4/6/14
to Tasker Google Groups Post

> > Setting a home location in maps will generate a time to home notification in your drop down status bar anytime you're away from home.
>
> Where do you set this 'home' location?  

Hit send by mistake....

I have the latest google maps but I can not find where I would set a 'Home' location. 

Brandon Horwath

unread,
Apr 6, 2014, 8:36:29 PM4/6/14
to tas...@googlegroups.com
'Settings', then 'edit home or work'

Rich D

unread,
Apr 6, 2014, 9:00:01 PM4/6/14
to Tasker Google Groups Post

> 'Settings', then 'edit home or work'
>

I do not have edit home or work under settings..

Perhaps it is becouse of the android version. I am on 4.1.2

Brandon Horwath

unread,
Apr 6, 2014, 9:07:29 PM4/6/14
to tas...@googlegroups.com
Same...

Check for a grey tab mid to lower left on map screen.

Rich D

unread,
Apr 6, 2014, 9:17:45 PM4/6/14
to Tasker Google Groups Post


> Same...
>
> Check for a grey tab mid to lower left on map screen.

Do not seem to have that either..

Screenshot_2014-04-06-21-14-24.png
Screenshot_2014-04-06-21-13-53.png

nanobrain

unread,
Apr 6, 2014, 10:19:54 PM4/6/14
to tas...@googlegroups.com
In 4.4.2 you can change it in Google Now, under Customize, Places. Another place in Google Maps (on the web) under My Places. 

I found the Google Now notification tends to default to the shortest route, which more often than not is not the quickest. My task above gives me 2-3 options.   

Brandon Horwath

unread,
Apr 6, 2014, 10:57:00 PM4/6/14
to tas...@googlegroups.com
Hmm, well... wtf?

... not even remotely similar maps app?

https://www.dropbox.com/s/9q1uf53ulbokyw7/Screenshot_2014-04-06-19-49-01.png

https://www.dropbox.com/s/t6ewd9nx4tcynja/Screenshot_2014-04-06-19-53-13.png

Do you have a location service disabled in preferences???

... this is too weird.

Rich D

unread,
Apr 6, 2014, 11:11:28 PM4/6/14
to Tasker Google Groups Post

Nope, everything Is on..

Here is my version..

Screenshot_2014-04-06-23-09-20.png

Brandon Horwath

unread,
Apr 6, 2014, 11:41:11 PM4/6/14
to tas...@googlegroups.com
Weird... I'm on 7.7.0
My wife's is 7.4.0 though.

We're both running 4.1.2

Rich D

unread,
Apr 7, 2014, 8:52:03 PM4/7/14
to Tasker Google Groups Post


> Weird... I'm on 7.7.0
> My wife's is 7.4.0 though.
>
> We're both running 4.1.2

Yea,,,, I don't get it.... I could not find a way to set 'home' and 'work' in google maps but I did find a way to set them in the notification if I tap the 'magic wand' / places. 

BTW, could you explain what you meant by a " notification intercept "

Thanks,    Rich..

Brandon Horwath

unread,
Apr 7, 2014, 10:52:49 PM4/7/14
to tas...@googlegroups.com
BTW, could you explain what you meant by a " notification intercept "

Available through AutoNotification, on v.4.3+ only though :-(

Reply all
Reply to author
Forward
0 new messages