Skip to content

Configuration settings

The edit drawer of a configuration

Every setting of a configuration, in the sections of the edit drawer on the gateway page (Services > PowerChart Ultra). The key is the field's name in the resource's config.json and in the platform's REST API (/data/api/v1/resources/com.mustrysolutions.powerchartultra/configuration). A list is typed one entry per line on the page; in config.json it is a JSON array (text with one entry per line is read too). What each setting does in practice is explained in Gateway configuration.

Setting Key Type Default Meaning
Database Connection databaseConnection text empty Saved charts are stored in this Ignition database connection; tables are created and extended automatically. None: charts can be explored and shared as links, not saved. Changing it on a configuration with saved charts hides them all: they stay in the old tables (changing back shows them again), and Save asks you to confirm it with Switch Chart Storage.
Table Prefix tablePrefix text pcu_ Put in front of every table name, such as pcu_ for pcu_chart: a letter, then letters, digits and underscores, at most 20. Two configurations on one database need different prefixes. Changing it on a configuration with saved charts hides them all, as a database change does, and Save asks you to confirm it with Switch Chart Storage.
Switch Chart Storage switchChartStorage true or false off Only for a change of Database Connection or Table Prefix on a configuration with saved charts: tick it to switch in this Save. The charts then stop showing; they stay in the old tables, and changing back shows them again. Never kept: it is clear again after every Save, so each switch is confirmed on its own.
Setting Key Type Default Meaning
Admin Role adminRole text Administrator Users with this role manage every saved chart and every note.
Roles That May Save saveRoles list of text empty One role per line. Empty: every signed-in user. Anonymous sessions never save.
Roles That May Share shareRoles list of text empty One role per line. Empty: everyone who may save.
Roles That May Add Notes noteRoles list of text empty Notes are annotations in the pens' historian, the same ones system.historian.storeAnnotations writes. One role per line. Empty: everyone who may save. The admin role always may.
Setting Key Type Default Meaning
Allowed Historians historianProviders list of text empty Pens read history only from these historian providers, one per line. Empty: every historian.
Tag Browser Roots browseRoots list of text empty One tag path per line, such as [default]Plant. The tag browser starts here and pens must be under one of them. Empty: every tag provider but [System].
Setting Key Type Default Meaning
Maximum Pens maxPens whole number, 1 to 200 empty Most pens on one chart (1 to 200). Empty: 200.
Maximum Range (days) maxRangeDays whole number, 1 to 36,600 empty The longest time range a chart may show or export (1 to 36,600 days). Empty: no limit.
Maximum Export Points maxExportPoints whole number, 1,000 to 20,000,000 empty Most stored points in one CSV or Excel export (1,000 to 20,000,000). Empty: 20,000,000.
Setting Key Type Default Meaning
Alarm Journal alarmJournal text empty Alarms of the pens' tags from this journal can be shown over the chart. None: no alarm overlay.
Setting Key Type Default Meaning
State Colours stateColors list of text empty Colours of states in step lanes, for every chart of this configuration: one per line, a state's value or label, then a colour, such as Cleaning = #2f6fb0. A chart can still set its own. States not listed get an automatic colour.

A config.json as the gateway stores it, at data/config/resources/core/com.mustrysolutions.powerchartultra/configuration/<name>/config.json:

{
"databaseConnection": "powerchart",
"tablePrefix": "pcu_",
"adminRole": "Administrator",
"saveRoles": [],
"shareRoles": [
"Engineer"
],
"historianProviders": [],
"browseRoots": [
"[default]Plant"
],
"maxPens": 20,
"maxRangeDays": 366,
"alarmJournal": "Journal",
"noteRoles": [],
"stateColors": [
"Cleaning = #2f6fb0"
]
}

Generated from the annotations of the configuration record (the same ones the gateway page's form is built from) when the site is built. Source: gateway/src/main/java/com/mustrysolutions/powerchartultra/gateway/config/ChartConfiguration.java.