Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

Introduction

The Config and Provisioning is one of the most critical parts of the Administrators tasks, as it deals with the the configuration of the sensors on all sites. The tasks included here are:

  • Configure and deploy the sensor templates that will be running on all sites
  • Manage software updates
  • Make changes on the sites software basic configuration.
On this page:

Templates

Definition, Types and Structure

Templates are xml files which contain all the sensor configuration for all the sensors. This includes sensors, actions, rules and everything the azeti SiteController is programmed to do. This file will later be deployed to each site.

Here is an example of a simple template:

Types

The templates are divided into the following:


Hierarchy and inheritance

The logical structure to build the templates is:


All the changes done to a template are inherited to the templates below them. So if a sensor inside component instance is edited, all the site templates and locations templates that use it will be edited as well automatically. The exception being those changes that were done directly on the lower template. So if, for example, sensor X state threshold is changed on a site template, and then on a component instance, the change done directly on the site template will take precedence, and the change done on the component instance will not be applied.

Using Components and Components instances

The first step to create a template would be to upload one:

  1. Go to Configuration → Templates → Component Templates

  2. Click the +Add button
  3. Choose the file and click upload


Once uploaded the component will show in the list. It can be found using the search box and the top left of the page, or using some of the filters. The options then are:


After the component template is uploaded, a component instance that uses is it can be created:

  1. Go to Configuration → Templates → Component Instances

  2. Click  +Add to create a new instance
  3. Select the component which will be the base for the component instance. Change the name of the instance if needed and click Add to create it, or Add and Edit to create it an go directly to the edit page.


Once the instance is created it can be edited at any time by click on the edit button of the same page (see Editing Templates and Components). Other options are:

  • Validate, against the xsd, to check that is syntactically correct.
  • Clone, to make a exact copy of the template.
  • Delete, to permanently delete the instance. Will only work if is not being used.


Creating and Editing Site Templates

The site templates are the ones that will be assigned directly to a site. Typically they will exist as many site templates as types of site, meaning types of sites as those that have the same sensors and configuration. 

To edit or create a site template go to Configuration → Site Templates

Each templates shows:

  • If is the default template
  • The name of the template (as set when created)
  • The version (as set when created)
  • The revision (set automatically by the system with each editing)
  • The used instances (the component instances the make this site template). Click over it to show the list and click on a name to go directly to the component instance.
  • The creation date
  • The last update date
  • The number of locations that have assigned this template. Click on the number ( ) to see the complete list. Clicking on a name will take the user to the site Admin & Live table.
  • The actions available for the each template, which are:
    • Edit To edit the template content (see Editing Templates and Components)
    • Set Default To set the template as the default to be deployed to the sites that have the auto deployment enabled.
    • Delete To delete the template permanently. This cannot be undone, and is only available when the template is not in use by any site.

Creating Templates

To create a new site template click +Add. Choose a name and version and click Create.

Once create the new template can be edited in the normal way.

Editing Templates and Components Instances


Both the Site Templates and the Component instances can be edited in the same way. The editor page they both use is the same, and can be reached click on the Edit button on both the Component Instances page and the Site Templates page.

Once into the editor the whole xml template is shown as a tree. To expand each tree node click the +.

Expanding the tree lets the user select a sensor, device, action or rule. Once selected the complete tree and configuration for that node is shown:

To actually make any change, click the Toggle SU/Normal mode button  . This will change the template into the Edit mode.

Once in edit mode all changes can be done:

  • Add new sensors/devices/actions/rules from a component
  • Add empty new sensors/devices/actions/rules
  • Edit the existing elements


To see a complete example on how to edit a sensor go to Sensor Configuration from Scratch

System Configs

Controller Software

For the deployments, jobs, updates and validations to be done correctly, the correct version of the site controller has to be uploaded to the server. To see which ones are already uploaded go to Configuration → Controller Software → Software Packages.

The list shows all the site controller packages that have been uploaded, with the all the details and the possibility to download it. 

To upload a new version click +Add and upload the new package.

Deployments



  • No labels