The reference energy system of OTNYC (S1_NYC_REF), 1,874 processes, as otui draws it. OTNYC: ESMA, CC BY-SA 4.0.

otui

Open TIMES User Interface

TIMES in the browser

otui is a browser-based, open-source interface for TIMES energy system models. It works on native TIMES syntax: the sets and parameters of a model, as in its DD files.

It is for TIMES modellers and students, including those who do not work in code. Version 0.1.0 is a preview: drop a model on the page, then browse it, check it, solve it and export it. Editing models through Excel, LibreOffice and CSV files comes next.

otui runs on your own computer. The page in your browser talks only to the otui server in your terminal, and your models never leave your computer.

otui's RES graph tab: the reference energy system of demo12 from TIMES_Demo drawn as a network of processes and commodities, with a search box and a legend by sector.

What you can do

Drop a model's .run file and its .dd files on the page, or a folder or a .zip of them. Or start with the demo model, demo12 from TIMES_Demo, or one of ESMA's open TIMES models.

RES graph

Browse the model's reference energy system as a network. Search for a process or commodity, and see the dead ends otui found.

Sets & parameters

Read every set and parameter of the model as a table, and export them all as .xlsx or CSV.

QC

See TIMES's own checks and otui's together.

Run and results

Solve the model with TIMES.jl, TIMES in Julia, and the open-source HiGHS solver (experimental), or with GAMS TIMES if you have it. See capacity and flows as tables and charts, compare runs, and export them.

otui's Sets & parameters tab: a searchable list of every set and parameter on the left, and demo12's TOP topology table on the right.
Sets & parameters: every set and parameter of demo12, as tables.
otui's Run tab after solving demo12 with HiGHS: each step from reading the model to the results, with its time.
Run: demo12 solved step by step with TIMES.jl and HiGHS, with the time of each step.

Get started

You need two free tools, then otui. Everything goes into your own user folders: no administrator rights, nothing runs at start-up, and nothing is installed through the browser.

  1. 1. Julia and uv

    From their official installers: Julia through juliaup, and uv for Python tools.

    SystemJulia (through juliaup)uv (Python tools)
    Windowswinget install --id Julialang.Juliaup -ewinget install --id astral-sh.uv -e
    macOSbrew install juliaupbrew install uv
    Linuxcurl -fsSL https://install.julialang.org | shcurl -LsSf https://astral.sh/uv/install.sh | sh
    Windows
    Julia: winget install --id Julialang.Juliaup -e
    uv: winget install --id astral-sh.uv -e
    macOS
    Julia: brew install juliaup
    uv: brew install uv
    Linux
    Julia: curl -fsSL https://install.julialang.org | sh
    uv: curl -LsSf https://astral.sh/uv/install.sh | sh

    Open a new terminal after installing them, so it finds them.

  2. 2. otui

    In a terminal:

    uv tool install otui
    otui julia-setup
    otui serve

    otui julia-setup is needed once: it downloads TIMES.jl and its Julia packages, which takes 10-20 minutes. otui serve starts otui; then open http://127.0.0.1:8642 in your browser.

  3. 3. A model

    Drop a model's .run file and its .dd files on the page, or a folder or a .zip of them, or click Try the demo model for demo12 from TIMES_Demo.

    Stop otui with Ctrl+C in its terminal.


What runs on your computer

otui needs a few free tools. Here is what each one is, where it goes and what it does. Everything goes into your own user folders, and nothing runs at start-up.

  • Julia and juliaup

    Julia is the language TIMES.jl is written in; juliaup installs it. Both go in your user folder (~/.julia/juliaup), from julialang.org.

  • uv and otui

    uv installs Python tools, otui among them. Both go in your user folder (~/.local/bin, uv's tool folder), from astral.sh and the Python Package Index.

  • TIMES.jl and its Julia packages

    otui reads, compiles and solves models only through TIMES.jl, TIMES in Julia, with Julia packages such as JuMP and HiGHS. otui julia-setup downloads them once (10-20 minutes) into ~/.julia, with otui's two environments in ~/.otui/julia and ~/.otui/julia-latest, from github.com/esma-ie/timesjl and the Julia package servers.

  • HiGHS

    The open-source solver that solves your model, through TIMES.jl. It is one of the Julia packages above.

  • The otui server

    otui serve starts a web server on your computer, at http://127.0.0.1:8642. It listens on 127.0.0.1, so other computers cannot reach it. The page in your browser only talks to this server; the browser installs nothing.

  • Your models

    The models you drop are kept in ~/.otui/workspace. Your models never leave your computer.

  • Network use

    otui julia-setup downloads the packages above. Each otui serve asks GitHub whether TIMES.jl has a newer version, and if so builds it in the background for the next start. otui serve --timesjl pinned turns that off.

  • To remove otui

    Run uv tool uninstall otui, then delete the .otui folder in your home folder. If you don't use Julia otherwise, also run juliaup self uninstall.

Without installing: GitHub Codespaces

GitHub Codespaces runs otui for you on a cloud computer, in your browser, with nothing to install. You need a free GitHub account. The models you add are uploaded to your codespace: only you can connect to it, and ESMA cannot see it.

It uses your GitHub account's monthly Codespaces allowance: on GitHub Free, about 30 hours a month of otui's 4-core codespace. Use beyond the allowance is billed to you only if you have set up billing for Codespaces.

Open otui in GitHub Codespaces


Code and licence

otui is open source, under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).