Difference between revisions of "Channel attributes"
From PhotoVoltaic Logger new generation
m (→Name required) |
m (→Offset) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{TOCright}} | |
+ | Channels can have the following attributes. Not each channel have all, only if the attribute makes sense. | ||
− | + | === Name === | |
+ | * '''required''' | ||
+ | * Type : string | ||
+ | |||
+ | Unique channel name, will be shown in tree definition overview and charts definition view. | ||
− | === | + | === Description === |
* Type : string | * Type : string | ||
− | === | + | Long description, will be shown in tree definition overview and charts definition view. |
+ | |||
+ | === Serial === | ||
* Type : string | * Type : string | ||
− | === | + | Unique sensor serial number, if supported or required by channel type. |
+ | |||
+ | === Channel === | ||
* Type : string | * Type : string | ||
− | + | Channel name for multi sensors. | |
− | |||
− | === | + | === Resolution === |
− | + | * '''required''' | |
* Type : numeric | * Type : numeric | ||
* Default : 1 | * Default : 1 | ||
− | === | + | On data readout the stored/calculated reading will multiplied with this factor. |
+ | |||
+ | === Unit === | ||
* Type : string | * Type : string | ||
− | === | + | Channel unit, will be shown in tree definition overview and charts definition view. |
+ | |||
+ | === Decimals === | ||
* Type : integer | * Type : integer | ||
* Default : 2 | * Default : 2 | ||
− | === | + | Decimals for value output and charting. |
+ | |||
+ | The [[API]] will always return raw data, not rounded! | ||
+ | |||
+ | === Meter === | ||
* Type : numeric (boolean) | * Type : numeric (boolean) | ||
* Default : 0 | * Default : 0 | ||
− | === | + | Meter channels stores raising values. |
+ | |||
+ | This attribute must be defined manually only for a few channels, most [[channel type]]s pre-define this. | ||
+ | |||
+ | === Numeric === | ||
* Type : numeric (boolean) | * Type : numeric (boolean) | ||
* Default : 1 | * Default : 1 | ||
− | === | + | Channels can have numeric or alphanumeric data. |
+ | |||
+ | === Offset === | ||
* Type : numeric | * Type : numeric | ||
− | === | + | This offset will be applied during data storage to the actual reading values to correct them. |
+ | |||
+ | === Adjust === | ||
* Type : numeric (boolean) | * Type : numeric (boolean) | ||
* Default : 0 | * Default : 0 | ||
− | === | + | Adjust channel offset '''(for meter channels only)''' automatic, if the actual reading value is lower than last reading but <> 0. |
+ | |||
+ | Use this, if your measuring equipment sometimes looses/resets its counter. | ||
+ | |||
+ | === Cost === | ||
* Type : numeric | * Type : numeric | ||
− | === | + | Cost per unit, for meter channels only. |
+ | |||
+ | === Threshold === | ||
* Type : numeric | * Type : numeric | ||
− | === | + | A reading is only accepted, if the value is ± threshold from last reading, only relevant for writable channels. |
+ | |||
+ | === Valid from === | ||
* Type : numeric | * Type : numeric | ||
− | === | + | Readings are only valid if they are greater or equal this limit. |
+ | |||
+ | For writable channels invalid values skipped on saving, for calculated channels they will be skipped on readout. | ||
+ | |||
+ | === Valid to === | ||
* Type : numeric | * Type : numeric | ||
− | === | + | Readings are only valid if they are lower or equal this limit. |
+ | |||
+ | For writable channels invalid values skipped on saving, for calculated channels they will be skipped on readout. | ||
+ | |||
+ | === Public === | ||
* Type : numeric (boolean) | * Type : numeric (boolean) | ||
* Default : 1 | * Default : 1 | ||
− | === | + | Non public channels are not accessible for not logged in visitors or without API key. |
+ | |||
+ | === Tags === | ||
+ | * Type : text | ||
+ | |||
+ | Internal data, not visible anywhere else. | ||
+ | |||
+ | Some channels use this for special settings. | ||
+ | |||
+ | === Comment === | ||
* Type : text | * Type : text | ||
+ | |||
+ | Internal comment, not visible anywhere else. | ||
+ | |||
+ | [[Dashboard_module|Dashboard]] channels use this for special settings. | ||
+ | |||
+ | [[Category:Channel]] |
Latest revision as of 18:59, 26 June 2017
Channels can have the following attributes. Not each channel have all, only if the attribute makes sense.
Name
- required
- Type : string
Unique channel name, will be shown in tree definition overview and charts definition view.
Description
- Type : string
Long description, will be shown in tree definition overview and charts definition view.
Serial
- Type : string
Unique sensor serial number, if supported or required by channel type.
Channel
- Type : string
Channel name for multi sensors.
Resolution
- required
- Type : numeric
- Default : 1
On data readout the stored/calculated reading will multiplied with this factor.
Unit
- Type : string
Channel unit, will be shown in tree definition overview and charts definition view.
Decimals
- Type : integer
- Default : 2
Decimals for value output and charting.
The API will always return raw data, not rounded!
Meter
- Type : numeric (boolean)
- Default : 0
Meter channels stores raising values.
This attribute must be defined manually only for a few channels, most channel types pre-define this.
Numeric
- Type : numeric (boolean)
- Default : 1
Channels can have numeric or alphanumeric data.
Offset
- Type : numeric
This offset will be applied during data storage to the actual reading values to correct them.
Adjust
- Type : numeric (boolean)
- Default : 0
Adjust channel offset (for meter channels only) automatic, if the actual reading value is lower than last reading but <> 0.
Use this, if your measuring equipment sometimes looses/resets its counter.
Cost
- Type : numeric
Cost per unit, for meter channels only.
Threshold
- Type : numeric
A reading is only accepted, if the value is ± threshold from last reading, only relevant for writable channels.
Valid from
- Type : numeric
Readings are only valid if they are greater or equal this limit.
For writable channels invalid values skipped on saving, for calculated channels they will be skipped on readout.
Valid to
- Type : numeric
Readings are only valid if they are lower or equal this limit.
For writable channels invalid values skipped on saving, for calculated channels they will be skipped on readout.
Public
- Type : numeric (boolean)
- Default : 1
Non public channels are not accessible for not logged in visitors or without API key.
Tags
- Type : text
Internal data, not visible anywhere else.
Some channels use this for special settings.
Comment
- Type : text
Internal comment, not visible anywhere else.
Dashboard channels use this for special settings.