Watch Datalogger
Displays the latest value of an HSYCO datalogger and opens its chart in the Watch app.
Requires watchOS 9 or later. On older watchOS versions, the Watch app omits this object and continues displaying the other Watch Page objects.
Attributes
Common
ID
Sets the object's ID.
The ID identifies the object and is used to reference it in UISet actions, allowing to change its attributes dynamically.
The ID is not unique, it can be shared among multiple objects to quickly change a common attribute.
IDs can't be changed with a UISet action, but they can have a Value Binding assigned to them. Value Bindings on IDs allow an object to be dynamically attached to a set of attribute values.
E.g. the following Value Binding switches the ID of the object between mybutton1 and mybutton2 based on the value of the UISet button.address:
Value binding:
"mybutton" + ui('button', 'address')
UISet:
UISet('button', 'address', '1') switches the ID to mybutton1
UISet('button', 'address', '2') switches the ID to mybutton2
Name
Specifies the datalogger.
Attribute Values
| Value | Description |
|---|---|
| <string> | Unique datalogger name specified in HSYCO Settings. |
Label
Specifies the display label. By default, the selected datalogger name is used as a title.
Attribute Values
| Value | Description |
|---|---|
| <string> | Display label. |
By default, this attribute uses the name attribute, converted to title case.
Unit
Specifies the unit displayed after the value.
Attribute Values
| Value | Description |
|---|---|
| <string> | Unit such as kWh, °C or %. |
Resolution
Specifies the initially selected chart resolution.
Attribute Values
| Value | Description |
|---|---|
| minute | Default value. Minute. |
| hour | Hour. |
| day | Day. |
| month | Month. |
The default value is: minute.
Range
Specifies the value displayed for range dataloggers. This setting is ignored for counters.
Attribute Values
| Value | Description |
|---|---|
| avg | Default value. Average. |
| min | Minimum. |
| max | Maximum. |
This attribute is available when datalogger type of name is "range".
When datalogger type of name is "range", this attribute defaults to avg.
Style
Specifies the chart style.
Attribute Values
| Value | Description |
|---|---|
| line | Default value. Line. |
| bar | Bar. |
The default value is: line.
Past
Specifies whether the previous period is displayed.
Attribute Values
| Value | Description |
|---|---|
| false | Hides the previous period. |
| true | Default value. Displays the previous period. |
The default value is: true.
Slot
Specifies the zero-based datalogger slot.
Minimum value is 0.
Attribute Values
| Value | Description |
|---|---|
| <int> | Non-negative slot index. |
The default value is: 0.
Meta
Comment
Specifies a comment, visible only in the Project Editor. It can be used to add a note or a tag to the object. The filter in the object's SELECT panel applies to the comment as well.
This attribute is static. Its value can't be changed dynamically with a uiSet command or with a value binding.