• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How do i turn Data On every hour for 5 minutes with Tasker?

Andima

Android Enthusiast
Jul 31, 2011
449
42
www.thespicygadgematics.com
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!

Updated!

For others to use, this is the way that i have done it. :D
smoking-somb.gif


  • 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.
:D
 
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? :D
 
Upvote 0
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.
 
  • Like
Reactions: Rxpert83 and Andima
Upvote 0
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!
 
Upvote 0
OK finally I have done it. Thank you UncleMike. :D

Updated!

For others to use, this is the way that i have done it. :D:smokingsomb:

  • 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.
:D
 
Upvote 0
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. :D 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 :D ). :D
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones