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

Time trigger doesn't work

Holmes77

Lurker
I think this problem appeard once updated to 5.1.1

The task should run every day at 9pm. (The task sets alarm for the next day based on calendar event - it's irrelevant). It worked fine for a year or so and stopped. To be more specific - the task fails to run if the phone is iddle for some time, if I set it to run in a minute or two and watch the screen (or even if the screen is off) - it works.

Anyone?

SGS6 Edge, Lollipop 5.1.1
 
As I mentioned - the task is not a problem, the profile ("run at 9pm") is. Changing task linked to this profile doesn't change anything, it still doesn't run.

The profile is as simple as it can be: + -> Time -> From: 21.00 To 21.00
 
Last edited:
And of course running the task manually (also step by step) works fine.
Accessibility for tasker set on. Tasker's monitoring preferences - default.
 
I am running on a Windows Desktop.

On my Droid Turbo I select the profile and choose export and choose description in e-mail. I e-mail iot to my desktop. When it arrives I cut and paste it into a post ... like ...

Profile: tlaWallpaper
Time: Every 2m
Enter: tlaWallpaperEnter
A1: Variable Set [ Name:%WPwork To:0 Do Maths:Off Append:Off ] If [ %WPwork !Set | %WPwork = 36 ]
A2: Variable Add [ Name:%WPwork Value:1 Wrap Around:0 ]
A3: Set Wallpaper [ Image:tlanet/image/wallpaper/%WPwork.jpg Scale:On Crop:Off ]

... that changes the wallpaper every 2min from a collection.

... Thom
 
Here it is. The code is not very elegant, but does the work. I didn't change it recently. Names and variables in Polish :)


Profile: Auto Budzik (71)
Time: 21:00
Enter: Auto Budzik (2)
Stay Awake
A1: Variable Set [ Name:%Test To:0 Do Maths:On Append:Off ]
A2: Variable Set [ Name:%jutro To:%TIMES + (24*3600) Do Maths:On Append:Off ]
A3: Test App [ Type:Calendar Title Data:%jutro Store Result In:%Jutrodyz ]
A4: Test App [ Type:Calendar Title Data:%TIMES Store Result In:%Dzisdyz ]
A5: Test App [ Type:Calendar Calendar Data:%jutro Store Result In:%Jutrosw ]
A6: Test App [ Type:Calendar Calendar Data:%TIMES Store Result In:%Dzissw ]
A7: Variable Add [ Name:%Test Value:1 Wrap Around:0 ] If [ %Dzisdyz() ~R Dyżur ]
A8: Variable Add [ Name:%Test Value:4 Wrap Around:0 ] If [ %Jutrodyz() ~R Dyżur ]
A9: Variable Add [ Name:%Test Value:16 Wrap Around:0 ] If [ %Dzissw() ~R Święta | %DAYW ~ sobota/piątek ]
A10: Variable Add [ Name:%Test Value:32 Wrap Around:0 ] If [ %Jutrosw() ~R Święta | %DAYW ~ sobota/piątek ]
A11: If [ %Test ~ 0/4/16/20 ]
A12: Variable Set [ Name:%Godz1 To:6 Do Maths:Off Append:Off ]
A13: Variable Set [ Name:%Godz2 To:45 Do Maths:Off Append:Off ]
A14: Goto [ Type:Action Label Number:1 Label:Set ]
A15: End If
A16: If [ %Test ~ 1/17 ]
A17: Variable Set [ Name:%Godz1 To:7 Do Maths:Off Append:Off ]
A18: Variable Set [ Name:%Godz2 To:0 Do Maths:Off Append:Off ]
A19: Goto [ Type:Action Label Number:1 Label:Set ]
A20: End If
A21: If [ %Test ~ 36/52/53 ]
A22: Variable Set [ Name:%Godz1 To:8 Do Maths:Off Append:Off ]
A23: Variable Set [ Name:%Godz2 To:0 Do Maths:Off Append:Off ]
A24: Goto [ Type:Action Label Number:1 Label:Set ]
A25: End If
A26: If [ %Test ~ 33/49 ]
A27: Variable Set [ Name:%Godz1 To:8 Do Maths:Off Append:Off ]
A28: Variable Set [ Name:%Godz2 To:30 Do Maths:Off Append:Off ]
A29: Goto [ Type:Action Label Number:1 Label:Set ]
A30: End If
A31: Stop [ With Error:Off Task: ]
<Set>
A32: Gentle Alarm [ Name:%Godz1%Godz2 Set:On ]


But again: task works fine if run manually.
 
Last edited:
Some of the settings in Tasker / preferences / monitor might be relevant. Maybe try turning on the "run in foreground" option.
 
Last edited:
... what version of Tasker are you using?

When I enter a time it is reported as ...
Time: From 7:50PM

I have never seen Stay Awake before

Are you using a plug-in?

Have you looked at the Tasker Profile and Task within Tasker on your new device? Was anything disabled? This is how you find the differenced from one version of Android to the next. For me in 4.4.4 to 5.1 it was the removal of Silent Mode.

... Thom
 
Back
Top Bottom