GithubHelp home page GithubHelp logo

christophschranz / octoprint-preprintservice Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 6.0 1.33 MB

This service supports your 3D printing workflow by providing auto-rotation and slicing functionality.

Home Page: https://plugins.octoprint.org/plugins/preprintservice/

License: GNU Affero General Public License v3.0

Python 63.17% JavaScript 10.25% HTML 6.46% Dockerfile 2.20% Less 0.65% Jinja 17.27%

octoprint-preprintservice's Introduction

Welcome ๐Ÿ‘‹

Chris's github stats

My top repos:

Would you like to be my patreon?

Both projects are developed and maintained in spare time without any gage (beside few initial starting hours). I would like to work more on my open-source projects to offer a high code quality and new content regularly.

octoprint-preprintservice's People

Contributors

christophschranz avatar dependabot[bot] avatar koevoet1221 avatar nathan-beam avatar smartin015 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

octoprint-preprintservice's Issues

FEATURE REQUEST: Add Option to Disable Navbar Link

Is it possible to add an option to remove the help link in the navbar "Using PrePrint Service"? Once it is set up and testing, I'm not really sure of the value of having it take up critical real estate.

Test localhost:2304/tweak failed

My first test failed with this log message

[2020-08-12 05:05:52,218] INFO in tweak-service: Using Tweaker actions: tweak
[2020-08-12 05:05:52,218] INFO in tweak-service: Running Tweak with command: 'python3 /src/Tweaker-3/Tweaker.py -i /src/uploads/3DBenchy.stl -x -vol -t binarystl -o /src/uploads/tweaked_3DBenchy.stl'
usage: Tweaker.py [-h] [-i  INPUTFILE] [-o  OUTPUTFILE] [-vb] [-p] [-c]
                  [-t  OUTPUT_TYPE] [-x] [-v] [-r] [-fs FAVSIDE]
                  [-min MINIMIZE]
Tweaker.py: error: unrecognized arguments: -vol

tweak http error code 500

Hi there,
I was trying to use the PrePrintService in my Octoprint installation. I am using everything on the same machine (a good linux server).
I can reach the tweak webpage and create gcode files. But on usage on octoprint, trying to slice a .stl-file I get an 500 error:

2021-01-06 20:24:11,661 - octoprint.filemanager.analysis - INFO - Analysis of entry local:z3.gco finished, needed 0.85s 2021-01-06 20:24:13,564 - octoprint.plugins.preprintservice - INFO - POST to service with status code: 500 2021-01-06 20:24:13,564 - octoprint.plugins.preprintservice - ERROR - Got http error code 500 on request http://ip-address:2304/tweak 2021-01-06 20:24:13,564 - octoprint.plugins.preprintservice - INFO - Couldn't post to http://ip-address:2304/tweak

What am I doing wrong. Only a non-usable 76bytes gco-file is being created in octoprint. I was wondering anywhere how to get a profile configuration file to be used with the service. I ended up installing slic3r on my linux machine, put all the printer settings (bed size, filament size..) in there and export the settings to an .ini-file. That file I then used as a profile in the plugin-page of the preprint-service in octopring.

Could anyone give me a hint of what I am doing wrong? I would appreciate it.

PrusaSlicer Support

First thank you for this - I am excited to not have to switch between my iPad and computer just to slice.

I was hoping to use this w/ the latest version of PrusaSlicer by changing
SLIC3R_VERSION=https://github.com/prusa3d/Slic3r/releases/download/version_1.41.3/Slic3rPE-1.41.3+linux64-full-201902121303.tar.bz2
to
SLIC3R_VERSION=https://github.com/prusa3d/PrusaSlicer/releases/download/version_2.2.0/PrusaSlicer-2.2.0+linux-x64-202003211856.tar.bz2

but it didn't work - it ended up resulting in an error:
pre-print-service_1 | Segmentation fault pre-print-service_1 | [2020-05-01 22:17:10,819] ERROR in tweak-service: Slicing was executed with the warning: . pre-print-service_1 | [2020-05-01 22:17:10,820] INFO in tweak-service: Sending file '/src/uploads/TEST.gco' to URL 'https://octoprint.mydomain.com/api/files/local' pre-print-service_1 | XXX.XX.0.1 - - [01/May/2020 22:17:10] "POST /tweak HTTP/1.1" 500 -

any thoughts on where else I would have to make changes - I tried to edit the following in tweak-service.py:
app.config['SLIC3R_PATHS'] = ["/Slic3r/slic3r-dist/slic3r", "/home/chris/Documents/software/Slic3r/Slic3rPE-1.41.2+linux64-full-201811221508/slic3r"]

as neither of these paths were there but it didn't appear to make a difference.

Thx!

Thumbnails

Is there a way to embed thumbnails into the sliced gcode file? This works fine in the windows desktop version but I cannot seem to find any information on handling thumbnails using the command line slicer.

I have the thumbnail property set to 16x16,235x235 in my profile ini file just as is used in the windows desktop version. I also tried adding --thumbnails 16x16,235x235 but the base64 thumbnail code is not injected into the sliced gcode.

File not found and no auto rotate file generated

I have run into two issues with the plugin. First I randomly get the error FileNotFoundError when using the testing UI on the host node. Checking out the logs I see something like this:

pre-print-service_1  | [2020-01-19 16:59:58,975] INFO in tweak-service: Running Tweak with command: 'python3 /src/Tweaker-3/Tweaker.py -i /src/uploads/13012020_34961_Body.stl -x -vol -t binarystl -o /src/uploads/tweaked_13012020_34961_Body.stl'
pre-print-service_1  | Traceback (most recent call last):
pre-print-service_1  |   File "/src/Tweaker-3/FileHandler.py", line 26, in load_mesh
pre-print-service_1  |     objs = self.load_ascii_stl(f)
pre-print-service_1  |   File "/src/Tweaker-3/FileHandler.py", line 72, in load_ascii_stl
pre-print-service_1  |     for line in f:
pre-print-service_1  |   File "/usr/local/lib/python3.6/codecs.py", line 321, in decode
pre-print-service_1  |     (result, consumed) = self._buffer_decode(data, self.errors, final)
pre-print-service_1  | UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8e in position 80: invalid start byte

Second, when using the Octoprint UI and the auto-rotate only option, it doesn't seem to do anything when dragging in an STL file. The response in the logs says:

INFO in tweak-service: Sending back file was skipped as expected

Why is sending the file back being skipped? I would expect to see a new file added to the Octoprint queue with the tweaked version.

Return and Save Checkbox

First, Thanks so much for developing this plugin! It is super helpful in my particular use case and makes my print process much smoother when combined with the Continuous Print Queue (CPQ) plugin.

Next, I noticed that the auto-rotated model is always returned, whether or not I have the "Return and save auto-rotated model" checkbox checked. I'm not sure if this is a setup error on my part or some issue with CPQ compatibility, any direction you could provide would be greatly appreciated. Thanks again!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.