Skip to main content

Mini Tutorial: Building a Simple Dashboard

The following mini tutorial demonstrates how to create a simple dashboard step by step. At least reading through the tutorial is strongly recommended. Hands-on practice is ideal (duration approx. 30 minutes), especially if you plan to create your own dashboards.

Step 1: Create a New Dashboard

To create a new dashboard, perform the following in the "Dashboards and Themes" tab:

  • If necessary, click on "Add new dashboard" (if no dashboard is currently selected in the tab, you do not need to click the button)
  • Enter a name for the dashboard (do not use whitespace or other characters that cannot be part of a web URL)
  • Optional: Enter an author (free text)
  • Optional: Enter a description in the Info field

Mini Tutorial Screenshot 1

After clicking "Save" and clicking "Open in Designer", the dashboard opens in the Dashboard Designer:

Mini Tutorial Screenshot 2

Step 2: Add a Label Control and Move It

Now we add a control of the type (more precisely, control template) "Label"1 as follows:

  • Click on "Panel 1" in the left part so that this panel is selected (this determines which panel the control is added to)
  • Click on the combobox to select a control (more precisely, a control template):

Mini Tutorial Screenshot 3

After selecting (clicking) the control template "Label" and clicking the plus button, the label has been added to Panel 1 of the dashboard:

Mini Tutorial Screenshot 4

Step 3: Move the Label

To give the dashboard a nicer design, we move the label a little using drag:

Mini Tutorial Screenshot 5

And drop:

Mini Tutorial Screenshot 6

Step 4: Add Another Control

Analogously to steps 2 - 3, we add another control to the dashboard, more precisely to "Panel 1" - this time a control from the control template "M_Button"2 - and move it:

Mini Tutorial Screenshot 7

Step 5: Style the Panel by Changing Its Properties

Now we want to change the colour of the panel via its properties / "Control Details". To do this, click on the panel - either on the left in the structural view or on the right in the WYSIWYG display of the dashboard:

Mini Tutorial Screenshot 8

Now click on the colour field next to Background colour on the right and change the colour to a dark shade, such as 082131 (enter in the hex field):

Mini Tutorial Screenshot 9

After clicking outside the popup / colour picker, the new colour is set accordingly:

Mini Tutorial Screenshot 10

Step 6: Style the Label

Now we style the label and select it accordingly. Since the default black font colour (which could also come from an applied theme) is not visible against the dark background, we change the font colour by adding a new CSS style by:

  • Clicking "Add CSS style"
  • Selecting "color" in the "Style" combobox
  • Selecting a colour value via colour picker or entering the colour value as a hexadecimal number: #c1c3f4

Mini Tutorial Screenshot 11

Now we change the following for a better look:

  • Change the font size to 48px
  • Change the Description to "Light Control Panel"
  • Move and resize the label using the mouse or the coordinate input fields
  • Change the Name to "Panel Headline", so that the label now has this name in the structural overview on the left

Mini Tutorial Screenshot 12

Step 7: Style the Button

For the structural overview, we first change:

  • the Name of the button to "Button Light ON" and
  • the Text to "Turn Light ON":

Mini Tutorial Screenshot 13

For further styling we need to switch to the sub / basic controls of the control, which for a normal button are:

  • Button surface: This basic control represents the (normally invisible) surface that can respond to mouse click events (or touch events on touch displays)
  • Text: This basic control is a label field, analogous to the previously inserted label (technically this label control consists only of a text basic control)

Mini Tutorial Screenshot 14

Technical note at this point: Because the Button surface basic control is higher up than the Text basic control, it is above the Text basic control (Z-order) and can therefore receive and process click events (i.e. it is not obscured by the other basic control).

To style the button, we style the Text basic control as follows:

  • Add CSS style "color" with value "white"
  • Add CSS style "backgroundColor" with value "#264374":

Mini Tutorial Screenshot 15

Step 8: Create Another Button via Copy & Paste

We copy the existing button by selecting the button and clicking the "Copy" button on the right above Control Details / Basic Controls:

Mini Tutorial Screenshot 16

Using the "Paste" button next to it, we insert a copy of the control:

Mini Tutorial Screenshot 17

After repositioning (the coordinate inputs are useful for good alignment with other objects), renaming, and changing the text, we have our second button as it should be:

Mini Tutorial Screenshot 18

Tip: It is best to save the current state of the dashboard from time to time using the "Save" button at the top right.

Step 9: Add Functionality to the Buttons

Currently, 2 buttons are included in the dashboard, but clicking them does nothing yet. We change this by adding onClick event handlers for the button surfaces and calling a component action for each.

To do this, we first click the plus button at Events for the Button surface basic control of the first button and then click "onClick":

Mini Tutorial Screenshot 19

Then click on the combobox "(Select shared action)" and click "Component or Group Action" (this means a button click should execute a component / group action):

Mini Tutorial Screenshot 20

In the popup that appears, which is a variation of the hierarchy view of the Setup module, select a group or component and an associated action to be executed when the button is clicked3:

Mini Tutorial Screenshot 21

After confirming with "Select Action" at the top right, select the parameter value to be sent with the KNX action "Send data to actor" in this case when the button is clicked, and confirm with "Save" at the top right:

Mini Tutorial Screenshot 22

Do the same analogously for the "Turn Light OFF" button, but with parameter value 0.

Step 10: Test the Dashboard in Play Mode

By clicking the play button, the dashboard can now be tested live:

Mini Tutorial Screenshot 23

Notes:

  • Group and component actions are only executed in play mode if "Preview executes LIVE actions" is activated for this dashboard in the "Dashboards and Themes" tab
  • Alternatively, the dashboard can now also be tested (make sure to "save" the dashboard first) under its actual URL
  • To check sent actions, in addition to testing with the actual hardware devices, the Traffic Inspector can also be used

Step 11+: Further Possible Steps / Improvements to the Dashboard

Even though this dashboard is already fully functional, it can be further improved, for example by adding colour changes on mouse hover or when buttons are pressed. For these and further improvements see especially the following links:

Footnotes

  1. Depending on the NeuroomNet installation, the control type "Label" may not be available under the name "Label", but under a different name (what is important for this example is that the control type contains only one basic control of the type "TEXT"; you can also quickly build such a control type yourself, but this may be somewhat challenging for the second step of the tutorial). If in doubt, please ask at info@neuroom.net so that you can be sent a current version of the control templates.

  2. As with the control type "Label" above, the actual control template name here may differ. What is important for this example is that the control template / the resulting control has exactly two basic controls: A button surface and a TEXT basic control.

  3. The KNX component shown in the screenshot is not a KNX-controlled light, because none exists in the current system. Normally you would want to control a KNX or otherwise controlled light for a "Light Control Panel".