The Node-RED for groov View nodes can read and write from groov View Data Store tags. This section describes how to configure a Data Store and add tags to it.

Step 1 - Add a Data Store Device

  1. Open groov View and go into Build mode.
  2. Under Help -> About, verify that you’re using groov 3.3 or later.
  3. In the Gadget Palette, on the Tags tab, click Configure Device and Tags to open the “Configure Device and Tags” view.
  4. Click Add New Device and select Data Store from the menu.
  5. Add a name for the Data Store. This exact same name will also need to be used from within Node-RED.
  6. Click Create to create the Data Store.

Add a Data Store device to a groov View project

Step 2 - Add Tags to Data Store

Continuing from Step 1 with the “Configure Device and Tags” view still open:

  1. Click Configure Tags to open the “Configure Data Store Tags” view.
  2. Click the plus sign (+) to add a tag.
  3. Enter a name and select the data type and whether the tag is a table. This exact same name will need to be used from within Node-RED.
  4. Click Save to save the tag.

Add a Data Store device to a groov project

In the rest of the Getting Started section, the following tags will be used:

  • name: booleanTag1 type: Boolean
  • name: decimalTag1 type: Decimal Number
  • name: integerTag1 type: Integer
  • name: stringTag1 type: String

Sample Data Store tags

Step 3 - Add Gadgets that use Data Store Tags

Data Store tags are like other groov View tags and can be used anywhere, like gadgets and events.

Sample Groov page with Data Store gadgets

Step 4 - Get or Create the API Key

When communicating with groov View, the Node-RED nodes use groov View’s public REST API. As a security measure, all groov View REST API clients must use a valid API key in every request.

  1. Under the Configure menu item, select Accounts to open the “Manage Accounts” view.
  2. Every user has a unique API key.
  3. You can use any Admin or Editor account, but it’s recommended to use a dedicated account for groov API clients such as Node-RED:
    • Create a new Editor account with a descriptive name like ‘node-red-api’.
    • Use a random password to create the account.
    • Discard the password, as it will not be needed again.

Sample groov user and API key

Next Step

Continue to groov Nodes - Introduction.