Go Back   Android Forums > Android Discussion > Android Applications > Tasker
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

Like Tree4Likes
  • 1 Post By UncleMike
  • 1 Post By UncleMike
  • 1 Post By chrlswltrs
  • 1 Post By tatootie67

test: Reply
 
LinkBack Thread Tools
Old December 4th, 2012, 10:33 PM   #1 (permalink)
Member
Thread Author (OP)
 
Andima's Avatar
 
Join Date: Jul 2011
Gender: Male
Posts: 441
 
Device(s):
Carrier: Not Provided

Thanks: 208
Thanked 40 Times in 36 Posts
Thumbs up How do i turn Data On every hour for 5 minutes with Tasker?

Hello!

I already enable mobile data on every hour for 5 minutes with the Tasker app. I call this profile as "Mobile Data On". Now I want to turn the data connection on ("Mobile Data On" profile) only, if the Data and WiFi connections are off.

If the data and WiFi connections are already on, then the "Mobile Data On" profile should skip. I try to use Tasker app's variable option for this task, but I can't create a variable correctly. (lack of my knowledge)

Also I need to disable this mobile data on profile at 23.00 to 4.00AM.

How do i do it with the tasker?

Thank!

Quote:
Updated!

For others to use, this is the way that i have done it.
  • Created a new profile and give a name.
  • Then in the first context select "Time". Tick "Repeat" option and type 55 minutes. Also I adjust From 23.00 and To 4.00 and save it.
  • Then Task selection tap "New task"
  • Tap "Plus button" to add action.
  • added "Mobile data" and set "ON" (Net>Mobile data).
  • After that tap "Task" and added "wait" option.
  • Then in the Wait action I added 5 minutes.
  • After that again go to "Net>Mobile data" and set it "Off".
  • Than save the profile.

Also I added these optional contexts. (Disable this task enabling if data already on myself)

  • Tap and hold the "New profile time context".
  • Then next popup menu tap "add".
  • Added "State>Net Mobile network".
  • Tap "2G, 3G,3G-HSPA" (I don't have 4G, so i skip it).
  • Tap "Invert" option and tap save button.
  • Save the profile.

Andima is offline  
Last edited by Andima; December 13th, 2012 at 10:12 AM.
Reply With Quote
Sponsors
Old December 4th, 2012, 10:41 PM   #2 (permalink)
Senior Member
 
UncleMike's Avatar
 
Join Date: Nov 2009
Location: Central NJ
Posts: 1,858
 
Device(s): Unlocked Galaxy Nexus, Droid Bionic, OG Droid CM7.2
Carrier: Not Provided

Thanks: 38
Thanked 316 Times in 259 Posts
Default

To restrict when the profile activates, add a time context (I.e. 04:00-23:00). To prevent the profile from activating when you already have a mobile data connection, use a Mobile Network context with all options checked, including Invert.
Andima likes this.
__________________
Dropbox referrals: http://db.tt/GfR6Q7v8
UncleMike is offline  
Reply With Quote
The Following User Says Thank You to UncleMike For This Useful Post:
Andima (December 5th, 2012)
Old December 5th, 2012, 07:28 AM   #3 (permalink)
Member
Thread Author (OP)
 
Andima's Avatar
 
Join Date: Jul 2011
Gender: Male
Posts: 441
 
Device(s):
Carrier: Not Provided

Thanks: 208
Thanked 40 Times in 36 Posts
Default

Quote:
Originally Posted by UncleMike View Post
To restrict when the profile activates, add a time context (I.e. 04:00-23:00). To prevent the profile from activating when you already have a mobile data connection, use a Mobile Network context with all options checked, including Invert.
Thanks you friend I added "Mobile Network context state" to my existing "Mobile Data On" profile. Now that profile work only if Data and WiFi connections are not on. (That's what i want). However I have one issue.

I already have a "Mobile Data Off" profile for disable Data and WiFi connection after the 5 minutes, but now if i already manually enable data and WiFi connections, my second profile (Mobile Data Off) disable them. Are there any way to prevent it? I mean "Mobile Data Off" profile activate if, Data connection enable by the "Mobile Data On" profile?
Andima is offline  
Reply With Quote
Old December 7th, 2012, 07:48 PM   #4 (permalink)
Senior Member
 
UncleMike's Avatar
 
Join Date: Nov 2009
Location: Central NJ
Posts: 1,858
 
Device(s): Unlocked Galaxy Nexus, Droid Bionic, OG Droid CM7.2
Carrier: Not Provided

Thanks: 38
Thanked 316 Times in 259 Posts
Default

You can do all this with a single profile. I would eliminate the Mobile Data Off profile, and use the following in the Enter Task for Mobile Data On:

Mobile Data On
Wait 5 Minutes
Mobile Data Off

Make sure that Restore Settings is unchecked in the properties for the Mobile Data On profile. This way, although the profile will immediately exit (because your enter task causes one of the contexts to no longer be satisfied), it won't turn data back off when it exits, and will instead turn it off after 5 minutes.
Andima likes this.
UncleMike is offline  
Reply With Quote
The Following 2 Users Say Thank You to UncleMike For This Useful Post:
Andima (December 9th, 2012), Rxpert83 (December 9th, 2012)
Old December 9th, 2012, 07:46 AM   #5 (permalink)
Member
Thread Author (OP)
 
Andima's Avatar
 
Join Date: Jul 2011
Gender: Male
Posts: 441
 
Device(s):
Carrier: Not Provided

Thanks: 208
Thanked 40 Times in 36 Posts
Default

Quote:
Originally Posted by UncleMike View Post
You can do all this with a single profile. I would eliminate the Mobile Data Off profile, and use the following in the Enter Task for Mobile Data On:

Mobile Data On
Wait 5 Minutes
Mobile Data Off

Make sure that Restore Settings is unchecked in the properties for the Mobile Data On profile. This way, although the profile will immediately exit (because your enter task causes one of the contexts to no longer be satisfied), it won't turn data back off when it exits, and will instead turn it off after 5 minutes.
Friend I have no clear idea how to make,

Mobile Data On
Wait 5 Minutes
Mobile Data Off


in a one profile. Can you please tell me its steps?

Thanks!
Andima is offline  
Reply With Quote
Old December 9th, 2012, 09:29 AM   #6 (permalink)
Member
Thread Author (OP)
 
Andima's Avatar
 
Join Date: Jul 2011
Gender: Male
Posts: 441
 
Device(s):
Carrier: Not Provided

Thanks: 208
Thanked 40 Times in 36 Posts
Default

OK finally I have done it. Thank you UncleMike.

Updated!

For others to use, this is the way that i have done it.
  • Created a new profile and give a name.
  • Then in the first context select "Time". Tick "Repeat" option and type 55 minutes. Also I adjust From and To and save it.
  • Then Task selection tap "New task"
  • Tap "Plus button" to add action.
  • added "Mobile data" and set "ON" (Net>Mobile data).
  • After that tap "Task" and added "wait" option.
  • Then in the Wait action I added 5 minutes.
  • After that again go to "Net>Mobile data" and set it "Off".
  • Than save the profile.

Also I added these optional contexts. (Disable this task if data already on myself)

  • Tap and hold the "New profile time context".
  • Then next popup menu tap "add".
  • Added "State>Net Mobile network".
  • Tap "2G, 3G,3G-HSPA" (I don't have 4G, so i skip it).
  • Tap "Invert" option and tap save button.
  • Save the profile.

Andima is offline  
Last edited by Andima; December 13th, 2012 at 10:04 AM. Reason: added how do i done it. :D
Reply With Quote
The Following 2 Users Say Thank You to Andima For This Useful Post:
kewlbuddy (December 19th, 2012), Rxpert83 (December 9th, 2012)
Old December 9th, 2012, 01:34 PM   #7 (permalink)
Senior Member
 
chrlswltrs's Avatar
 
Join Date: Nov 2009
Location: Seattle
Gender: Male
Posts: 6,612
 
Device(s): Nexus4, iPad 2, Chromebook (Cr-48), and Win 7 netbook
Carrier: T-Mobile

Thanks: 1,127
Thanked 1,744 Times in 1,135 Posts
Default

Glad you got the answer you were looking for. Also, I have moved the thread to the Tasker section so that other looking for the same solution might more easily find your thread.
Andima likes this.
__________________
Nexus 4, rooted of course!
-Charlie Walters

Don't forget to click "Thanks" if someone helps you out
Report it if something offends you
chrlswltrs is online now  
Reply With Quote
The Following User Says Thank You to chrlswltrs For This Useful Post:
Andima (December 13th, 2012)
Old December 13th, 2012, 10:11 AM   #8 (permalink)
Member
Thread Author (OP)
 
Andima's Avatar
 
Join Date: Jul 2011
Gender: Male
Posts: 441
 
Device(s):
Carrier: Not Provided

Thanks: 208
Thanked 40 Times in 36 Posts
Default

Quote:
Originally Posted by chrlswltrs View Post
Glad you got the answer you were looking for. Also, I have moved the thread to the Tasker section so that other looking for the same solution might more easily find your thread.
Yes me too. I didn't think this is an important question, so I'm not mention how do i have make that profile. I just updated the thread an mention how do i have done it step by step (for the noob like me ).
Andima is offline  
Last edited by Andima; December 13th, 2012 at 10:13 AM.
Reply With Quote
Old December 13th, 2012, 11:11 AM   #9 (permalink)
Junior Member
 
Join Date: Oct 2012
Posts: 92
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 12 Times in 12 Posts
Default

I have a similar setup but I added a display on and off profiles so I can restore my data immediately upon screen on. Display off triggers my data on and off profile
Andima likes this.
tatootie67 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Discussion > Android Applications > Tasker
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:08 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.