Updated README.md for watts conversion

This commit is contained in:
Pekka Panula 2017-01-02 10:21:21 +02:00
parent 03b981f643
commit d0ada9c932
1 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,7 @@ If not specified, it defaults to the value of `oid`. If `oid` is numeric, an att
* `is_tag`: * `is_tag`:
Output this field as a tag. Output this field as a tag.
* `conversion`: Values: `"float(X)"`,`"float"`,`"int"`,`""`. Default: `""` * `conversion`: Values: `"watts"`,`"float(X)"`,`"float"`,`"int"`,`""`. Default: `""`
Converts the value according to the given specification. Converts the value according to the given specification.
- `float(X)`: Converts the input value into a float and divides by the Xth power of 10. Efficively just moves the decimal left X places. For example a value of `123` with `float(2)` will result in `1.23`. - `float(X)`: Converts the input value into a float and divides by the Xth power of 10. Efficively just moves the decimal left X places. For example a value of `123` with `float(2)` will result in `1.23`.
@ -156,6 +156,7 @@ Converts the value according to the given specification.
- `int`: Convertes the value into an integer. - `int`: Convertes the value into an integer.
- `hwaddr`: Converts the value to a MAC address. - `hwaddr`: Converts the value to a MAC address.
- `ipaddr`: Converts the value to an IP address. - `ipaddr`: Converts the value to an IP address.
- `watts`: Converts the value with W suffix to integer.
#### Table parameters: #### Table parameters:
* `oid`: * `oid`: