Trying to set a notifcation when there is a minute left on timer

In the message, divide seconds by 60.

1 Like

Iā€™m tryingā€¦ Have nearly succeeded, but how do I remove the decimal? Iā€™ve tried:

There are {{ t | int / 60 | round|int }} minutes remaining

and

There are {{ t | int / 60 | round }} minutes remaining

If minutes are represented in seconds, the value will be an integer (and a multiple of 60).
3 minutes x 60 seconds/minute = 180 seconds

Dividing that value by 60 will produce an integer value.
180 seconds Ć· 60 seconds/minute= 3 minutes

In other words, the result should not be a floating point number (i.e. a value with decimals) unless the number of seconds isnā€™t a multiple of 60.

How many minutes is it and how does it appear in the message?

5 minutes or 300 seconds
it appears as:
ā€œThere are 5.0 minutes remainingā€

There are {{ (t / 60) | int(0) }} minutes remaining
1 Like

Thanks, that worked!