1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Tasker and Auto Sync


Last Updated:

  1. Gelu

    Gelu New Member This Topic's Starter

    Joined:
    Aug 25, 2010
    Messages:
    1
    Likes Received:
    0
    Hey everyone,

    I just got tasker and have been trying to find a way to have auto sync turn on for a few minutes every hour to check mail, and update calendar and contacts so I can help conserve battery life. Is there any way to do this using tasker? Any help with this problem would be much appreciated!

    Gelu
     

    Advertisement
  2. UncleMike

    UncleMike Well-Known Member

    Joined:
    Nov 15, 2009
    Messages:
    2,319
    Likes Received:
    482
    You would do this with a repeating time context. Something to keep in mind is that repeating time contexts are normally active for 1 minute each time they repeat. This may not be long enough for Sync to do its job. But there's a way around this. Create a profile with a repeating time context:

    Context: Time [From: unchecked] [Repeat: Every 1 hour] [To: unchecked]

    Add actions to the Enter Task to turn Sync on, wait two minutes, and then turn Sync off:

    Auto-Sync [Set: On]
    Wait 2 minutes
    Auto-Sync [Set: Off]

    Due to the normal behavior of having repeating time profiles active for 1 minute, the way this is setup now, Tasker will turn off Sync after one minute, when the profile goes inactive (because that's how it was set when Tasker entered the profile). This will happen during the two minute wait. Here's where we get around this problem. At the profiles list screen, tap on the task for this new profile and tap Move to Exit. Tasker will now execute this task when it exits the profile instead of when it enters the profile. And since anything affected by an Exit Task is not restored by Tasker, because Tasker assumes that if you set it in an Exit Task, that's the way you want it set, regardless of how it was set before.

    You may need to adjust the wait time depending on how quickly Auto-Sync completes.
     
    dan55 and Gelu like this.
  3. angel_Dope

    angel_Dope New Member

    Joined:
    Sep 5, 2011
    Messages:
    1
    Likes Received:
    0
    Hi UncleMike, I've been trying to create this profile, but I've got a problem at the last step: I can't find the way to make it an Exit Task. If I tap on the task I've got four options: Add task, Edit, Name, ReSelect (or something like that, I've got it in Spanish) but nothing like "Move to exit" If I tap on the help icon of the task, it tells me that it is an Enter Task and that profiles generally can only have one Enter Task. Any idea of what have I to do?? Thank you for your help

    P.S.: If it helps, I've got the 1.1u2m versi
     
  4. expalpo

    expalpo Active Member

    Joined:
    May 24, 2010
    Messages:
    32
    Likes Received:
    6
    You can always use Synker, as a tasker plugin, to force sync specific accounts without having to turn auto-sync on. It's free.
     
  5. tdbone1

    tdbone1 Member

    Joined:
    Oct 4, 2010
    Messages:
    13
    Likes Received:
    0
    omg can you please tell me exactly how to do this?

    i cant figure it out
    thanks

    i would want it to sync my accounts every 5 minutes if possible
     
  6. expalpo

    expalpo Active Member

    Joined:
    May 24, 2010
    Messages:
    32
    Likes Received:
    6
    The website for synker has a simple profile for Sync on Wifi. You can check it out here

    I'm assuming what you want to do would be possible with a context that repeats every 5 minutes.
     
  7. expalpo

    expalpo Active Member

    Joined:
    May 24, 2010
    Messages:
    32
    Likes Received:
    6
    Below should be a good start for what you would like to do. With auto-sync off and the profile below... you should be able to control the period at which syncs occur.

    Tasker/Synker Sync Every X Minutes

    - Create a new profile
    - Select "Time" for the first context
    - Check the "From" time and set the "From" time to 0:00
    - Check the "To" time and set the "To" time to 23:59
    - Check "Repeat" and enter the period at which you would like syncs to occur (5 mins, etc)
    - During Task selection, add a new task
    - Enter the task name
    - Click the "+" button to add an "Action"
    - Select Plugin
    - Select Synker
    - Click edit
    - Select the specific account you would like to sync (Gmail, Facebook, etc)
    - Click Save
     
  8. dan55

    dan55 Well-Known Member

    Joined:
    Oct 23, 2010
    Messages:
    2,944
    Likes Received:
    292
    hi guys,

    just got Tasker to help me with my battery issues on my desire -and was totally stumped until i found this thread :D

    ive now got a auto 3g on/off profile running! :D great

    the challenge now is to prevent it turning 3g off if im using phone i guess :/ erm.......

    cheers
    dan

    ...oh, it stopped :/ no idea why - and wont go active now ??

    is was a no start or end time profile - says midnight as a greyed out default

    i did manually select 3g on via phone dialogue - but not sure why that stopped profile :/
     
  9. Cerasus

    Cerasus New Member

    Joined:
    Oct 23, 2011
    Messages:
    1
    Likes Received:
    0
    How would you go about to make additional conditions to this? Like increasing sync rate when charging, or at home? Or is it not possible to retrigger whole day time events?
     
  10. speaker2animals

    speaker2animals Member

    Joined:
    Nov 18, 2009
    Messages:
    20
    Likes Received:
    1
    I'm late to this thread. Let's say I wanted to turn off autosync when the screen is off. Would this work? Is there a chance it wouldn't reenable sync when the screen came back on and I need to add an additional task?

    Profile set for display off
    1 Action If %SCREEN ~ Off
    2 Set Auto-Sync Off
    3 Wait 25 minutes
    4 Set Auto-Sync On
    5 Wait 5 minutes (to give plenty of time)
    6 Goto 2
    7 End
     
  11. aysiu

    aysiu Well-Known Member

    Joined:
    Mar 6, 2011
    Messages:
    963
    Likes Received:
    261
    Wouldn't it make more sense to have two profiles, then?

    Context > Event > Display Off
    Task > Net > Auto-Sync Off

    Context > Event > Display On
    Task > Net > Auto-Sync On
     
  12. speaker2animals

    speaker2animals Member

    Joined:
    Nov 18, 2009
    Messages:
    20
    Likes Received:
    1
    Yes, but I don't want sync completely turned off, just periodic to increase battery life. Sounds like I should add the Display On profile to enable sync just to be sure.
     
  13. aysiu

    aysiu Well-Known Member

    Joined:
    Mar 6, 2011
    Messages:
    963
    Likes Received:
    261
    I haven't found turning off syncing to offer significant battery savings. Better to turn off data altogether, and then periodically turn it on.
     
  14. speaker2animals

    speaker2animals Member

    Joined:
    Nov 18, 2009
    Messages:
    20
    Likes Received:
    1
    That's disappointing to hear. Ideally I'd like to be able to turn 4G on and off (but leave 3G or 2G on for score updates, emergency weather updates, etc.) But I gather there's no setting for that yet?
     
  15. aysiu

    aysiu Well-Known Member

    Joined:
    Mar 6, 2011
    Messages:
    963
    Likes Received:
    261

Share This Page

Loading...