spiritdude / print3r Goto Github PK
View Code? Open in Web Editor NEWCommand line interface (CLI) for 3d printing
License: GNU General Public License v3.0
Command line interface (CLI) for 3d printing
License: GNU General Public License v3.0
i been looking in the gcode the print time, but i did not see it, would u help me with that?
your project is awesome :3
Use this Dockerfile:
FROM ubuntu:22.04
ARG BUILDARCH
ENV DEBIAN_FRONTEND=noninteractive
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt update && apt install -y pkg-config autoconf automake libtool bison flex m4 libprotobuf-dev build-essential ninja-build python3 sudo python3-pip && \
apt install -y --no-install-recommends ca-certificates libncurses-dev git slic3r openscad openscad-mcad python-is-python3 python3-venv wget
#RUN bash -c 'if [[ ${BUILDARCH} = "arm64" ]]; then arch=aarch64; else arch=${BUILDARCH}; fi; echo $arch && false'
RUN bash -c 'if [[ ${BUILDARCH} = "arm64" ]]; then arch=aarch64; elif [[ ${BUILDARCH} = "amd64" ]]; then arch="x86_64"; else arch=${BUILDARCH}; fi; wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2-linux-${arch}.sh -O /tmp/cmake-3.24.2-linux.sh'
RUN chmod +x /tmp/cmake-3.24.2-linux.sh && /tmp/cmake-3.24.2-linux.sh --skip-license --prefix=/usr/local
RUN git clone https://github.com/Ultimaker/CuraEngine.git /build/CuraEngine && cd /build/CuraEngine
WORKDIR /build/CuraEngine
ENV CONAN_SYSREQUIRES_MODE=enabled
ENV CONAN_SYSREQUIRES_SUDO=0
RUN --mount=type=cache,target=/root/.cache,sharing=locked pip install conan --upgrade && conan config install https://github.com/ultimaker/conan-config.git && conan profile new default --detect --force && conan remote remove cura
RUN conan install . --build=missing --update
#RUN ls -la /root/.conan/data/rapidjson/1.1.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/ && false
#RUN ls cmake-build-release/conan | grep -i rapidjson && false
#RUN sed --in-place -E 's/rapidjson/RapidJSON/' CMakeLists.txt
RUN cmake --preset release -DCMAKE_BUILD_TYPE=release && cmake --build --preset release -DCMAKE_BUILD_TYPE=release
RUN cp /build/CuraEngine/build/Release/CuraEngine /usr/local/bin/CuraEngine
RUN rm -f /etc/apt/apt.conf.d/assume-yes; echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/assume-yes
RUN git clone https://github.com/Spiritdude/Print3r /build/print3r
WORKDIR /build/print3r
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
--mount=type=cache,target=/root/.cpan,sharing=locked \
make requirements CPAN='cpan -T'
RUN make install
RUN pip install octoprint-cli
WORKDIR /work
CMD print3r
Run this:
$ docker run --rm -it -v /Volumes/gv0/workspace/3d-printing/print3r:/root/.config/print3r -e PRINT3R_PRINTER=feestfabriek $(docker build -q .) print3r --slicer=cura-slicer --retraction-speed=50 --retraction-distance=0.2 --layer-height=0.2 --scad slice "cube(20)"
[2022-10-13 05:01:13.568] [error] Couldn't find definition file with ID: fdmextruder
[2022-10-13 05:01:13.568] [error] Couldn't open JSON file:
[2022-10-13 05:01:13.569] [warning] Unrecognized data type in JSON setting machine_disallowed_areas
[2022-10-13 05:01:13.569] [warning] Unrecognized data type in JSON setting nozzle_disallowed_areas
[2022-10-13 05:01:13.569] [warning] Unrecognized data type in JSON setting machine_head_polygon
[2022-10-13 05:01:13.569] [warning] Unrecognized data type in JSON setting machine_head_with_fans_polygon
[2022-10-13 05:01:13.574] [info] loading '/tmp/print3r-25-1-0.stl' took 0.00021004676818847656 seconds
[2022-10-13 05:01:13.574] [error] Trying to retrieve setting with no value given: material_shrinkage_percentage_z
I see that the fdmextruder file is commented out here (and has been for several years). So how is this supposed to work? Am I supposed to install that file myself or something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.