Run Video at device boot

118 views
Skip to first unread message

fr...@cachepromo.com

unread,
May 26, 2017, 3:06:51 PM5/26/17
to Tasker
Can anyone tell me what I need to do to get beyond the "if" portion of the Tasker event I am trying to build?  I want to simply run a video at start-up.  I have the Profile set as device boot and I have selected the action to open the file that I want to play but I have no idea what to do with the "if" and I can't get the process completed without it it seems.  I have tried to research the "if" statements but I cannot see how it would apply to this action.

Pent

unread,
May 26, 2017, 3:58:12 PM5/26/17
to Tasker


Can anyone tell me what I need to do to get beyond the "if" portion of the Tasker event I am trying to build?  I want to simply run a video at start-up.  I have the Profile set as device boot and I have selected the action to open the file that I want to play but I have no idea what to do with the "if"

Just leave it. You don't have to have a condition on an action.

Pent

Rich D

unread,
May 26, 2017, 4:05:24 PM5/26/17
to Tasker Google Groups Post


> Can anyone tell me what I need to do to get beyond the "if" portion

I assume you mean the 'If'  option within the file open action.  Every Tasker action has this option. It is not necessary to select it if you do not wish to use it.  If your task is not working when you this option blank then something else is wrong.

The boot context can be a bit tricky because the task will usually fire before android has completed the entire boot process.  I would try putting a small wait action as the first action in the task. Start with a high number like 10 seconds to test. Then if it works cut the time down until you get to a reliable wait time.

If the wait does not fix it then enable and check the run log to see if the profile is firing and task is running. Menu / more / run log

fr...@cachepromo.com

unread,
May 26, 2017, 5:03:51 PM5/26/17
to Tasker
Thank you very much for your reply.  Well it looks like that did something, i went in and deleted the "if" entry I made and added a "wait" action.  Now after I boot it has Tasker running but it says there are no active profiles.  Which makes no sense as I have it "on" and it is there when I open it.

fr...@cachepromo.com

unread,
May 26, 2017, 5:04:10 PM5/26/17
to Tasker
Thank you very much for your help.  

Rich D

unread,
May 26, 2017, 5:42:56 PM5/26/17
to Tasker Google Groups Post

Thank you very much for your reply.  Well it looks like that did something, i went in and deleted the "if" entry I made and added a "wait" action.  Now after I boot it has Tasker running but it says there are no active profiles.  Which makes no sense as I have it "on" and it is there when I open it.

Did the video start?
Did you check the run log?
You should not have any active profiles. "active Profile" refers to a profile that has a state context that is currently active. The "boot" context is a event context therefore it is instantaneous and will not show as "active". The the on/OFF switch beside a profile is referred to as enabled or disabled and these are not shown in the Tasker notification. 


Frank Muraca

unread,
May 26, 2017, 8:07:12 PM5/26/17
to tas...@googlegroups.com
No, it did not play.  i did check the log run and have attached it.




Best Regards,
Frank T. Muraca
CACHE
Mobile: 716-863-1118

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/LZCpgdItwCc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

IMG_5650.JPG

Rich D

unread,
May 26, 2017, 8:21:34 PM5/26/17
to Tasker Google Groups Post

No, it did not play.  i did check the log run and have attached it.

The log in shows you still have a 'IF' condition set for the 'open file' action. When you edit the action you should see a trash can beside the 'If' is condition. Tap the trash can to delete the if condition. 


Frank Muraca

unread,
May 26, 2017, 9:02:18 PM5/26/17
to tas...@googlegroups.com
That's weird, I thought I deleted that one and started again.  I got it this time.  Thanks for your help, just trying to time it right now it appears that I have to swipe out of the lock screen and sometimes it plays only part of the video.

Seriously thank you for sticking with me!


Best Regards,
Frank T. Muraca

On May 26, 2017, at 8:21 PM, Rich D <ricp...@gmail.com> wrote:


No, it did not play.  i did check the log run and have attached it.

The log in shows you still have a 'IF' condition set for the 'open file' action. When you edit the action you should see a trash can beside the 'If' is condition. Tap the trash can to delete the if condition. 


--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/LZCpgdItwCc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Rich D

unread,
May 26, 2017, 9:59:46 PM5/26/17
to Tasker Google Groups Post


just trying to time it right now it appears that I have to swipe out of the lock screen and sometimes it plays only part of the video.

I would suggest just setting a global variable like %Boot To: on with the boot profile task.

Then make another profile with 2 contexts.
1. Context / event / display / display unlocked
2. Context / state / variable / variable value : %Boot = on

Then within the task for that profile play the video and clear the %Boot variable.

So when the device boots the variable %Boot will be set to 'on' then when you unlock the device the video will play and the variable will be cleared.

Frank Muraca

unread,
May 26, 2017, 10:10:12 PM5/26/17
to tas...@googlegroups.com
Thanks, I will try it but I am not sure I am following what you have written in relation to the UI that I have seen so far.  


Best Regards,
Frank T. Muraca

--

Rich D

unread,
May 26, 2017, 10:25:17 PM5/26/17
to Tasker Google Groups Post


> Thanks, I will try it but I am not sure I am following what you have written in relation to the UI that I have seen so far.  

Feel free to post back with questions.

Frank Muraca

unread,
May 26, 2017, 10:49:17 PM5/26/17
to tas...@googlegroups.com
A few questions:

Where do I set the global variables?

You mention "contexts" but I do not see that term.


Best Regards,
Frank T. Muraca

--

Frank Muraca

unread,
May 26, 2017, 10:59:18 PM5/26/17
to tas...@googlegroups.com
Interesting, now with the "wait" task removed it plays well after the lock screen is opened. It starts about 11 seconds after I swipe the screen after boot. Any thoughts?


Best Regards,
Frank T. Muraca


On May 26, 2017, at 10:24 PM, Rich D <ricp...@gmail.com> wrote:


> Thanks, I will try it but I am not sure I am following what you have written in relation to the UI that I have seen so far.  

Feel free to post back with questions.

--

Rich D

unread,
May 27, 2017, 7:49:35 AM5/27/17
to Tasker Google Groups Post

There are some great beginner videos at menu / info / guides.


Where do I set the global variables?

Action -> variables -> Variable set : %Boot ; To: on

Check the user guide for variable explanations.

Global variable (at least one capitol letter) - will hold value indefinitely until changed by another action

Local variable (all small letters)- will only hold value for the life of the task it was started in (with some exceptions) 




You mention "contexts" but I do not see that term.

There is a entire section on them in the user guide under 'profiles'

These are the triggers for the profiles. The 'device Boot' is a "event" context.

To add a additional context to a profile you can long press the first context -> Add





Rich D

unread,
May 27, 2017, 7:56:37 AM5/27/17
to Tasker Google Groups Post

Interesting, now with the "wait" task removed it plays well after the lock screen is opened. It starts about 11 seconds after I swipe the screen after boot. Any thoughts?


No idea.. Perhaps when it gets fired earlier in the boot process android puts in some sort of queue. 

Frank Muraca

unread,
Jun 4, 2017, 2:49:05 PM6/4/17
to tas...@googlegroups.com
Rich:

Would you be available to communicated directly about my project that you helped me on last week?




Best Regards,
Frank T. Muraca
On Sat, May 27, 2017 at 7:56 AM, Rich D <ricp...@gmail.com> wrote:

Interesting, now with the "wait" task removed it plays well after the lock screen is opened. It starts about 11 seconds after I swipe the screen after boot. Any thoughts?


No idea.. Perhaps when it gets fired earlier in the boot process android puts in some sort of queue. 

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/LZCpgdItwCc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.

Rich D

unread,
Jun 5, 2017, 5:16:13 AM6/5/17
to Tasker Google Groups Post


Would you be available to communicated directly about my project that you helped me on last week?


I do like to keep everything on the forum. It helps others as well gives others the opportunity to help us. 

Reply all
Reply to author
Forward
0 new messages