cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to add running status of program through service??

RM12
13-Aquamarine

How to add running status of program through service??

Hello,

         I want to show how many time is  remaining to start program for this How Do I add running status of program through service??please refer the below attachment

Thanks in advance 

ACCEPTED SOLUTION

Accepted Solutions
emscur
12-Amethyst
(To:RM12)

Hi @RM12,

 

You can achieve this by creating a subscription that triggers every minute from a Timer Thing and comparing the current date/time and programStartDateTime. Then, set property timeRemaining of the program to the difference between currentDate and programStartDateTime. This will set the property every minute and keep it up to date.

 

 

Thanks,

Emmanuel

View solution in original post

2 REPLIES 2
emscur
12-Amethyst
(To:RM12)

Hi @RM12,

 

You can achieve this by creating a subscription that triggers every minute from a Timer Thing and comparing the current date/time and programStartDateTime. Then, set property timeRemaining of the program to the difference between currentDate and programStartDateTime. This will set the property every minute and keep it up to date.

 

 

Thanks,

Emmanuel

slangley
23-Emerald II
(To:RM12)

Hi @RM12.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Thank you for your participation in the community!

 

Regards.

 

--Sharon

Announcements


Top Tags