Pls add reboot trigger

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Pls add reboot trigger

Post by akhileshg1988 » 16 Apr 2014 06:12

Adding the Reboot trigger shall prove quite useful.
Actually, I want certain apps installed on my device to start/run on phone startup, which is why I am requesting the feature "Reboot trigger" to be added.
Thanks

munhozdiego
Posts: 4
Joined: 16 Apr 2014 12:22

Re: Pls add reboot trigger

Post by munhozdiego » 16 Apr 2014 14:03

While there is no trigger for rebooted, you can easly implement one following this:

Trigger: Anything you want will do, ex.: Time Based, screen off, every X minutes
Action: Execute Root Command - uptime
Script: global_IsRebooted = substring ({stdout},12,14)
Condition: expression - IsRebooted < 1
if true - do whatever you want here using a action

What is gona do:

When your trigger is activated it will execute uptime, this command will deliver cellphone uptime since last reboot. Then it will check if this time is inferior to 1 minute, if true phone was rebooted and your action will be executed.

Execing this trigger when screen is off looks like the best option in this scneario.

ZSasha
Posts: 103
Joined: 11 Oct 2013 03:48

Re: Pls add reboot trigger

Post by ZSasha » 16 Apr 2014 21:58

I think the dev version alread has uptime function so no needs to be root.

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: Pls add reboot trigger

Post by akhileshg1988 » 17 Apr 2014 05:05

Thanks, that helped.
Plus, may I know from where can I get a list of (1) all the root commands (2) all the scripts (3) various expressions.

ZSasha
Posts: 103
Joined: 11 Oct 2013 03:48

Re: Pls add reboot trigger

Post by ZSasha » 17 Apr 2014 05:12

akhileshg1988 wrote:Thanks, that helped.
Plus, may I know from where can I get a list of (1) all the root commands (2) all the scripts (3) various expressions.
not quite sure what you mean. root commands are just commands that Android understand, it us not related to Automagic specifically. I would google first :)
about scripts - you actually WRITE a script (in terms of Automagic). Put a "script" block and hit the "function" button - it gives you a list of functions available you can use to make your script.


One think that I would really like to know as well and what kind of missing from automagic now - funtion's parameters list. I have to guess or try quite often what parameter should I pass to the function - is it a number, a string, a character?

User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Re: Pls add reboot trigger

Post by Nerey » 17 Apr 2014 15:38

There is trigger Automagic Startup
You can use it
Sorry for bad english, my native is russian.

Locked