Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Message ID: 3291     Entry time: 02 Dec 2026
Author: Stefan Ritt 
Topic: Info 
Subject: New custom page editor 

Dear MIDAS users,

The develop branch of MIDAS now has a graphical editor for custom pages, something I wanted to write since many years. With the help of Claude, this was now the task of a few hours.

You can build process displays and status pages directly in the browser, without writing HTML or JavaScript.

Getting started

  1. Set /Experiment/Menu/Custom Page Editor to "y". A "Custom Page Editor" entry then shows up in the side menu.
  2. On that page, enter a name and press "Create". The editor saves the new page in userfiles/custom of your experiment, adds it to the menu under /Custom and opens it in edit mode.
  3. Edit the page, then press "Save".

To change a page later, click the cogwheel in its title bar. Click it again to leave edit mode.

What you can do

  • Draw the background of your setup with lines, arrows, rectangles, ellipses, text and images, for example tanks, pipes and valves.
  • Place any of the standard ODB widgets from a list, such as values, bars, gauges, switches, buttons and tables, and connect each one to an ODB key. They show live values while you edit.
  • Make shapes react to ODB values with short JavaScript snippets. For example, a valve turns green when it's open, a tank fills with its level, or a symbol blinks on an alarm.
  • Arrange the items with the grid, alignment tools, group boxes and tabs, and choose whether the page has a fixed size or fits the browser window.
  • Import existing hand-written custom pages and continue working on them in the editor.

The pages are plain HTML files using the normal MIDAS widgets, so you can still edit them by hand if needed.

The documentation is here:
https://midas.triumf.ca/docs/develop/features/monitoring_and_control/custom_pages/page_editor/ (will be there tomorrow Dec. 3, 2026 after the nightly build)

Feedback and suggestions are very welcome.

/Stefan

Attachment 1: page_editor.png  231 kB  | Hide | Hide all
page_editor.png
ELOG V3.1.6-083448f7