User Tools

Site Tools


wiki:diff

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:diff [2017/05/08 06:13]
admin
wiki:diff [2024/10/01 04:39] (current)
admin
Line 5: Line 5:
 Usage: Usage:
  
-''DIFF(variable, options)'' - see below for description.+''DIFF(variable, options, [days],[minutes],[min],[max])'' - see below for description. 
 + 
 +Parameters: 
 + 
 +variable - Variable name to use 
 + 
 +options - Type of diff (see below) 
 + 
 +days - optional number of days to lookup  before selected day 
 + 
 +mins - optional number of minutes to offset by 
 + 
 +min - minimum value, will result in 0 if it is below this value 
 + 
 +max - maximum value, will result in 0 if it is above this value 
  
 ===== Generic Variables (per device type) ===== ===== Generic Variables (per device type) =====
  
-''DIFF('INC1_AE'), 5'' +''DIFF('INC1_AE', 5)'' 
  
 Get the difference for the selected period Get the difference for the selected period
Line 34: Line 49:
 |7 | AT_END_DATE - value at the end of the selected date range | |7 | AT_END_DATE - value at the end of the selected date range |
 |8 | PERIOD_CUMULATIVE - value between start of period and range element (in a graph) | |8 | PERIOD_CUMULATIVE - value between start of period and range element (in a graph) |
 +|9 | FULL_MONTH - Difference between 1st and last day of month for selected date | 
 +The third parameter is an optional one and lets you specify a number days.  This is subtracted from the currently selected period to allow you to graph historic data alongside current data.
  
 ===== Example ===== ===== Example =====
Line 50: Line 66:
  
 {{:wiki:diff_period.png?500|}} {{:wiki:diff_period.png?500|}}
 +
 +Get the solar generation for one year ago (365 days):
 +
 +''(DIFF('inverter1_AC_Total_kWh',0,365)''
 +
  
  
wiki/diff.1494224022.txt.gz · Last modified: 2017/05/08 06:13 by admin