Skip to main content
Version: 4.2 (beta)

Datalogger

The Datalogger object displays statistical data collected by HSYCO dataloggers.

It groups data over time so that trends can be visualized in charts for the current day, previous day, month, and year.

It can also display data with minute resolution, although this requires more disk space.

In addition, it can log every processed value to a CSV file.

With the dual toolbar, you can explore a selected period or range in more detail. From live mode, this opens the selection in browser mode. In browser mode, it narrows the displayed time range. A finer resolution is used when available. The Zoom Mode attribute controls wheel and pinch scaling of the chart axes.

On touch devices, tap to inspect a point or drag to select a range in either mode. Tap the button in the tooltip to open the selection. The tooltip and selection disappear after four seconds without interaction. Tap with two fingers to go back, like right-clicking with a mouse.

With a mouse, dragging shows the inspected point followed by the selected range and its summary. Release to open the range, or right-click or press Escape while dragging to cancel. Range summaries show totals for counters and averages for measurement series.

Data logger setup and visualization

Counter data loggers

Range data loggers

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

Position and Size​

Position​

Sets the object's position.

Attribute Values​
ValueDescriptionExample
x<left>y<top>Specify left/top coordinates in pixels.x10y20

This attribute is available when parent's layout is neither "flex" nor "grid".

When parent's layout is neither "flex" nor "grid", this attribute defaults to x0y0.

Flex Grow​

Specifies if the objects should grow to fill the available space.

Attribute Values​
ValueDescription
falseDefault value. Objects do not grow to fill the available space.
trueObjects expand to fill the available space.

This attribute is available when parent's layout is "flex".

The default value is: false.

Flex Shrink​

Specifies if the objects should shrink to fit the available space.

Attribute Values​
ValueDescription
falseDefault value. Objects do not shrink to fit the available space.
trueObjects shrink to fit the available space.

This attribute is available when parent's layout is "flex".

The default value is: false.

Column​

Specifies the starting column of the object inside a grid container.

Minimum value is 1.

Attribute Values​
ValueDescription
<int>Column index starting from 1.

This attribute is available when parent's layout is "grid".

note

This attribute is experimental. It might not work properly and it might be modified or removed in a future release.

Column Span​

Specifies how many grid columns the object spans.

Minimum value is 1.

Attribute Values​
ValueDescription
<int>Column span starting from 1.

This attribute is available when parent's layout is "grid".

When parent's layout is "grid", this attribute defaults to 1.

note

This attribute is experimental. It might not work properly and it might be modified or removed in a future release.

Row​

Specifies the starting row of the object inside a grid container.

Minimum value is 1.

Attribute Values​
ValueDescription
[empty]Auto placement by the grid.
<int>Row index starting from 1.

This attribute is available when parent's layout is "grid".

When parent's layout is "grid", this attribute defaults to auto.

note

This attribute is experimental. It might not work properly and it might be modified or removed in a future release.

Row Span​

Specifies how many grid rows the object spans.

Minimum value is 1.

Attribute Values​
ValueDescription
<int>Row span starting from 1.

This attribute is available when parent's layout is "grid".

When parent's layout is "grid", this attribute defaults to 1.

note

This attribute is experimental. It might not work properly and it might be modified or removed in a future release.

Width​

Sets the object's width in pixels.

Minimum value is 312.

Height​

Sets the object's height in pixels.

Minimum value is 200.

Datalogger​

Dataloggers​

Specifies the datalogger options.

Attribute Values​
ValueDescriptionExample
<JSON array>Array of datalogger configuration objects.[{"name":"energy_today","label":"Energy Today","unit":"kWh"}]

Mode​

Selects live mode or browser mode.

Attribute Values​
ValueDescription
liveDefault value. Live mode.
browserBrowser mode.
liveonlyLocks the interface in live mode. It will hide the browser/live button on the UI.
browseronlyLocks the interface in browser mode. It will hide the browser/live button on the UI.

The default value is: live.

Selection​

List of datalogger names to display.

Attribute Values​
ValueDescription
<comma-separated list>List of datalogger names.

List​

List of datalogger names used to define the available logger ids and their order. Deprecated, use the Dataloggers attribute instead.

Attribute Values​
ValueDescription
<comma-separated list>Legacy datalogger names.
note

This attribute has been deprecated since ver. 4.0

Names​

List of display labels matched positionally to List, or to Dataloggers when List is empty. Deprecated, use the Dataloggers attribute instead.

Attribute Values​
ValueDescription
<comma-separated list>Legacy datalogger labels.
note

This attribute has been deprecated since ver. 4.0

Slot​

Shows a specific slot, from 0 to the number of slots-1.

Attribute Values​
ValueDescription
<number>Slot index, from 0 to the number of slots-1.

Group​

Name of a group. Datalogger objects with the same group are synchronized (controlling one affects the others).

Attribute Values​
ValueDescription
<string>Name of a group.

Controls​

Toolbar​

Specifies the object's controls.

Attribute Values​
ValueDescription
noneDefault value. Don't show any controls.
dualShow a dual-mode toolbar (dashboard/browser toggle with fields).
tabsShow tabs on live mode for resolution and slots.

The default value is: none.

History Buttons​

Shows or hides the browser history buttons in the toolbar.

Attribute Values​
ValueDescription
trueDefault value. Show history buttons.
falseHide history buttons.

This attribute is available when toolbar is "dual".

When toolbar is "dual", this attribute defaults to true.

Fullscreen​

Enables or disables fullscreen mode.

Attribute Values​
ValueDescription
falseDisables fullscreen mode.
trueEnables fullscreen mode.
note

This attribute is live. It can't be set from the Project Editor, it needs to be set dynamically with a UISet.

Time​

Resolutions​

Specifies the available resolutions. Use "auto" to derive from the datalogger resolution. Resolutions are displayed only if they are available on the datalogger.

Attribute Values​
ValueDescription
[empty]Auto (all supported).
monthMonthly resolution.
dayDaily resolution.
hourHourly resolution.
minuteMinute resolution.

The default value is: auto.

Browser Resolutions​

Specifies the available resolutions in browser mode. When empty, the Resolutions attribute is used.

Attribute Values​
ValueDescription
yearYearly resolution.
monthMonthly resolution.
dayDaily resolution.
hourHourly resolution.
minuteMinute resolution.

By default, this attribute uses the resolutions attribute.

Resolution​

Specifies the resolution of the data to display.

Attribute Values​
ValueDescription
monthSet the live resolution to month.
daySet the live resolution to day.
hourSet the live resolution to hour.
minuteSet the live resolution to minute.

The default value is: auto.

Browser Date​

Sets the browser's date and time, and updates the resolution based on the precision you provide. Format: YYYY[MM[DD[HH]]],YYYY[MM[DD[HH]]]. Use a single value for a single period, or a comma to define a range: from,to. Either side can be empty to keep the current from/to.

Attribute Values​
ValueDescription
yyyySpecify a year.
yyyymmSpecify year and month.
yyyymmddSpecify year, month and day.
yyyymmddhhSpecify year, month, day and hour.
yyyymmdd,yyyymmddSpecify a range (from,to).
,yyyymmddOpen-ended range (keep current from).
yyyymmdd,Open-ended range (keep current to).

Browser Resolution​

Sets the browser's resolution, if in browser mode.

When toggling between browser and live mode, the initial browser resolution is the same as the live resolution.

Attribute Values​
ValueDescription
yearDefault value. Set the browser resolution to year.
monthSet the browser resolution to month.
daySet the browser resolution to day.
hourSet the browser resolution to hour.
minuteSet the browser resolution to minute.

The default value is: year.

note

This attribute is live. It can't be set from the Project Editor, it needs to be set dynamically with a UISet.

Browser Data Limit​

Specifies the maximum number of values per chart series in browser mode (0 disables the limit).

Minimum value is 120.

Attribute Values​
ValueDescription
0Default value. No limit.
<number>Max values per series.

The default value is: 0.

Charts​

Type​

Specifies the chart type.

Attribute Values​
ValueDescription
barDefault value. Draw bars.
pointDraws points.
lineDraws a line connecting the values.
splineDraws a spline connecting the values.
pieDraws a pie chart, each slice representing a datalogger (if multiple dataloggers are visible), or past/present values. Percentage is shown in the legend.

The default value is: bar.

Range Values​

Specifies which values to display for range dataloggers (min, avg, max). Leave empty to show all.

Attribute Values​
ValueDescription
minShow minimum values.
avgShow average values.
maxShow maximum values.

The default value is: min,avg,max.

Dashboard Mode​

Controls whether the component renders a single chart or one chart per available resolution.

Attribute Values​
ValueDescription
singleDefault value. Render a single chart (default).
multiRender one chart for each visible resolution.

The default value is: single.

Dashboard Resolutions​

Specifies which resolutions are rendered when Dashboard Mode is set to multi. The order is enforced from month to minute.

Attribute Values​
ValueDescription
monthShow the monthly chart.
dayShow the daily chart.
hourShow the hourly chart.
minuteShow the minute chart.

Multi Range​

For multiple datalogger ids only. Show multiple ranges for each datalogger id: each chart has multiple value axes.

Attribute Values​
ValueDescription
trueShow multiple ranges for each datalogger id.
falseDefault value. Single range for each datalogger.

The default value is: false.

Draw Axis​

Displays or hides the axes (also notches and labels).

Attribute Values​
ValueDescription
[empty]Default. The axes are visible (also notches and labels).
falseThe axes are not visible (also notches and labels).

The default value is: true.

Point Size​

Specifies the point size.

Attribute Values​
ValueDescription
<number of pixels>Point size.

Stroke​

Specifies the pixel size of the stroke that applies to line and spline chart types.

Attribute Values​
ValueDescription
<number of pixels>Stroke size.

Notches​

Specifies the number of notches on the y-axis.

Attribute Values​
ValueDescription
<value>Number of notches on the y-axis.

The default value is: false.

Thresholds​

Specifies a list of values at which to display a line (threshold). Not supported with multiple dataloggers with different scales/units.

Attribute Values​
ValueDescription
<comma-separated list>List of values at which to display a line (threshold).

Value Label Type​

Specifies the type of value label to be shown.

Attribute Values​
ValueDescription
popupDefault value. Value labels are shown on mouseover, or on touch (if on a
touch-enabled device).
startValue labels are shown at the start of the value.
centerValue labels are shown at the center of the value.
endValue labels are shown at the end of the value.
hiddenHide value labels.

The default value is: popup.

Zoom Mode​

Specifies the zoom mode for wheel/pinch gestures.

Attribute Values​
ValueDescription
falseDefault value. Disable zooming.
valueZoom the value axis only.
categoryZoom the category axis only.
bothZoom both axes.

This attribute is available when type is neither "pie" nor "doughnut".

When type is neither "pie" nor "doughnut", this attribute defaults to false.

Category Axis Title​

Specifies the category axis title (x if vertical, y if horizontal).

Attribute Values​
ValueDescription
<string>Category axis title.

This attribute is available when type is neither "pie" nor "doughnut".

Value Axis Title​

Specifies the value axis title (y if vertical, x if horizontal).

Attribute Values​
ValueDescription
<string>Value axis title.

This attribute is available when type is neither "pie" nor "doughnut".

Category Axis Grid​

Specifies whether to show the grid on the category axis.

Attribute Values​
ValueDescription
falseDefault value. Do not show the grid on the category axis.
trueShow the grid on the category axis.

This attribute is available when type is neither "pie" nor "doughnut".

When type is neither "pie" nor "doughnut", this attribute defaults to false.

Value Axis Border​

Specifies whether to show the border on the value axis.

Attribute Values​
ValueDescription
falseDo not show the border on the value axis.
trueDefault value. Show the border on the value axis.

This attribute is available when type is neither "pie" nor "doughnut".

When type is neither "pie" nor "doughnut", this attribute defaults to true.

Value Axis Grid​

Specifies whether to show the grid on the value axis.

Attribute Values​
ValueDescription
falseDo not show the grid on the value axis.
trueDefault value. Show the grid on the value axis.

This attribute is available when type is neither "pie" nor "doughnut".

When type is neither "pie" nor "doughnut", this attribute defaults to true.

Value Label Format​

Formats the value axis tick labels (y if vertical, x if horizontal). Uses the shared format item (same options as the Text object's Format).

This attribute is available when type is neither "pie" nor "doughnut".

Colors​

Axis Color​

Specifies the axis color.

Attribute Values​
ValueDescription
<CSS color>Axis color.

Label Color​

Specifies the color of the axis and bars labels.

Attribute Values​
ValueDescription
<CSS color>Color of the axis and bars labels.

Notch Color​

Specifies the color of the axis notches.

Attribute Values​
ValueDescription
<CSS color>Color of the axis notches.

Threshold Colors​

Specifies a list of colors for thresholds, one value per line. Not supported with multiple dataloggers with different scales/units.

Attribute Values​
ValueDescription
<comma-separated list of CSS colors>List of colors of threshold lines.

Layout​

Panel​

Shows a panel that frames the object. Its style can be modified.

Attribute Values​
ValueDescription
trueDefault value. Shows the panel.
falseHides the panel.

The default value is: true.

Panel Color​

Specifies the panel color.

Attribute Values​
ValueDescription
defaultDefault value. Default color.
primaryPrimary color, used to highlight important areas.
warningWarning color, used to highlight warning areas.
successSuccess color, used to highlight success areas.
errorError color, used to highlight error areas.
red,blue,yellow,green,yellow,purple,orange,greenPalette colors.
customCustom color, defined in the "Custom Color" attribute.

This attribute is available when panel is "true".

The default value is: default.

Panel Custom Color​

Specifies the panel custom color.

Attribute Values​
ValueDescriptionExample
<html color>Color in any html accepted format.#ff0000

This attribute is available when panelstyle is "custom" or panelstyle is "glass" or panelcolor is "custom".

Past Period​

Specifies if the past period is visible (not available for multiple datalogger ids).

Attribute Values​
ValueDescription
trueDefault value. Show past period.
falseHide past period.

The default value is: true.

Pie Legend Position​

Specifies the pie chart legend position. Applies only to "pie" type.

Attribute Values​
ValueDescription
topDefault value. Show the legend on the top of the pie chart.
rightShow the legend on the right of the pie chart.

The default value is: top.

Legend​

Specifies how the legend is displayed.

Attribute Values​
ValueDescription
trueDefault value. Show all legends.
falseHide legends.

The default value is: true.

Totals​

Specifies if the totals are displayed.

Attribute Values​
ValueDescription
trueDefault value. Show totals.
falseHide totals.

The default value is: true.

Other​

Download​

Displays a button in browser mode that downloads a CSV file with the currently displayed data.

Attribute Values​
ValueDescription
trueDisplay the download button in browser mode.
falseDefault value. Hide the download icon.

The default value is: false.

CSV Separator​

Specifies a character used to separate columns in the generated CSV file. Rows are always separated with the newline character.

Attribute Values​
ValueDescription
<character>Character used to separate columns in the generated CSV file.

Refresh Interval​

Specifies the live refresh interval in milliseconds.

Attribute Values​
ValueDescription
<number>Live refresh interval in milliseconds.

The default value is: 5000.

View​

Visible​

Sets the object's visibility.

Attribute Values​
ValueDescription
trueDefault value. Visible.
falseHidden.

The default value is: true.

Enabled​

Specifies if the object is enabled or disabled. A disabled object appears as grayed out and can't be interacted with.

Attribute Values​
ValueDescription
trueDefault value. Enabled.
falseDisabled.

The default value is: true.

Blinks the object at the specified speed.

Attribute Values​
ValueDescription
falseDefault value. Not blinking.
slowBlinks slowly.
fastBlinks fast.

The default value is: false.

Transition​

Specifies the transition effect when the object is shown or hidden.

Attribute Values​
ValueDescription
noneDefault value. No transition.
fadeFade in/out.
fade-leftSlide from left and fade in/out.
fade-rightSlide from right and fade in/out.
fade-upSlide from top and fade in/out.
fade-downSlide from bottom and fade in/out.
slide-leftSlide from left.
slide-rightSlide from right.
slide-upSlide from top.
slide-downSlide from bottom.
zoom-inZoom in.
zoom-outZoom out.
3d-flip-left3D flip from left.
3d-flip-right3D flip from right.

The default value is: none.

note

This attribute is experimental. It might not work properly and it might be modified or removed in a future release.

Transition Duration​

Specifies the transition duration in milliseconds.

Attribute Values​
ValueDescription
<integer>Duration in milliseconds.

This attribute is available when transition is not "none".

When transition is not "none", this attribute defaults to 300.

note

This attribute is experimental. It might not work properly and it might be modified or removed in a future release.

Transition Delay​

Specifies the transition delay in milliseconds.

Attribute Values​
ValueDescription
<integer>Delay in milliseconds.

This attribute is available when transition is not "none".

When transition is not "none", this attribute defaults to 0.

note

This attribute is experimental. It might not work properly and it might be modified or removed in a future release.

Opacity​

Sets the object's opacity. Opacity is the degree to which content behind an object is hidden.

Attribute Values​
ValueDescription
0The object is fully transparent.
>0.0, <1.0The object is translucent (content behind the element can be seen).
1.0Default value. The object is fully opaque.

The default value is: 1.0.

Rotation​

Specifies the degrees by which the object is rotated. A positive number rotates it clockwise, while a negative value rotates it counter-clockwise.

The default value is: 0.

CSS Class​

Specifies a CSS Class that applies to the object, useful to customize its appearance. Custom CSS Classes are specified within the custom.css file.

Margin​

Specifies the margin of the object. The margin is the space outside the object's border.

Attribute Values​
ValueDescriptionExample
<int>Specify the margin in pixels for all sides of the object.
<top> <right> <bottom> <left>Specify the margin in pixels for each side of the object.10 20 30 40
note

This attribute is experimental. It might not work properly and it might be modified or removed in a future release.

View Scale​

Specifies the scale of the object. The scale is the ratio between the object's size and the size of the view it is contained in.

Attribute Values​
ValueDescription
<float>Specify the scale for both width and height of the object.

The default value is: 1.0.

note

This attribute is experimental. It might not work properly and it might be modified or removed in a future release.

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.

note

This attribute is static. Its value can't be changed dynamically with a uiSet command or with a value binding.

Exclude​

Excludes the object from the UI. Useful to temporarily hide an object without deleting it. Different from the "Visible" attribute, which hides the object in the UI but keeps it in the project, allowing it to be shown again with a UISet.

Attribute Values​
ValueDescription
falseDefault value. Object is included in the UI.
trueObject is excluded from the UI.

The default value is: false.

note

This attribute is static. Its value can't be changed dynamically with a uiSet command or with a value binding.