The "-z" flag will run the install script without running the
systemctl command. This is useful for installations which
are done outside of the normal "boot" process.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
The tag-release.sh script creates an annotated tag containing
Klipper's current state. Moonraker's update manager parses
this annotation to bind the available Klipper version to this
release of Moonraker.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
The pyserial-asyncio dependency pins pyserial to any version
greater than 3.4. Currently pip is distributing version 3.5,
which is not an official stable release.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This component will be a bridge between moonraker and https://github.com/caronc/apprise. This way users can easily add all kind of notification services to their printer.
Signed-off-by: Pieter Willekens <me@pataar.nl>
This tool may be used to backup and restore Moonraker's lmdb
database without depending on the "lmdb-utils" package. The
backup is done to a plain text file in cdb format, so a backup
may be restored on any platform.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Check for the moonraker-admin Supplementary group
in the moonraker service file and add it if necessary.
For PolKit versions > 0.106 make sure that the process
is launched with the moonraker-admin group before
granting any polkit permissions.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Add the "moonraker-admin" supplementary group to the service unit
file. Check if polkit rules are available after installation, if not
advise the user that they may wish to run set-polkit-rules.sh.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This is added to distrubute the changes made to "enum-converter.py"
taken from the original PackageKit repo.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Moonraker itself does not depend on nginx and it
is no longer required to install clients on the host.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This file is no longer required for moonraker, the version info will either be stored in the pex file or retreived from git.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Cura writes ufp files in chunks, closing the file after each chunk is written. This will result in a failed extraction, and removing the file will result in corruption.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
The previously deprecated "data" field has now been removed. The "size" field now reports the size of the png. Clients may use the "relative_path" field to retrieve thumbnail png files.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Adds a simple implementation for parsing filament weight from Cura g-code with help of a custom start-g-code comment.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This will parse the total used filament weight of g-code files created by Simplify3D, PrusaSlicer, SuperSlicer and ideaMaker
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This fix will now correctly parse the used filament from g-code generated by ideaMaker. The used filament is located in the footer of the g-code file.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
Include a relative path the the thumbnail in the metadata. This commit deprecates base64 image transfers. A future commit will remove base64 data from the metadata, clients will be expected to retrieve thumbnails as a static file.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This causes the uninstallation script to fail if the user has not applied the patch. It should be removed in a separate script.
Signed-off-by: Eric Callahan <arksine.colde@gmail.com>
This provides the update manager flexibility, such as the ability to define disto specific dependencies. This also fixes an issue where two updates are necessary to install additional dependencies.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This allows for the installation of python "dist-packages" without enabling "system-site-packages" in the virtualenv. As of the moment moonraker only requires the gpiod dist package.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This can create issues of the system includes conflicting packages. Create a symlink for the system "gpiod" instead.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Run the legacy install cleanup after Klipper is detected in install-moonraker.sh
Fix whitespace errros in uninstall-moonraker.sh
Signed-ff-by: Eric Callahan <arksine.code@gmail.com>
Moonraker's update_manager plugin will check this file to see if dependencies or the python enviroment need an update.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Add python3-libgpiod dependency.
As this dependency requiress a rebuild of the python3 environment, add some command line options to the install script:
- "-r" will rebuild the virtualenv
- "-f" will force overwite the defaults file. By default an existing defaults file will not be modified.
- "-c <config_path>" will direct moonraker to use the supplied path for the config file.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Determine the byte location of the first and last gcode command (Either Mxxx or Gxxx commands). This is useful for determining the portion of the file that consists of actual commands.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
If Klipper is installed as systemd service, the script would fail and exit at step 6 (corrected that typo) when trying to stop Klipper via init.d.
Changing the used command to systemctl will be compatible with both init.d and systemd services.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>