Re: Want to create a Car Dock ... possible?

339 views
Skip to first unread message

d0g

unread,
May 13, 2013, 3:44:31 PM5/13/13
to tas...@googlegroups.com

I tried this but it's not working...


I created a scene with a map "Map1". Lat,Long is blank, Zoom is 10.


Then I created a Task:

1. Create Scene

1. Get Location, source GPS, timeout 10 secs

2. Element map control > Move To > %LOC

3. Show Scene


When I ran the task, GPS comes on, then nothing happened.


I tried adding a "Destroy Scene" before the "Create Scene" ... and now it partially works.

But it still shows the entire earth, it doesn't zoom in.


I tried adding a Set Element map zoom, and also changing the map element in the scene itself ... but no difference.


Also, is it possible to have the map track my location as I drive and keep it centered on my current position?


Rich D

unread,
May 13, 2013, 5:13:24 PM5/13/13
to tas...@googlegroups.com

Wow, That's a tall order.... If such a thing was possible I wouldn't even know where to begin... Perhaps you could be swayed into something slightly easier. I'm assuming your device is put into some type of stationary dock so   It sounds like standard Google Maps could take care of your traffic and tracking and for your buttons perhaps you could do a overlay scene that is activated with the proximity sensor. 

Sorry I couldn't even start to help with your original quest :(  but I thought I would give you at least some sort of alternative. 

Rich..

Matt R

unread,
May 13, 2013, 8:27:58 PM5/13/13
to tas...@googlegroups.com
If you adjust the zoom while editing the map element in the scene, does it show the zoom changing?

Matt

Rich D

unread,
May 13, 2013, 9:40:52 PM5/13/13
to tas...@googlegroups.com

> I'm not happy with any of the car dock apps on the market.
> I thought I could make my own with Tasker, but running into issues.

My apologies ....  after a little checking it would seem you request should be attainable ... as for the zoom issue I recreated your description and it seems to work fine on my device. I have a moto droid 4 running 2.3.6.   Rooted
Tasker Version 1.3.3u2m

Here is what i tried and got the expected results..

Scene (172)
A1: Get Location [ Source:GPS Timeout (Seconds):10 Continue Task Immediately:Off Keep Tracking:Off ]
A2: Create Scene [ Name:T Continue Task After Error:On ]
A3: Element Map Control [ Scene Name:T Element:Map1 Mode:Move To Point Value:%LOC ]
A4: Show Scene [ Name:T Display As:Dialog Horizontal Position:100 Vertical Position:100 Show Exit Button:On Continue Task Immediately:On ]

Perhaps Matt might be on to something...

A few things I would try..

1. Show the scene first ( with continue task checked) then try the map control

2. If you are testing within tasker make sure you fully exit and save after making changes before testing again.

As for your tracking question after a quick search of the group I found this.

https://groups.google.com/group/tasker/browse_thread/thread/aacf7b4023602d82/1a057775c6e2ec42?hl=en&lnk=gst&q=tracking+with+map+element#1a057775c6e2ec42

Hope this helps... Rich..

d0g

unread,
May 13, 2013, 9:49:11 PM5/13/13
to tas...@googlegroups.com
Not sure what you mean by "editing the map element in the scene" ...
do you mean can I zoom in on the map manually once the scene is displayed? Yes.

d0g

unread,
May 13, 2013, 9:50:27 PM5/13/13
to tas...@googlegroups.com
Thanks for the tips ... I'll try again.

It may be as simple as


2. If you are testing within tasker make sure you fully exit and save after making changes before testing again.

!!
That looks interesting ... but what do they mean by "wait 10 seconds, go to 1" ?
Is that some kind of looping?
Where? In the task that opens the scene? Or within the scene itself?

thanks! 

Rich D

unread,
May 13, 2013, 10:10:28 PM5/13/13
to tas...@googlegroups.com

>
> That looks interesting ... but what do they mean by "wait 10 seconds, go to 1" ?
> Is that some kind of looping?

Yes, that will wait 10 seconds then goto action # 1 of the task

> Where? In the task that opens the scene? Or within the scene itself?

Element Add GeoMarker
Wait 10 Seconds
Goto ?

This would be used in the same task that showed the scene after the scene has been shown. So the goto action would just goto the line number of the action  'element add geo marker'.

You will need to include a test in the loop to stop it. Something like

A12.  Element Add GeoMarker
A13.  Wait 10 Seconds
A14. Stop if %PACTIVE matches *,NAME OF YOUR DOCK PROFILE,*
A15.  Goto 12

Jonathan Seymour

unread,
May 14, 2013, 2:09:20 AM5/14/13
to tas...@googlegroups.com
How about a task:

A1: GPS On
A2: Show Scene: Car Dock
A3: Element Map Control: Car Dock, Move to point, Value: %LOCN, If %LOC Isn't set. <- This goes to network location while GPS Searches
A4: Wait: 10 sec
A5: Element Map Control: Car Dock, Move to point, Value: %LOC, If %LOC Is set. <- This goes to GPS location

You might want to also add a 5 minute wait and repeat A5 so that it tracks you every 5 minutes.

Matt R

unread,
May 14, 2013, 12:08:18 PM5/14/13
to tas...@googlegroups.com
You said setting the zoom level wasn't working. So, in Tasker go to edit the scene and then select the map element of the scene to edit. If you change the zoom level in the map element edit window, is the zoom level changed when you accept the map element edit window change (and are returned to the scene editor window)?

Matt

Ze'ev Gilad

unread,
May 14, 2013, 1:49:31 PM5/14/13
to tas...@googlegroups.com
On Tue, May 14, 2013 at 9:08 AM, Matt R <matthew.r...@gmail.com> wrote:
You said setting the zoom level wasn't working. So, in Tasker go to edit the scene and then select the map element of the scene to edit. If you change the zoom level in the map element edit window, is the zoom level changed when you accept the map element edit window change (and are returned to the scene editor window)?

No, it does not change.


But I think I'm on to a better solution .. by embedding a webview element with URI https:/maps.google.com

This shows up really nicely, and has all the features of the Maps mobile website, BUT it doesn't show location. Every time Maps requests to 'allow share my location', it tries to open an external browser. Even though I selected 'Self Handle Links' and 'Allow Phone Access'

Vladimir Oz

unread,
May 22, 2013, 2:36:38 AM5/22/13
to tas...@googlegroups.com

Here is my Car Dock :) It consist of 4 separate scenes - 3 buttons in left bottom corner and 1 scene with 6 semitransparent multifunctional icon-buttons.

All scenes are blocked overlays. While it transparent it doesn't obscure map or home screen widgets. main scene can be quicly removed with one short tap. Icon buttons lies close to each other for safe place around scene - I can do smth. with map or else.

Button "Magic cylinder hat" calls Voice Command routine 

Button "Camera" takes a picture by short tap - from rear camera, by long one - from front camera.

Button "Car" triggers main CarDock scene

CarDock buttons Left to right top - down:

1 - Play-Pause-Launch player

2 - same as "Camera" (recently it was dedicated fo VideoReg app)

3 - Play-Pause-Rewind-Forward-Launch BeyondPod app

4 - triggers display brightness 1-100 or Auto(on/off)

5 - Launch Map with traffic data

6 - Call fixed contact - Launch Phone app


Ze'ev Gilad

unread,
May 22, 2013, 2:29:52 PM5/22/13
to tas...@googlegroups.com
That's very cool ... how do you have the map in the background? Is that Google Maps? Does it track your location?

Could you provide a link so I could try it out?

spasiba


--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/FH0ESaG6uo8/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
peace | سلام | שלום | friede | hasîtî | शान्ति | barış | 和平 | мир | paix | paz | béke | ಶಾಂತಿ | 평화 | صلح | สันติภาพ | ཞི་བདེ

Jonathan Seymour

unread,
May 22, 2013, 8:00:27 PM5/22/13
to tas...@googlegroups.com
This is very awesome.  I would love to recreate.  Some more information as above would be great!  What is the task actions to launch all of the scenes?  Is it simple those scenes overlayed on the google maps app?

Nice work.

Vladimir Oz

unread,
May 23, 2013, 1:59:15 AM5/23/13
to tas...@googlegroups.com
That's Yandex Maps. Red triangel - is my location. Color arrows - traffic data. I'm not sure there are maps for Your region. Google Maps and Navigation should work in the same manner.
Yeap, 4 scenes simply overlay ALL :) Maps, Music, Home Screen etc. More over, three buttons are movable :) But it's useles while I found perfect location.
A bit later I'll made some description. There is no any special or magic, though. Just icons with functions. Just extra-mega-super-WTFunctions :)

Vladimir Oz

unread,
May 23, 2013, 2:03:41 AM5/23/13
to tas...@googlegroups.com
It can be launched with simple Show Scene actions queue. I show buttons with JS, though - faster. Main scene just created and showed on demand.

Vladimir Oz

unread,
May 23, 2013, 5:48:22 AM5/23/13
to tas...@googlegroups.com
Here it is - post about my CarDock :)
as bonus - JS function
Reply all
Reply to author
Forward
0 new messages