Skip navigation
All People > André Åsheim > Andre Johnsen's Blog > 2015 > March

Primarily as a note to self


Weekday start on Monday

If (Weekday('*') = 1) then 7
else Weekday('*')-1



Time Greater than "event based" - Timer when active

LastStop output to attribute "Last Stop" (Date Time)

LastStart output to attribute "Last Start" (Date Time)

Output output to attribute "Timer" (Double, UOM: Seconds)


LastStop: If('Attribute1'<50)then ParseTime("*") else NoOutput() 

LastStart: FindGE('Attribute1','Last stop','*',50

Output: if('Attribute1'>50) then TimeGE('Attribute1','Last start','*',50) else 0