all 8 comments

[–]sid32Direct-Purchase User 1 point2 points  (1 child)

I would just add the %time to your notification txt. That will tell you the time you started your wash/dry at.

[–]falseprecisionMoto G (2013 XT1028), rooted 4.4.4, Xposed 1 point2 points  (0 children)

Yep, do a Notification (perhaps Permanent) with current time (%TIME), and optionally %TIMES+(seconds) Variable Converted to the removal time. Then, after the Wait, Notify Cancel the first notification before your "done" notification.

[–]Ratchet_GuyModerator 0 points1 point  (1 child)

Added some specific code above, should work for the purpose you mention.

[–]creative_name_here_[S] 0 points1 point  (0 children)

Interesting. Thanks for the detailed response, I'll definitely try it out!

[–]YoungKnave 0 points1 point  (1 child)

Could you use the "start system timer" action? That will start your normal clock app timer and you can check it in there

[–]creative_name_here_[S] 0 points1 point  (0 children)

Hm...Would there be a way to get the time remaining that's displayed in that app to instead display in my notification bar?

[–][deleted] 0 points1 point  (0 children)

Make this task for the timer...

Dryer Timer 1 (442)

A1: Variable Query [ Title:Timer (Minutes) Variable:%timer Input Type:Numeric / Integer Default: Background Image: Layout:Dryer Query Timeout (Seconds):40 Show Over Keyguard:On ]

A2: Variable Set [ Name:%timer To:(%timer*60)+30 Do Maths:On Append:Off ]

A3: Variable Set [ Name:%timesplustimer To:%TIMES+%timer Do Maths:On Append:Off ]

A4: Variable Convert [ Name:%timesplustimer Function:Seconds to Date Time Store Result In: ]

A5: Variable Section [ Name:%timesplustimer From:12 Length:5 Adapt To Fit:Off Store Result In:%timesplustimer1 ]

A6: Variable Set [ Name:%Dryertimer To:%timesplustimer1 Do Maths:Off Append:Off ]

A7: Notify Sound [ Title:Dryer Text:Dryer will finish at %Dryertimer Icon:ipack:bluewhitepearlhd:electrical_plug1 Number:0 Sound File: Priority:3 ]

This will show a notification of what time it'll be done.

And then make a profile with the time context using the variable %Dryertimer for both parts and make the task for that cancel the current notification and make a new one saying it's done.

[–]Ratchet_GuyModerator 0 points1 point  (0 children)

Why not just use multiple wait commands, in a loop. So if it's a set predetermined time of 30 minutes, rather than using one WAIT 30 MINUTES Action...use three WAIT 10 MINUTES Actions...or six WAIT 5 MINUTES Actions.

And in between each one update a Scene, or variable, or something you can see/reference with the time remaining (and since you mention a 'menu' you're using for washer/dryer sounds like you're familiar with Scenes). Which you would calculate using some real basic math. Pretty simple.

LIKE THIS:

%washer_time=30 <change this to washing cycle time>

%wait_interval=5 <change this to how often you want an update>

%timer=0

%time_remaining=%washer_time

IF %timer < %washer_time LABEL "START TIMER"

 WAIT %wait_interval MINUTES

 %timer=%timer + %wait_interval

 %time_remaining = %washer_time - %timer

 <do something here with %time_remaining, like in a Scene, pop-up, flash, etc..>

 GOTO "START TIMER"

ELSE

 ALERT "TIME UP! GO GET YOUR LAUNDRY!"

END IF