User Tools

Site Tools


wiki:value

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:value [2018/11/29 08:38]
admin
wiki:value [2020/07/23 04:13] (current)
admin
Line 5: Line 5:
 Usage: Usage:
  
-''VALUE(variable, options)'' - see below for description.+''VALUE(variable, options, [max])'' - see below for description.
  
 ===== Generic Variables (per device type) ===== ===== Generic Variables (per device type) =====
Line 25: Line 25:
 You can also use VALUE('user_field1') to access the user defined field.  These values are entered when you edit a device and can contain device specific static information. You can also use VALUE('user_field1') to access the user defined field.  These values are entered when you edit a device and can contain device specific static information.
 The list of special device-specific variables available are as follows: The list of special device-specific variables available are as follows:
 +|**Variable** | **Description** |
 |device_key | MAC ADDRESS | |device_key | MAC ADDRESS |
 |remote_ip | IP Address of wattmon | |remote_ip | IP Address of wattmon |
Line 42: Line 43:
 |5 | Period (in graph) - gets the value at the end of the selected segment in a graph | |5 | Period (in graph) - gets the value at the end of the selected segment in a graph |
 |7 | latest value for selected period | |7 | latest value for selected period |
 +
 +
 +The third optional parameter [max] allows you to specify a maximum value for the data point, and if the value is greater than this the result will be 0.  This is to help in cases where incorrect data may come in from sensors are other devices.
  
 ===== Example ===== ===== Example =====
wiki/value.1543480692.txt.gz · Last modified: 2018/11/29 08:38 by admin