Skip to content

Commit

Permalink
Octoprint klipper symlink (#169)
Browse files Browse the repository at this point in the history
* Skip symlink for Klipper printer config

* Install matplotlib and numpy for Klipper

* Corrections to octoprint-klipper Dockerfile
  • Loading branch information
fredrikbaberg authored Jul 1, 2021
1 parent 3eeb945 commit 0926994
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions octoprint-klipper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

[0.7.2]

- Use main file instead of symlink for Klipper launch
- Include numpy and matplotlib for Klipper

[0.7.1]

- Update base image
Expand Down
9 changes: 5 additions & 4 deletions octoprint-klipper/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_FROM="fredrikbaberg/addon-octoprint-next-amd64:0.4.0"
ARG BUILD_FROM="fredrikbaberg/addon-octoprint-next-amd64:0.4.2"

FROM ${BUILD_FROM} AS octoklipper

Expand Down Expand Up @@ -44,12 +44,10 @@ RUN echo "Install build dependencies." && \
py3-virtualenv \
libffi-dev \
gcc-avr \
# python2-dev && \
freetype-dev \
# ncurses-dev \
# gcc-avr \
# binutils-avr \
# avr-libc \
# freetype-dev \
# fribidi-dev \
# harfbuzz-dev \
# jpeg-dev \
Expand All @@ -67,6 +65,7 @@ RUN echo "Install build dependencies." && \
avrdude \
libgpiod \
git \
libpng \
&& \
echo "Setup virtual environment." && \
# virtualenv --python=python3 /root/klippy-env && \
Expand All @@ -75,6 +74,8 @@ RUN echo "Install build dependencies." && \
/root/klippy-env/bin/python -m pip install ${PIP_FLAGS} --upgrade pip && \
echo "Install Klipper" && \
pip install ${PIP_FLAGS} -r /root/klipper/scripts/klippy-requirements.txt && \
echo "Install numpy and matplotlib" && \
/root/klippy-env/bin/python -m pip install ${PIP_FLAGS} numpy matplotlib && \
echo "Compile for Linux MCU" && \
cd /root/klipper && \
make && \
Expand Down
2 changes: 1 addition & 1 deletion octoprint-klipper/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "OctoPrint Klipper",
"version": "0.7.1",
"version": "0.7.2",
"slug": "octoprint-klipper",
"description": "OctoPrint with Klipper add-on for Home Assistant",
"arch": ["armhf", "armv7", "amd64"],
Expand Down
2 changes: 1 addition & 1 deletion octoprint-klipper/rootfs/etc/services.d/klipper/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bashio::log.info "Starting Klipper."

KLIPPER_PYTHON=/root/klippy-env/bin/python
KLIPPY=/root/klipper/klippy/klippy.py
KLIPPER_CFG=${HOME}/printer.cfg
KLIPPER_CFG=/data/klipper/printer.cfg
KLIPPY_LOGFILE=/tmp/klippy.log

touch ${KLIPPY_LOGFILE}
Expand Down

0 comments on commit 0926994

Please sign in to comment.