Simply use the "empty icon" as the notification icon while running Tasker in the foreground. No icon will show in the status bar.
The "empty icon" is the first one in the list of choices, ie the one with no picture.
To get around your problem with wait actions, I suggest you change your tactics just a bit. Try adding a time based component to your profile triggers. Set it up to run from 00:00 to 23:59 repeating every 5 minutes whenever the cell signal is low OR airplane mode is on. You'll want to come up with some way to disable the profile if you really want to stay in airplane mode, but that should be easy. Then you don't ever have to worry about whether the wait action worked or not.
> Hi Hippo Man, i have very similar problems
It sounds like separate issues. Unless you have tasker set to Not run in foreground in the tasker preferences.
where I createad a loop just like yours that checks if %TIMES matches my time variable (which is calculated at the beginning of the task). I have a perform task action that is supposed to run every 3 hours but lately it has run about 3 times, then waits maybe 12 hours and then above mentioned "perfom task" action runs like 6 times in 2 minutes.
This sounds a bit buggy but the only way to tell is to view the run log to what is running when.. menu / more / run log
>
> I think that the time context profiles are handled in a different way
They are definitely handled different the a wait action.
but my actions need to run at different times depending on when i launch the task, so it would be a lot less dynamic that way for me. Is there a way for a task to modify when a profile is supposed to run?
You can dynamically set a Time context. Check the user guide. You will need to have 'beginner mode' off in the tasker preferences.
You can dynamically set a Time context. Check the user guide. You will need to have 'beginner mode' off in the tasker preferences.
When not in Beginner Mode, it's possible to specify a global user variable as the source of theFrom Time
orTo Time
by clicking on one of the rotating-arrow icons.
_user guide. You will need to have 'beginner mode' off in the tasker preferences.
>
> Yes, but the docs seem to indicate that only the From Time and To Time can be dynamic, not Repeat.
True.. but as usual with tasker there is a way.
I have done this with a few profiles. Simply set the From: and Till: to the same variable. Then within the task reset the variable to the next time you want it to fire.
>
> Yes, but the docs seem to indicate that only the From Time and To Time can be dynamic, not Repeat.True.. but as usual with tasker there is a way.
I have done this with a few profiles. Simply set the From: and Till: to the same variable. Then within the task reset the variable to the next time you want it to fire.
> My original issue had to do with Tasker sometimes being swapped out by the OS, thereby causing my "wait" calls to wait forever. A time context was suggested as a possible solution for this, but if Tasker is swapped out, wouldn't the time contexts also fail to fire off?
Yes, they would still fail if tasker had not restarted by the time the context was set to fire.
I really do not think using a time context instead of a wait will make tasker any less likely to be killed by android, and i do not think that is what Blanders post was about.
I believe He was pointing out the fact that a time context will survive a tasker restart where a wait will not.
For example if I wanted to wait 10 min and flash "hello"
1. Wait 10 min
2. Flash "hello"
If tasker is killed then restarted within the ten minutes the task is killed and it will never flash.
However If I set a time context to fire a profile which in turn starts a task that flashes "hello" in ten minutes, then if tasker is restarted within the ten minutes then you will still get the flash.
> My original issue had to do with Tasker sometimes being swapped out by the OS, thereby causing my "wait" calls to wait forever. A time context was suggested as a possible solution for this, but if Tasker is swapped out, wouldn't the time contexts also fail to fire off?Yes, they would still fail if tasker had not restarted by the time the context was set to fire.
I really do not think using a time context instead of a wait will make tasker any less likely to be killed by android, and i do not think that is what Blanders post was about.
I believe He was pointing out the fact that a time context will survive a tasker restart where a wait will not.
...
while true
do
/invoke/some/command/which/forces/my/device/to/wake/up
sleep 300 # ... assuming that this is not inhibited by the device sleeping
done
> I have noticed that even if I keep Tasker in the foreground by means of using its notification icon, I often find my Wait calls taking much, much longer than specified. It appears as if the device is sleeping and preventing Tasker from running, even when it is in the foreground.
Can you provide a example? A exported task description with a copy of the run log?
I'm not sure this is exactly what you are looking for, but I used to run this simple profile to keep my device from going into deep sleep. I had a requirement to be able to receive email overnight because of being on call. Before doing this, I wouldn't get the critical email until I woke up the next morning and looked at my phone. This simple profile using secure settings solved the problem for me.
Profile: Prevent Deep Sleep (58)
Enforce: no Notification: no
Time: From 23:00 every 30m Till 06:00
State: Power [ Source:Any ]
Enter: Prevent Deep Sleep Enter (55)
A1: Secure Settings [ Configuration:Screen Dim
1 Second Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
You'll notice this doesn't use a wait to make the loop.It's a repeating context and was very reliable. Perhaps something similar might help you.
Scott
> I have noticed that even if I keep Tasker in the foreground by means of using its notification icon, I often find my Wait calls taking much, much longer than specified. It appears as if the device is sleeping and preventing Tasker from running, even when it is in the foreground.
Can you provide a example? A exported task description with a copy of the run log?
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Can you provide a example? A exported task description with a copy of the run log?
... This simple profile using secure settings solved the problem for me.
I only included the power context because I didn't want it running if I took my phone and responded to a call, hence it would be on battery. In that situation it wasn't necessary to be running.
Scott M.
--
I only included the power context because I didn't want it running if I took my phone and responded to a call, hence it would be on battery. In that situation it wasn't necessary to be running.