Desktops

Menu → System settings → Desktops

The Desktops module in OmniMES is used to create and manage interactive visualization panels (dashboards) based on production data from machines, technological lines and entire machine parks. The visualizations are built in the integrated analytical tool Redash, while OmniMES provides a convenient dashboard management layer, a query wizard without SQL knowledge, and an SQL query editor with an AI assistant.

The whole module fits on a single screen with a view-switching bar:

  • Desktops - a list of ready dashboards (from Redash),

  • Queries - local OmniMES queries (data sources for visualizations),

  • Alerts - configuration of alerts in Redash,

  • Favourites - quick access to favourite dashboards and queries,

  • Go directly to the Redash Dashboards tab - opens Redash in a new tab.

Logging in to Redash happens automatically (SSO) - after clicking an action that opens Redash, the system logs the user in with their credentials and takes them to the right place. For the module to work, the Redash address and API token must be configured in General configuration. Otherwise a message about a missing/incorrect Redash address or token appears.

The screen reaches Redash through the OmniMES API - only the server knows the Redash API key, and the browser never gets it. Groups with the Desktops screen in access permissions see and change dashboards, queries and charts. Every Redash change made from this screen (query, dashboard, chart) is recorded in the Event log with the OmniMES user name.

You will find more about building visualizations step by step in the section OmniMES → Getting started → Creating dashboards.


Tab: Desktops

A list of all dashboards available in Redash. At the top there are filters:

  • Sort by date - ascending or descending,

  • a search field with the Search and Clear buttons.

Above the list there is information about the current main panel (a green bar with the dashboard name and a Remove button) or a message that the main panel has not been set.

The table shows the columns: Name, Author, Created, Updated, Public (a marker of whether the dashboard has a public link) and Actions. For each dashboard the following are available:

  • a refresh frequency selector (1, 5, 10, 15, 30, 60 minutes or no refresh) - used when setting the main panel and opening the dashboard,

  • Set as main panel - the dashboard will be displayed by default after logging in to the system. It only works for public dashboards (published in Redash - with a public link),

  • Open in a new tab - opens the public view of the dashboard with the selected refresh,

  • Edit in Redash - goes to editing the dashboard in Redash,

  • Remove - deletes the dashboard (you cannot delete the dashboard set as the main one - unset it first).

Dashboards marked as (unpublished) require granting a public link in Redash (Settings → "Make Public Link") before they can be set as the main panel or opened in a new tab.

If no dashboard is set as the main one, after logging in the system displays the standard view with basic production information.

Tab: Queries

Menu → Desktops → Queries

Queries are local OmniMES data sources that feed the visualizations in Redash. The list shows the defined queries together with their type, author, dates, refresh frequency and publication status. From the list you can add a new query, edit it ("Edit Query Locally") and open it in Redash.

After clicking Add, the system asks for the query type - two types are available:


1. Base query (JSON) - the OmniMES wizard

A wizard in which you build a data source without knowledge of SQL or the database structure. Just indicate what the data is about, and the system itself generates a ready query (a URL to the dataBi endpoint), which is saved and available in Redash for building visualizations.

Available fields:

  • Query name,

  • Automatic refresh - how often Redash should run the query on its own (choose "Never" to run it only manually / when the dashboard opens),

  • Location: Machine park/Building, Line, Machine (empty = all),

  • Data type: data type, Events / Measurements, Time period, Limit,

  • the Fetch only the last one for each machine option,

  • Optionally: Duration [min], Operator,

  • Query content - the automatically generated URL that you can copy into the text field in Redash (the Copy button).

A single query returns at most 10,000 events or 20,000 measurements. When the selected period holds more measurements, the system averages them over short time intervals. The Fetch only the last one for each machine option returns one, most recent row per machine and event or measurement type - over the whole history when no period is selected. When there is more data than the limit, the result is cut off: narrow the period or the list of machines.


2. Query Results (SQL) - an SQL editor over the base queries

A mode for advanced needs: it lets you aggregate, filter and join data from existing JSON queries using SQL. Query Results always requires at least one base JSON query as a data source - so you first create a base query and only then build Query Results on top of it.

Available elements:

  • Query name and Automatic refresh,

  • Base queries (SQL sources) - selecting one or more JSON queries. For multiple sources the system generates an SQL skeleton with a LEFT JOIN on name_machine, with the aliases q1, q2, q3 etc. in selection order,

  • SQL shortcuts - clickable snippets inserted at the cursor: clauses (WHERE, AND, OR, ORDER BY, GROUP BY, HAVING, LIMIT 100), joins (LEFT JOIN, INNER JOIN), aggregations (COUNT, SUM, AVG, MIN, MAX), logic (CASE WHEN, COALESCE, NULLIF),

  • SQL content - the query editor.


AI suggestions

In the Query Results editor the AI suggestions box helps build SQL queries and visualizations. It has three buttons:

  • Build query - you describe in natural language what you want to achieve, and the AI generates a ready SQL query based on the columns from the selected base queries and inserts it into the editor (replacing the current content),

  • Suggest SQL - the AI proposes ready, example queries matched to the selected data sources (without a description from the user),

  • Suggest chart - the AI proposes a visualization configuration on the Redash dashboard based on the query result.

AI proposals are computed in the background on the server - below the loading indicator in the window you can see the current stage (e.g. Waiting for the AI model (Claude Haiku 5.5)) and the time since the request. You can close the window meanwhile: OmniMES then stops waiting for the proposal (the model call is still counted in Usage in General configuration → AI). On a temporary provider error the server retries the request, and when the limit of analyses at once is reached it shows a message asking you to try again in a moment.

AI suggestions require a configured model. All three functions use the Fast tier, set in System settings → General configuration → AI (the AI models part: Models by task and Provider connections) - e.g. Claude, an OpenAI-compatible API or a local model via Ollama. When AI is off or the tier has no working connection, the editor shows the AI in Dashboards is not configured box with the Open General configuration → AI button. You will find the configuration details in the chapter OmniMES → General configuration.


Tab: Alerts

Menu → Desktops → Alerts

Takes you to Redash, where you can configure alerts and notifications in case predefined thresholds are exceeded - e.g. excessive energy consumption, downtime that is too long, or drops in quality indicators.

Tab: Favourites

Menu → Desktops → Favourites

Allows quick access to the favourite items saved in Redash. The drop-down button lets you choose between favourite Dashboards and favourite Queries, opening the relevant list in Redash.

The Desktops module is the central place for visual data analysis in OmniMES - it combines the flexibility of Redash with a simple query wizard and AI support, giving full control over the presentation of operational data in real time, without the need to know the database structure.