Centiloc Service Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Create and Update a Shelf

Use EnrolUI to create your shelves.

You can also perform the same operation using the Inventory API. Contact Centiloc support for more information.
  • Having a Centiloc CADS.
  • Having an account with editor rights at least.

1. Go to shelf page

Follow the initial steps to connect to EnrolUI, then navigate to the Shelf page by clicking the Shelf box.

Once you are on the Shelf page you can click the Create new button.

shelf_create_new

2. Create a shelf

Creating a shelf requires basic knowledge of YAML.
A shelf is created using a YAML file that describes its configuration.

2.1. Create the YAML file

Below is the structure of the .yaml file:

shelf:
    sn: "Shelf Name"
    floor: 1 
    dimensions_mm: [500, 200]                 
    offsets_mm: [0, 0, 0]                 
    rot_angles_degree: [0.0, 0.0, 0.0]    
    boards:
        - sn: "boardserialnumber"
          offsets_mm: [0, 0] 
          z_rot_angle: 0.0
    locations:
        - ref: "Location Name"
          weight: 0                         
          dimensions_mm: [100, 100]
          origin_coord: [10, 20]
    ledstrips:
        - id: 1
          lbx: "lbx.name"
          x_axis: true
          is_inverted: false
          offset_mm: 0
          shelf_start_mm: 0
          shelf_stop_mm: 500

Refer to the conceptual diagram here: here.

For LED strips you need to have in mind the in-depth LED strip guide.

The fields are described below:

  • sn is the serial number of your shelf. This is how you will identify it. The serial number must be unique.
  • floor indicates the level of the shelf within the furniture. Default value is 1.
  • dimensions_mm are the dimensions of the shelf in millimeters on the X and Y axes.
  • offsets_mm are relevant only if the shelf is in a furniture. Offsets are defined on three axes (X, Y, Z) and represent offsets from the furniture reference frame. More about offsets in the details.
  • rot_angles_degree are relevant only if the shelf is in a furniture. The rotations angles are on three axis (X, Y and Z) and are used if your shelf isn’t on the same surface as your furniture. More about rotation angles in the details.
  • boards is a list of boards inside the shelf.
    • sn is the serial number of the board in the shelf. You can find the serial number on centui.
    • offsets_mm the offset of the board within the shelf. More about offsets in the details.
    • z_rot_angle the rotation of the board within the shelf. More about rotations in the details.
  • locations (optional) is a list of locations present on the shelf.
    • ref the reference of your location. This is how you will identify it. The reference must be unique.
    • weight the layer of the location. If you have only a few locations, the weight can be set to 1. More about it in the details.
    • dimensions_mm the dimensions of the location on the shelf. More about it in the details.
    • origin_coord the origin coordinates of the location on the shelf. More about it in the details.
  • ledstrips (optional) is a list of led strips attached to the shelf.
    • id the strip ID in the led box configuration
    • lbx the LED box serial number.
    • x_axis indicates the axis on which the LED strip is mounted. More about it in the details.
    • is_inverted indicates if the direction of the led strip is inverted based on the direction of the shelf axis. More about it in the details.
    • offset_mm is the offset from the physical beginning of the led strip. More about it in the details.
    • shelf_start_mm is the starting point of the strip on the shelf referential. More about it in the details.
    • shelf_stop_mm is the ending point of the strip on the shelf referential. More about it in the details.
If a location does not exist, it will be automatically created. If a led strip does not exist, it will be automatically created.

2.2. Upload the YAML file to enrolui

  1. Click on the YAML tab.
  2. Click on the Upload icon.
  3. Verify the content of your .yml file.

shelf_create

Click on Submit and then close the popup. You can now see the shelf in the table.

3. Update a shelf

To update a shelf, repeat the steps above.
The update process is identical to the creation process.

Be mindful when updating a shelf, all the fields will be overwritten.
This is why you should always keep a version of your .yml file to make sure to modify only the fields you need to modify.

Contact Centiloc support to help you with that if you need help.