Skip to content

Instantly share code, notes, and snippets.

Working full-time on OctoPrint

Gina Häußge foosel

Working full-time on OctoPrint
View GitHub Profile
foosel /
Last active Jan 14, 2021
OctoPrint Filetab plugin & configuration instructions

Moving the "Files" component from the sidebar to the tab section

  1. Create .octoprint/plugins/filetab, .octoprint/plugins/filetab/templates and .octoprint/plugins/filetab/static/css
  2. Copy to .octoprint/plugins/filetab
  3. Copy filetab_tab.jinja2 to .octoprint/plugins/filetab/templates
  4. Copy filetab.css to .octoprint/plugins/filetab/static/css
  5. Optional: Adjust the to list plugin_filetab in .octoprint/config.yaml if you want the "Files" tab to be placed somewhere else than after the regular tab components, e.g.:
foosel /
Last active Jan 3, 2021
Requests long names for files on printer's SD card via M33. OctoPrint 1.4.2+. No maintenance, no support.
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import octoprint.plugin
import octoprint.util.comm
class M33StormPlugin(octoprint.plugin.EventHandlerPlugin):
def __init__(self):
self._active = False
foosel /
Last active Dec 16, 2020
Getting the fingerprint reader of a Thinkpad x240 to work under Ubuntu 14.04

lsusb lists the fingerprint reader in the x240 as follows:

Bus 002 Device 003: ID 138a:0017 Validity Sensors, Inc.

There exists experimental driver support for this in a fork of libfprint for vfs5011 sensors, however you'll need to compile the driver yourself. To get the fingerprint sensor to work for lightdm login, su etc, follow these steps.

  1. Install fingerprint-gui:

    sudo add-apt-repository ppa:fingerprint/fingerprint-gui
foosel /
Last active Nov 20, 2020
OctoPrint plugin that rewrites received wait responses to echo:busy processing for broken firmware misunderstanding when wait should be used. Place in ~/.octoprint/plugins
# coding=utf-8
import logging
def rewrite_wait_to_busy(comm_instance, line, *args, **kwargs):
if line == "wait" or line.startswith("wait"):
return "echo:busy processing"
return line
foosel / mjpg-streamer.default
Created Dec 30, 2013
MJPG-Streamer init/default scripts by Sami Olmari (mirrored from and
View mjpg-streamer.default
# Configuration for /etc/init.d/mjpg-streamer
# The init.d script will only run if this variable non-empty.
# Where mjpg-streamer is installed, this is important!
# What arguments to pass to mjpg-streamer, here is few examples; You can change them by commenting one and
# uncommenting another:
foosel / lighter_freecad_forum.user.css
Last active Sep 24, 2020
Lighter FreeCAD Forum Userstyle. Install with Stylus extension. Tested on Firefox.
View lighter_freecad_forum.user.css
/* ==UserStyle==
@name Lighter FreeCAD Forum
@version 1.0.2
@description A lighter theme for the FreeCAD forum. Sans-serif instead of Fira-Sans, slightly more line-height, slightly less bold headlines, less read everywhere. Easier on the eyes.
@author foosel
==/UserStyle== */

Bot Commands on the OctoPrint Discord Server


  • ?role: Get an overview of the available roles (teams, ranks) you can join. Only allowed in #bot-commands
  • ?role <role>: Join joinable role. Only allows in #bot-commands
  • ?ranks: Alias for ?role
  • ?rank <rank>: Alias for ?role <role>
  • ?joinirc & ?leaveirc: Use these to either join or leave the IRC bridge channel #irc (invisible by default). Aliases for ?role IRC. Only allowed in #bot-commands
foosel /
Last active Jun 25, 2020
Patron Export Helper
foosel / Dockerfile
Last active May 12, 2019
Simple Dockerfile & composition to run a speedtest2mqtt setup using speedtest-rs from
View Dockerfile
FROM rust:1.31
WORKDIR /usr/src
RUN git clone
WORKDIR ./speedtest-rs
RUN cargo install --path .
ADD /opt/
RUN apt-get update && \
foosel / Dockerfile
Created May 12, 2019
Simple Dockerfile & composition to run a speedtest2mqtt setup using speedtest-go from
View Dockerfile
FROM alpine:3.7
ADD /opt/
COPY speedtest-go /usr/bin/speedtest-go
RUN apk update && \
apk add ca-certificates mosquitto-clients && \
rm -rf /var/cache/apk/* && \
chmod 777 /opt/