Hihi,
I would like to write a rule in which I count seconds or minutes when a certain value is exceeded and then store this time over one day in a variable.
At the end of a the day I wand send the value of the variable (Operation Time) per email to my adresse (I think this part is not problem for me).
How can I best solve this.
Can you please help me with this.
Greetings Franzel
Count operating time per day
Moderators: grovkillen, Stuntteam, TD-er
Re: Count operating time per day
You can get the nr of seconds of the current day. (see the system variables page for all variables and their current value)
By setting a timer for a specific moment something should be ready, you can then store the nr of seconds of the current day in a variable.
So in pseudo code:
By setting a timer for a specific moment something should be ready, you can then store the nr of seconds of the current day in a variable.
So in pseudo code:
Code: Select all
At midnight:
Check if [int#1] not equal to 0, then:
let,2,[int#2]-[int#1]
if [int#2] > 0 then:
mail about task being overdue
store 0 in int#1
At moment something had to be done:
store seconds of current day in int#1
At moment something is done:
store seconds of current day in int#2
Who is online
Users browsing this forum: No registered users and 107 guests