Linux PyQt tray application to control OctoPrint instances
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Thomas Buck 030e45e6af put octoprint api functions in own class 2 anos atrás
.github/workflows remove pylint action, extend readme, try to fix linux ci build 3 anos atrás
data put octoprint api functions in own class 2 anos atrás
dist put octoprint api functions in own class 2 anos atrás
src put octoprint api functions in own class 2 anos atrás
.gitignore split code into multiple files 2 anos atrás
README.md split code into multiple files 2 anos atrás
build_arch.sh split code into multiple files 2 anos atrás
build_linux.sh split code into multiple files 2 anos atrás
build_mac.sh more ci testing 3 anos atrás
build_win.sh split code into multiple files 2 anos atrás

README.md

OctoTray Linux Qt client

This is a simple Qt application living in the system tray. It allows remote-control and observation of 3D printers running OctoPrint. For the implementation it is using PyQt5. Automatic builds are provided for Linux, Windows and macOS.

Build Distribution Packages

For more take a look at OctoTray on my website.

If the system tray is not available (or when passing the ‘-w’ parameter) the main menu will instead be shown in a window.

Building / Running

You have different options of building and running OctoTray:

From Source

OctoTray can simply be run from the checked out repository, if all dependencies are installed.

./src/main.py

For this you need Python 3 as well as PyQt5.

Pre-Built Windows Binary

To run OctoTray on MS Windows without much hassle, a pre-built binary is provided, made with PyInstaller and GitHub Actions.

Simply download the latest version from the GitHub Actions tab, in the artifacts of the most recent build. You need to be logged in for this!

You can also find binaries for each release on GitHub.

To create your own binary from source, simply run:

bash build_win.sh

The resulting executable will be in ‘build/dist/win’ as well as ‘build/dist/OctoTray_Win.zip’.

Pre-Built macOS Application Bundle

For Mac users, a pre-built application bundle is provided, made with py2app and GitHub Actions.

Simply download the latest version from the GitHub Actions tab, in the artifacts of the most recent build. You need to be logged in for this!

You can also find binaries for each release on GitHub.

To create your own bundle from source, simply run:

./build_mac.sh

The generated bundle will then be in ‘build/mac/dist/OctoTray.app’ as well as ‘build/dist/OctoTray_Mac.zip’.

Pre-Built Linux Binary

A single pre-build Linux binary is also provided on GitHub, made with PyInstaller like the Windows build.

To create it yourself, simply run:

./build_linux.sh

The resulting binary will be in ‘build/linux/dist’ as well as ‘build/dist/OctoTray_Linux.zip’.

Arch Linux Package

Create and install an Arch Linux package like this:

./build_arch.sh
sudo pacman -U build/dist/octotray-0.5-1-any.pkg.tar.xz

Then run it from your desktop environment menu or even add it to the autostart there. This uses the same pre-built Linux binary as described above.