Overlay timer

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Overlay timer

Post by Rafi4 » 07 Mar 2018 02:48

Hi
I want to create a flow as overlay timer application any help?
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Overlay timer

Post by digitalstone » 10 Mar 2018 04:41

Maybe you want to be more specific.
What part do you need help with?
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Overlay timer

Post by Rafi4 » 10 Mar 2018 05:03

Hi
I have downloaded this flow in forum. It displays only seconds. I want to modify this flow in minutes and seconds. Please help. I am new to automagic I am unable to understand some actions like script expression etc


http://automagic4android.com/flow.php?i ... ca1450a2f1
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Overlay timer

Post by digitalstone » 11 Mar 2018 01:42

Well your link doesn't work here.
But i can tell you that if you have access to the amount of seconds, then the only thing left to do is convert them into hours and minutes.
You can do that with: "getDurationString(duration)"
Your following calculation will be:

Code: Select all

getDurationString(yourSeconds);
But, since this command accepts ONLY milliseconds to calculate it into whatever you need, you need to multiply your amount of seconds by 1000.
Then it becomes:

Code: Select all

getDurationString(yourSeconds*1000);
If, for example, your initial amount of seconds is 3660, your result will then be: "1h 1m"
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Overlay timer

Post by digitalstone » 11 Mar 2018 02:49

Also: I think this question belongs to the help section of the forum ;)
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Overlay timer

Post by anuraag » 11 Mar 2018 04:15

Rafi4 wrote:Hi
I have downloaded this flow in forum. It displays only seconds. I want to modify this flow in minutes and seconds. Please help. I am new to automagic I am unable to understand some actions like script expression etc


http://automagic4android.com/flow.php?i ... ca1450a2f1
Link to flow
http://automagic4android.com/flow.php?i ... ca1450a2f1

Do as digitalstone sugessted.
Edit Text count in your widget with
{getDurationString(global_interval_count*1000)}

Post Reply