User Tools

Site Tools


wiki:widget_functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:widget_functions [2017/05/08 08:43]
admin
wiki:widget_functions [2021/10/25 05:45] (current)
admin
Line 2: Line 2:
 ===== Functions ===== ===== Functions =====
  
-  * [[wiki:VALUE|VALUE()]]+  * [[wiki:COUNT|COUNT()]] 
 +  * [[wiki:COUNTPATTERN|COUNTPATTERN()]]  
 +  * [[wiki:COUNTNZ|COUNTNZ()]]  
 +  * [[wiki:DATE|DATE()]] 
 +  * [[wiki:DAY|DAY()]] 
 +  * [[wiki:DAYS|DAYS()]]
   * [[wiki:DIFF|DIFF()]]   * [[wiki:DIFF|DIFF()]]
 +  * [[wiki:FIRSTNZ|FIRSTNZ()]]
 +  * [[wiki:INVERTER_ERROR|INVERTER_ERROR()]]  
 +  * [[wiki:INVERTER_STATUS|INVERTER_STATUS()]] 
 +  * [[wiki:LASTCHANGE|LASTCHANGE()]]
 +  * [[wiki:LASTNZ|LASTNZ()]] 
 +  * [[wiki:MAX|MAX()]]  
 +  * [[wiki:MAXTIME|MAXTIME()]]     
 +  * [[wiki:MD|MD()]]
   * [[wiki:MIN|MIN()]]   * [[wiki:MIN|MIN()]]
-  * [[wiki:MAX|MAX()]]+  * [[wiki:MINUTES|MINUTES()]] 
   * [[wiki:ROUND|ROUND()]]   * [[wiki:ROUND|ROUND()]]
   * [[wiki:SUM|SUM()]]   * [[wiki:SUM|SUM()]]
   * [[wiki:SUMACTIVE|SUMACTIVE()]]   * [[wiki:SUMACTIVE|SUMACTIVE()]]
-  * [[wiki:COUNT|COUNT()]]+  * [[wiki:TOTAL|TOTAL()]] 
 +  * [[wiki:VALUE|VALUE()]] 
  
 ===== Operators ===== ===== Operators =====
  
-Standard operators can be used in all formulas, such as +, -, *, /, ( and ).+Standard operators can be used in all formulas, such as +, -, *, /, <, >, <=, >= ( and ).  IIF is possibler for expressions: <, <=, >, >= 
 + 
 +===== Conditionals =====  
 + 
 +In order to test for a condition, you can use the syntax: 
 +''VALUE('variable',0) > 5 ? 1 : 0'' 
 +The comparison uses the IIF syntax -  so if compared value > 5 the output would be 1 and otherwise (:) 0.
  
 ===== Examples ===== ===== Examples =====
Line 19: Line 40:
  
 ''VALUE('delta0w_ac') / 1000 + VALUE('delta1w_ac') / 1000'' ''VALUE('delta0w_ac') / 1000 + VALUE('delta1w_ac') / 1000''
 +
 +This example will output 'High' or 'Low' based on the threshold value.
 +
 +''VALUE('myvar')>5?'High':'Low' ''
  
wiki/widget_functions.1494232982.txt.gz · Last modified: 2017/05/08 08:43 by admin