Tasker Profile: Nightly Device Reboot

This is a little profile I've created to restart my Galaxy S4 every night. This profile comes in 2 parts: profile itself and a small scene (to skip a reboot)

Description export of the profile:

Profile: Reboot Phone (51)
Time: 03:40
Enter: Anon (67)
A1: Variable Set [ Name:%rebootNow To:1 Do Maths:Off Append:Off ] 
A2: Show Scene [ Name:Confirm Reboot Display As:Dialog, Dim Behind Heavy Horizontal Position:100 Vertical Position:100 Animation:System Show Exit Button:Off Continue Task Immediately:On ] 
A3: For [ Variable:%timeout Items:10,9,8,7,6,5,4,3,2,1,0 ] 
A4: Element Text [ Scene Name:Confirm Reboot Element:TextTimeLeft Position:Replace Existing Text:%timeout ] 
A5: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ] 
A6: Test Scene [ Name:Confirm Reboot Test:Status Store Result In:%sceneTest ] 
A7: If [ %sceneTest !~ visible ]
A8: Goto [ Type:Action Label Number:1 Label:reboot_phone ] 
A9: End If 
A10: End For 
<reboot_phone>
A11: If [ %rebootNow ~ 1 ]
A12: Variable Clear [ Name:%rebootNow Pattern Matching:Off ] 
A13: Secure Settings [ Configuration:Reboot Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ] 
A14: End If 
A15: Destroy Scene [ Name:Confirm Reboot ]

Description export of the scene:

Scene: Confirm Reboot
P:912x575 L:-1x-1 
Element: Title/Text
Geometry:
P:0,5 911x190 L:-1,-1 -1x-1
Content:
Text: Rebooting phone
Text Size: 16
Text Width Scale Percent: 100
Text Colour: #FFFFFFFF
Position: Centre
Vertical Fit Mode: None
Text Format: Plain Text
 
Element: TextTimeLeft/Text
Geometry:
P:542,226 99x99 L:-1,-1 -1x-1
Content:
Text: 
Text Size: 16
Text Width Scale Percent: 100
Text Colour: #FFFFFFFF
Position: Centre
Vertical Fit Mode: None
Text Format: Plain Text
 
Element: Text Time Left Prix/Text
Geometry:
P:26,226 493x99 L:-1,-1 -1x-1
Content:
Text: Auto accepting in:
Text Size: 16
Text Width Scale Percent: 100
Text Colour: #FFFFFFFF
Position: Centre
Vertical Fit Mode: None
Text Format: Plain Text
 
Element: Text4/Text
Geometry:
P:665,226 221x95 L:-1,-1 -1x-1
Content:
Text: seconds
Text Size: 16
Text Width Scale Percent: 100
Text Colour: #FFFFFFFF
Position: Centre
Vertical Fit Mode: None
Text Format: Plain Text
 
Element: BtnNo/Button
Geometry:
P:345,372 225x175 L:-1,-1 -1x-1
Content:
Label: Cancel
Label Size: 16
Label Width Scale %: 100
Label Colour: #FF000000
Position: Centre
Icon: null
Events:
Click: 79
Profile Dependencies: 
Root AccessSecure Settings
AttachmentSize
File XML Profile Export4.19 KB
File XML Scene Export2.63 KB

Comments