[APP] Tasker: Share your setup

Search This thread

RietHart

Member
Jul 29, 2010
37
5
Does the leash and collar ever irritate your neck?

rofl :D. Is there a way to make Tasker turn the screen off? I tried setting %screen to 0, but Tasker doesn't want me to :(.

Also, I have a challenge. A profile that detects your first Gcal event of the day, then sets an alarm 1hr (or x minutes) before that event. That is waaay over my head, but maybe one of you guys got the skills to figure it out?
 

hagure

Member
Mar 1, 2010
23
1
Launching Handcent's Quick Compose feature. (via intents?)

What's up fellow Taskers!

I've been trying to figure out for a while now how to create a Task
that will launch the Quick Compose feature of Handcent.

Normally, it is accessed by long pressing the search button, but I
have also been able to bring it up in Launcher Pro utilizing it's "Activity"
shortcut. Here's what that looks like in the LP config file:

Code:
<string>intent:#Intent;action=android.intent.action.MAIN;component=com.handcent.nextsms/
com.handcent.sms.ui.HcQuickComposeActivity;end</string>

I looked through Handcent's manifest.xml and found this:

Code:
   <activity android:theme="@android:style/Theme.Dialog"
android:label="@string/menu_item_handcent_quick_compose"
android:name="com.handcent.sms.ui.HcQuickComposeActivity"
android:taskAffinity="com.handcent.sms.quickcompose"
android:launchMode="singleInstance" android:configChanges="locale|
keyboardHidden|orientation" android:windowSoftInputMode="stateHidden|
adjustPan">
        <intent-filter>
            <action
android:name="android.intent.action.SEARCH_LONG_PRESS" />
            <category android:name="android.intent.category.DEFAULT" /

        </intent-filter>
    </activity>

When it's activated (through a Search Long Press, or through LP), this is what shows up in the log:

Code:
I/ActivityManager( 1123): Displayed activity com.handcent.nextsms/com.handcent.sms.ui.HcQuickComposeActivity: 2072 ms (total 2072 ms)

Any intent geniuses know of a way I can do this in Tasker? I've been plugging in all kinds of things in the Action Intent & Component Intent, but haven't figured it out (trial & error, I really don't know what I'm doing, let alone the difference between Action & Component).

Any help would be greatly appreciated!
 

DroidBois

Senior Member
Jul 1, 2010
673
22
Canberra
You do NOT want net location, as it can be HUNDREDS of miles off. Unless your commute is very long, in which case I see why you want to send your wife automated SMS ;)

Use CellIDs, but you'll have to do a bit of training or you'll get false positives if it jumps on a tower ID it doesn't recognize. But if you're in the car, you might as well do GPS location. In my experience even polling GPS every 10m has VERY little impact on my battery life (on top of the other stuff I have going anyway, I see no difference).

How you do the "not on holidays" part will be interesting... A cascading task of STOP IF's I suppose?

I thought net based positioning was accurate within a kilometre or two? In which case I would have thought it would be fine. Either way I think I am better off to trigger it with a exit-work variable between certain times, and say if speed goes above 10KM/h?

I guess you're right, GPS scanning is fine as it doesn't activate unless the less power hungry ones aren't triggered anyway, like say a variable? Then I could use another variable to switch it off until the next day - so

1) leave work - clear 'work' variable - set 'leftwork' variable.

2) on the way - triggered if 'weekday' is set - 'work' is cleared and 'leftwork' is set after 3pm AND moving above 10km/h? AND 'sent' is not set? 'Leftwork' stops it triggering if I am home sick that day and haven't been in to work - set 'commute' - set 'sent' - 'sent' then stops it from triggering again or wasting power scanning for location.

3) Approaching home triggered if 'commute' is set - send message - clear 'commute' - this then stops it from triggering again or wasting power scanning for location.

Only variable still set is 'sent' - so I could clear that the next morning in my 'morning' profile that runs every morning depending on whether it's a weekday or weekend / public holiday.

As for how I detect public holidays, Barry Meade in Australia maintains a public holidays calendar with the state in the location field, so I set the phone to scan that calendar for my state in the location field. Would this take much power though?

I guess there are public google calendars for other countries / religions etc too.

I've got a nifty message that tells my wife I'm coming in for landing at speed and altitude.

Would be fun to put a check in there - if altitude > ground level + 500m then that means I'm flying so send message 'I won the lottery pack your bags hon!' haha..

On another note, I have now set a 'sleep' mode that just silences the phone and turns off mobile data with APNdroid - it's easier than airplane mode and also saves a heap of power (mobile data just kills the battery), then turns mobile data back on again in the morning and syncs everything and makes lots of noise, except on weekends or public holidays in which case it won't be until after 9 or 10am because I may be sleeping or just don't care until that point.

For 'weekend' I have used a range of profiles based on Friday night, Saturday and Sunday day and Saturday night, because Sunday night is a 'school night' so I want the phone to wind down on Sunday night, but not Friday or Saturday night, but also not fire up in the morning on Saturday or Sunday morning.

This seems complex but it also seems like a pretty common requirement so if this approach seems ok I will submit the profiles to the Wiki as they should work for anyone.
 

khaytsus

Senior Member
Apr 8, 2008
7,258
1,175
Central Kentucky
What's up fellow Taskers!

I've been trying to figure out for a while now how to create a Task
that will launch the Quick Compose feature of Handcent.

Does SMS Compose not do what you want? It starts it, puts some text in, then you can edit and send?

Phone->Compose SMS

I thought net based positioning was accurate within a kilometre or two? In which case I would have thought it would be fine. Either way I think I am better off to trigger it with a exit-work variable between certain times, and say if speed goes above 10KM/h?

Entirely depends, but I often show up in Kansas on my cellphone by my IP, which is what is used.. Could be up to your cell provider how up to date their database is, and if they've put in accurate information into whatever is used for the geo-ip stuff. :)

Overall yes, please put it into the wiki when you're done, sounds like an interesting one! I'm working on one right now myself, right now I track myself and upload to my website, based on a Windows Mobile program called TrackMe. I'm adding offline mode and the ability to upload data later if the current attempt fails.. Somewhat convoluted in Tasker, but not that difficult. :)
 

hagure

Member
Mar 1, 2010
23
1
Does SMS Compose not do what you want? It starts it, puts some text in, then you can edit and send?

Phone->Compose SMS

Yeah, not quite. For one, I mainly use Quick Compose for the easy mic button (I know this functionality can be sorta hacked through with SL4A, but that's shaving more yaks than I am here). And secondly, since I have more than one SMS message, instead of going straight to compose, it pops up a selection between Handcent & Messaging, and then just goes to the compose screen. Not "quick" enough =)

Also, I'm trying to learn a little bit more about how intents work.

(Happy) Thanks(Giving!) for your input though.
 

kevinsmbuk

Senior Member
Mar 2, 2009
136
0
I have just got tasker an it's an incredible app, definately the best app I have downloaded!

I have an IN CAR profile, that:

Turns wifi off
Turns bluetooth on
Turns gps on
Connects to my in car stereo for audio etc...

All when power is connected.

Then when it's connected to the car stereo via bluetooth it:

Turns Zimly media player on

But, when I pull the power out and bluetooth connection is de-established I want it to kill Zimly app, but I can't seem to work that out!

Any Ideas?
 

khaytsus

Senior Member
Apr 8, 2008
7,258
1,175
Central Kentucky
I have just got tasker an it's an incredible app, definately the best app I have downloaded!

I have an IN CAR profile, that:

Turns wifi off
Turns bluetooth on
Turns gps on
Connects to my in car stereo for audio etc...

All when power is connected.

Then when it's connected to the car stereo via bluetooth it:

Turns Zimly media player on

But, when I pull the power out and bluetooth connection is de-established I want it to kill Zimly app, but I can't seem to work that out!

Any Ideas?

Tasker can't kill apps, it's not in the API. You might look to see if this app has Intents that Tasker can send it, as that's the best possibility. Intents are internal messaging between Android and Apps and depending upon support you can tell programs to do whatever, like Exit, Play, etc..

Never heard of Zimly, I assume that Media->Media Control->Stop or similar things in the Media section don't affect this player? If it can stop the playing, then the program is effectively stopped and will be killed by the Android system in the future.
 

kevinsmbuk

Senior Member
Mar 2, 2009
136
0
Tasker can't kill apps, it's not in the API. You might look to see if this app has Intents that Tasker can send it, as that's the best possibility. Intents are internal messaging between Android and Apps and depending upon support you can tell programs to do whatever, like Exit, Play, etc..

Never heard of Zimly, I assume that Media->Media Control->Stop or similar things in the Media section don't affect this player? If it can stop the playing, then the program is effectively stopped and will be killed by the Android system in the future.


What about 'Select Action Category' -> App -> Kill App?

Found it, but just doesn't seem to work, think I need more commands to run it, maybe some variables.
 

sheepforwheat

Senior Member
Jun 9, 2010
58
8
Set Alarm Clock at different Time each day

Please Help:

I have a profile that detects what time i get to work based on my cell location. I want to be able to have tasker set an alarm, on the fly, 8 and a half hours after i get to work, so that i don't have to manually set an alarm for when to go home.

I see that you can pass data to an app using a tasker tast. So I am thinking there must be some way to use this mechanism to pass parameters to set an alarm at a defined time to the built-in alarm clock app.

I do not want to use the calendar entry and notification method. I want to create alarm clock times.
 

mrtiger

Member
Dec 27, 2007
23
0
I got a nice example of this working, so you should be able to modify what I've done for your needs.. What this does is puts a notification of the current temp. Just look through the XML in your web browser to figure out how to parse the rest of the data you may need.

New Task: Weather
Action: Variable Set
Name %ZIPCODE to (my loc)

Action: HTTP GET
Server hxxp://www.worldweatheronline.com/feed/weather.ash?key=%KEY&q=%ZIPCODE (Change the xx to tt)
Mime Type text/xml

Action: Variable Split
Name %HTTPD
Splitter <temp_F>

Action: Variable Split
Name %HTTPD2
Splitter </temp_F>

Action: Notify
Title: The Current Temp is %HTTPD21

Edit: FYI, i think http://wiki.wunderground.com/index.php/API_-_XML is a little better for US based weather data, and no key is needed

I have som problem with thisone.
i yust get a message on the notify that : The current temp is clear:-11C </title> <link>http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=%ZIPCODE

Can someone plz tell me whats wrong here.

Here is my script:

New Task: Weather
Action: Variable Set
Name %ZIPCODE to (EUR|NO|NO012|FREDRIKSTAD)

Action: HTTP GET
Server: http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=%ZIPCODE
Mime Type text/xml

Action: Variable Split
Name %HTTPD
Splitter <temp_F>

Action: Variable Split
Name %HTTPD2
Splitter </temp_F>

Action: Notify
Title: The Current Temp is %HTTPD21
 
Last edited:

kevinsmbuk

Senior Member
Mar 2, 2009
136
0
Just a thought referencing to my previous problem of killing an the audio app, I don't actually need to, I can just pause it and then return to the home screen.

But how can I set it up so my phone knows it has disconnected from my car's bluetooth headunit/cd player?
 

kevinsmbuk

Senior Member
Mar 2, 2009
136
0
I think I may have figured it.

1. Add an exit task to bluetooth connected.
2. Action: Media Control cmd toggle pause, simulate media button.
3. Action: Go Home

Havent tested it in car, but works in principle!!!

All I need it to do now is turn the screen off, but cant find an option for that?
 

khaytsus

Senior Member
Apr 8, 2008
7,258
1,175
Central Kentucky
I think I may have figured it.

1. Add an exit task to bluetooth connected.
2. Action: Media Control cmd toggle pause, simulate media button.
3. Action: Go Home

Havent tested it in car, but works in principle!!!

All I need it to do now is turn the screen off, but cant find an option for that?

Turning the screen off is not directly possible... But maybe read these two posts..

http://groups.google.com/group/task...12c91189335?lnk=gst&q=screen#4620212c91189335

http://groups.google.com/group/task...7e3721c98f0?lnk=gst&q=screen#6ee457e3721c98f0

Which lead to this..

http://code.google.com/p/proximitytoolextension/downloads/list

I have not yet tried this myself, and not 100% sure it's compatible with all phones etc etc...
 

rondietz1

Senior Member
Jan 23, 2008
198
20
Car charger vs wall outlet

This may be obvious but, is there a difference detected that can be used between plugging the phone into a car charger vs plugging it into house power? Does it detect the difference between 12v and 110v that can be used as different states?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    Tasker - Scheduled Nandroid Backup with File Management [V4]

    Profile Aim

    DUE TO CHANGES IN ROM MANAGER THIS IS CURRENTLY NOT WORKING! :mad:

    Working on a fix....


    To take a nandroid backup whilst you sleep and manage the backup files so no more than two are stored.

    Downloads

    ROM Manager Free from the market
    Locale Execute Plugin Free from the market
    Icons used are Glossy Silver HD free from 'Download more icons' prompt in Tasker

    Profile Explanantion

    V2 - [Dropped] (But good for educational purposes)
    Code:
    There are only a few actions to explain in more detail:
    
    The task [B]NandroidFiles[/B] deletes the Nandroid backups from two days before. I set this as two days so not to use too much storage space and to make sure there was a spare backup in case the daily backup task failed for any reason.
    
    The back up folder is found in [I]sdcard/clockworkmod/backup/[/I] and automatically named [I]scheduledbackup-2011-06-02-05.00.00/[/I]
    
    The '2011-06-02' is initially a problem as this is almost the opposite of Tasker's inbuilt [B]%DATE[/B] variable formatted as '6-2-11'. We need to use Tasker's [B]%DATE[/B] minus two days to match it to the dated backup file we want to delete.
    
    Following the task through, you'll see that we transfer [B]%DATE[/B] to the created variable [B][B]%NDATE[/B][/B] before 'variable splitting' it by the '-' to leave 6 2 and 11 in [B]%NDATE1[/B], [B]%NDATE2[/B] and [B]%NDATE3[/B] respectively.
    
    So, it's the 2nd of June for the sake of this example and using basic maths would mean that two days before this would be the 2-2 of June = 0th of June!? That's obviously no good to us... It should be the 31st May, so how do we easily do that...?!!? :eek: 
    
    The answer is to use a 'pseudo-array' from [URL="http://groups.google.com/group/tasker/browse_thread/thread/1e1c531b900312e9#"]this thread[/URL] with credit to the brains of [URL="http://androidforums.com/members/unclemike.html"]UncleMike [/URL]. Now don't take a look at the below and give up reading, because it's actually a very simple and useful process. Honest(!): 
    
    If we are in the 6th month of the year which is June and our -2 days are taking us back to the number of days in May, then we need to quickly reference the 6th month to the 31 days of May. Have a look below and you'll see that between the brackets of (6) is the number 31.
    [CODE]x(1)31(1)(2)31(2)(3)28(3)(4)31(4)(5)30(5)(6)31(6)(7)30(7)(8)31(8)(9)31(9)(10)30(10)(11)31(11)(12)30(12)x
    We set the above to a created variable of %NMONTH and using a very simple variable split of the current month number of 6, which in the previous split was set to %NDATE1 we get %NMONTH1 to be set to 31!

    Using this method we can say that if the current day of the month is less than 3, then we need to use the above to find out the number of days in the previous month. So, we can then add the current day of the month which for this example is the 2nd of June, to the 31 days in May, 31+2=33 Taking 2 from this gives us 31! Sorted! Other than that we now need the month to show as '5' rather than the current '6'.

    We know that if the day of the month is less than 3, we are going to be using a date from the previous month - so that is the IF statement we use. IF the day of the month %NDATE1 is less than 3, then we know we need to -1 from the month number %NDATE2. Sorted!

    I explained that in as much detail as I could for you. I hope it made sense. Once we've done the above maths we 'variable join' the date together in the same format as the clockmod backup folder.

    The next problem we have is that the backup, although triggered by a time context of 5am, can actually be delayed. I've had a backup named scheduledbackup-2011-06-02-05.00.07/. Unfortunately, pattern matching is not yet available in Tasker to use on file names, otherwise using the wildcard of '*' to delete the file scheduledbackup-2011-06-02-05.00.0*/ would have been a simple option.

    Remembering that the date format %NDATE of the backup is needed to reference the file, we also cannot simply use locale execute to delete the file scheduledbackup-%NDATE-05.00.0*/. Tasker doesn't pass variables to it in that way.

    The solution is to ask locale execute to delete files that are listed in a .txt file on the storage card. This way, we can tell Tasker to write scheduledbackup-%NDATE-05.00.0*/ to a text file beforehand. That's not strictly true though, as stated above, pattern matching of '*' is not available (yet) in file names.. so as a workaround for now, we write scheduledbackup-%NDATE-05.00.01/, scheduledbackup-%NDATE-05.00.02/, scheduledbackup-%NDATE-05.00.03/ etc to the text file to make sure all options are covered.

    For your reference, locale execute plugin uses the command:
    Code:
    @! xargs rm -rf < /mnt/sdcard/nandroiddel.txt
    The '@!' stops the command from being flashed up on the screen. The remainder of the command tells locale to delete the files listed in the file nandroiddel.txt.

    I think that's about it!? A nandroid backup whilst you sleep, with the backup files managed...

    Sorted?[/CODE]

    V4 - (Very Easy)

    Forces closes on the latest release, when trying to use the ROM manager intents have meant another way was needed to get Tasker to manage this. BIG thanks to waydownsouth who cracked it in style.

    The first profile will check the version number you are running before writing a file to the cache/recovery folder, which will trigger the automatic backup when booting into recovery.

    The file management is done in the same way as version 3.

    Version 2 used a long-winded work-around to manage the backup files. But thanks to those mentioned in the credits below, there is a much, much more simple way using Locale Execute Plugin and a Linux command:

    Code:
    find /mnt/sdcard/clockworkmod/backup -mtime +1 -exec rm -rf {} \;

    The '+1' in the above command denotes how many days prior to today the backups will be deleted. It's up to you to alter this number depending on how many backups you wish to keep and how often you make them.

    The days and time are configurable within the profiles.

    Any questions, let me know!

    Credits
    waydownsouth for sharing the auto-backup work-around and help with syntax
    heywtf for the discovery of the auto-backup intent
    UncleMike for his genius 'pseudo-array'.
    crachel the Tasker guru for letting me hijack his thread and agreeing to answer all of your questions ;)

    As always, the thanks button is the only way I know I should keep posting this stuff :eek: And please don't forget the users above too!

    Note: You will need to grant SuperUser permissions for each command prior to the profile running correctly. I would suggest you add a STOP action above the final 'execute reboot' command, then keep pressing 'test' until SuperUser has stopped requesting permissions - remove the STOP action and the task will run automatically thereafter.

    IMPORTANT NOTE: After importing the profiles ensure you 'apply' out of Tasker so they are saved. If you run the profiles without doing this, the profiles will not be there after the reboot! Please always backup your Tasker profiles initially too. Thanks to waydownsouth for pointing this out!
    8
    Here's the script I came up with to do nandroid backups. Perks of using my script rather than brandall's profiles (god bless his soul and peace be upon him):
    • Tasker profiles are SUPER easy to set up - single action of executing the script, and the profile intent is less obfuscated
    • ROM and kernel information appended to backup

    I'm using CWM4 (and apparently it's not officially supported on my phone, ROM Manager thinks I don't have a recovery), so the line that concerns getting the user's version of CWM doesn't make a lick of difference to me - I could use someone to look over my script and test it out for me; seems to work on sample files I've gotten though.

    Credits are to brandall, heywtf, waydownsouth, et al. Thanks for making this work possible!

    Code:
    #!/system/bin/sh
    
    # nandroid.sh
    # Written by: strictlyrude27
    #             strictlyrude27@gmail.com
    # Date: 22 July 2011
    #
    # This script reboots your device into recovery mode and performs a Nandroid
    # backup - the name of the backup is [date-time_rom_kernel]. This requires super-
    # user permissions to run. Execute it in shell or via Locale Execute Plugin
    # (either via Tasker or Locale).
    #
    # Acknowledgements:
    #     brandall (http://goo.gl/ejhov)
    #         - for developing the original Tasker Nandroid profile scheme
    #           (original scheme at http://goo.gl/s9mp9)
    #     heywtf, waydownsouth, et al
    #         - "If I have seen a little further, it is by standing on the shoulders
    #            of giants." --Isaac Newton
    #
    # CHANGELOG
    #     8/7  - cleaning up the script nicely thanks to waydownsouth's input! 
    #     7/22 - initial release
    
    settingsfile=/sdcard/clockworkmod/.settings
    cmdfile=/cache/recovery/extendedcommand
    last_log=/cache/recovery/last_log
    
    # Build time/date, ROM, kernel information
    thetime=`date +%F-%I.%M.%S%P`
    kernel=`uname -r`
    
    rom=`getprop ro.modversion | sed 's/CyanogenMod/CM/'`
    
    # test for last_log first...
    if [ -e $last_log ]; then
        cwm=`sed -n 's/.*ClockworkMod Recovery v\([0-9]\).*/\1/p' $last_log`
    elif [ -e $settingsfile ]; then
        cwm=`sed 's/.*recovery_version":"\([0-9]\).*/\1/' $settingsfile`
    fi
    
    cwm=${cwm:-3}
    
    if [ "$cwm" -le 2 ]; then
        cat > $cmdfile<<EOF
    print "Tasker Nandroid Backup: ${thetime} ${rom} ${kernel}"
    backup_rom /sdcard/clockworkmod/backup/${thetime}_${rom}_${kernel}
    EOF
    
    elif [ "$cwm" -ge 3 ]; then
    # CWM3+ syntax
        cat > $cmdfile<<EOF
    ui_print("Tasker Nandroid Backup: ${thetime} ${rom} ${kernel}");
    backup_rom("/sdcard/clockworkmod/backup/${thetime}_${rom}_${kernel}");
    EOF
    fi
    
    reboot recovery
    7
    can you please explain how you did this? I'm guessing you used secure settings for failed login attempts right?
    how did you make tasker to send the taken picture via email? please share your setup ;)
    thanks

    Thanks toody for your reminder, I lost track of tasker thread for awhile. Some friends of mine think this setting is useless; gladly there are some guys like my stuffs :eek:

    Here go the profile/ task setting:

    You need to install Secure Settings from Google Play, once open it, slide to tab "Helper" and install Secure Setting Helper from there (this is activate all functions of Secure Settings included Failed Login Attempts"

    Install SL4A from Google Play, open it -> click on menu -> Add -> Python 2.6.2 and install it (this will be used to send your email)

    Set pattern lock for your phone

    Set Profile:
    Add new profile -> name it watever you want -> State -> Plugin -> Secure Settings -> Configuration: Edit -> Failed Login Attempts -> type number of attempts you want (remember to tick Device admin Enabled) -> Save -> Done

    Set Tasks:
    New Task -> name it yourself
    Click + -> Net -> Mobi data -> On
    Click + -> Net -> Wifi -> On
    Click + -> Task -> Wait -> 2 seconds
    Click + -> Media -> Take Photo -> Camera: Front -> Filename: %PHOTONUMBER
    Click + -> Variable -> Variable set -> Name: %PHOTONUMBER ->To: 1
    Click + -> Variable -> Variable add -> Name: %PHOTONUMBER -> Value: 1
    Click + -> Variable -> Variable set -> Name: %EMAIL_USER -> To: your Gmail address (only Gmail support so far)
    Click + -> Variable -> Variable set -> Name: %EMAIL_PSWD -> To: your Gmail password
    Click + -> Variable -> Variable set -> Name: %EMAIL_TO -> To: email address you want to send to
    Click + -> Variable -> Variable set -> Name: %EMAIL_ATTACH -> To: /sdcard/DCIM/Tasker/%PHOTONUMBER.jpg
    Click + -> Script -> Run SL4A Script -> Name: sendemailA.py -> Pass Variables: %EMAIL_USER,%EMAIL_PSWD,%EMAIL_TO,%EMAIL_ATTACH
    Click + -> Net -> Mobi data -> Off

    And it's good to go, you can add some more fancy actions like vibrate notification, or say out loud "intruder" or something :victory:

    I also have another to profile to delay screen lock if phone is used for 30 minutes, later than that it will resume as screen lock (pattern lock), Let's me know that you are interested
    5
    @Brandall,

    There is another method of firing a backup rather than the ROMmanager intent.

    when ClockworkMod boots, it looks to see if /cache/recovery/extendedcommand exists and executes it if found...

    all you need to do is create the extendedcommand file with the following contents

    Code:
    ui_print("Tasker Nandroid backup");
    backup_rom("/path/to/backup/folder");

    then via locale execute: reboot recovery

    been using this method for quite a while now.

    HTH :)
    4
    i have problem with tasker
    i created profile when i use app navitel - tasker should activate gps
    but nothing happens
    before at android 2.1 all worked fine profiles rolled up from backups

    In Gingerbread, Tasker can no longer toggle the GPS. This is not a problem however, as under menu/settings/location & security tick 'Use GPS satellites'.

    Even if this makes a widget show that GPS is 'on' - it isn't. Google will tell you that in Gingerbread, ticking this option means that GPS is ready to use when required and will use no additional resource.

    I've posted this same reply to many users who tick the box and then report back that indeed, it did use no battery power... :)

    So, you need to remove all of your GPS actions that you used in 2.1, as now when you start navigation or use a GET location action, GPS will automatically start and then stop after... Sorted!

    Hope that helped.