Skip to content

2.0.0

Latest

Choose a tag to compare

@synman synman released this 06 Nov 22:35

A rewrite of the editor, and fixes for commands that vanished or were saved several times.

New

  • The settings page lists your commands the way the System menu shows them. Each row has buttons to edit, duplicate, delete, and move it up or down, and you can drag rows by their handle.
  • One editor for every command: name, shell command, an icon, and these options:
    • ask for confirmation, with your own message
    • run in the background
    • require a recent login
    • ignore errors
  • Run now runs a saved command so you can try it.
  • Sections: a divider can carry a heading, which the System menu shows above the commands that follow it.
  • The System menu shows your icons and headings. OctoPrint's built-in entries (Shutdown, Reboot, Restart, Restart in safe mode) get icons and the headings "System" and "OctoPrint", and you can change both. OctoPrint itself is not modified.

Fixed

  • Adding or editing a command saved it two, three, or more times (#3, and the duplicates in #1).
  • Clicking Confirm in the old dialog could reload the page and lose the new command.
  • Installing or upgrading the plugin could wipe your existing System commands (#1).

Upgrading from 1.x

Commands now live only in OctoPrint's own system.actions. On first start, 2.0 converts what 1.x left behind, once:

  • Both old lists are saved to data/systemcommandeditor/pre-2.0-backup-<date>.yaml.
  • Commands missing from system.actions are restored from the plugin's old copy.
  • Duplicates are reduced to one.
  • Repeated or stray dividers are removed.
  • The old copy is deleted.

octoprint.log reports what was converted. Uninstalling the plugin leaves your commands in the System menu.

Requires OctoPrint 1.9 or newer, including 2.0. Tested on OctoPrint 1.9.3, 1.10.3, 1.11.8 and 2.0.0rc5. On 2.0, saving system commands asks for your password, as OctoPrint requires.