how long until the alarm goes off

HameleOn

New member
good day
How can I find out how much time is left before the alarm goes off in hours and minutes as my alarm shows
i found next_alarm_clock_formatted but is dont helpScreenshot_2022-01-20-14-35-24-341_com.android.deskclock.jpg
 

Abalsam

Active member
You would need to have the alarm time in seconds, subtract the current system time from that and then convert that to hours, minutes and seconds.
 

HameleOn

New member
I have the system time in seconds, but the alarm time is not complete, only the day when it works and the time
if you have an example please show
I want to know how much sleep I have left before the alarm goes off and displays in MicroDroid notifications
and opening the alarm every time is inconvenient
 

HameleOn

New member
I installed myself not using MacroDroid.
If I install it myself, I can receive information, for example, in seconds, how many seconds are left before the alarm goes off?
if so can you give an example
 

Abalsam

Active member
I need to put something together. Please check back tomorrow (pesky job distracting me :)) in the meantime what do you mean if I install it myself I can receive information. What are you doing and what do you see?
 

HameleOn

New member
if I set the alarm myself via MicroDroid, there is no such possibility to write the countdown information in seconds into the variable
sorry to bother but really want to make this macro. I love MicroDroid
 

Abalsam

Active member
I have the system time in seconds, but the alarm time is not complete, only the day when it works and the time
if you have an example please show
I want to know how much sleep I have left before the alarm goes off and displays in MicroDroid notifications
and opening the alarm every time is inconvenient
I have found a way with a plug in to get the time (in seconds) when the next alarm is scheduled. However, (and I feel like an idiot for saying this) I am having issues doing the simple math required to reliably break that down into days, hours, minutes and remaining seconds.

I have posted a help request in the forum (https://www.macrodroidforum.com/ind...iable-action-not-working-reliably.1805/unread)

I will keep you posted.
 

Abalsam

Active member
I have found a way with a plug in to get the time (in seconds) when the next alarm is scheduled. However, (and I feel like an idiot for saying this) I am having issues doing the simple math required to reliably break that down into days, hours, minutes and remaining seconds.

I have posted a help request in the forum (https://www.macrodroidforum.com/ind...iable-action-not-working-reliably.1805/unread)

I will keep you posted.
Update! There was an update to macrodroid I installed this evening. Once the update completed, the macro worked flawlessly. I will post it later tonight or tomorrow (once I document it).

Please stay tuned.
 
Top