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
View serial.log
2014-10-23 16:58:02,141 - SERIAL - DEBUG - Enabling serial logging
2014-10-23 16:58:09,247 - SERIAL - DEBUG - Changing monitoring state from 'Operational' to 'Closed'
2014-10-23 16:58:13,303 - SERIAL - DEBUG - Connection closed, closing down monitor
2014-10-23 16:58:16,878 - SERIAL - DEBUG - Changing monitoring state from 'Offline' to 'Opening serial port'
2014-10-23 16:58:16,883 - SERIAL - DEBUG - Connecting to: /dev/ttyAMA0
2014-10-23 16:58:16,922 - SERIAL - DEBUG - Connected to: Serial<id=0x1ad8fb0, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=20.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2014-10-23 16:58:16,926 - SERIAL - DEBUG - Changing monitoring state from 'Opening serial port' to 'Connecting'
2014-10-23 16:58:36,974 - SERIAL - DEBUG - Send: M105
2014-10-23 16:58:37,000 - SERIAL - DEBUG - Recv: ok T:21.5 /0.0 B:21.1 /0.0 @:0%
2014-10-23 16:58:37,005 - SERIAL - DEBUG - Changing monitoring state from 'Connecting' to 'Operational'
foosel /
Last active Jan 24, 2017
First experiments with NodeMCU to publish the current settings of my adjustable height working desk to MQTT

First experiments with NodeMCU to publish the current settings of my adjustable height working desk to MQTT.

NodeMCU can be found here:

Note that you'll need a current version with support for floats (which the ultrasonic sensor library utilizes), I'm using 0.9.5 2015-03-18 with float support myself.

Support for the HC-SR04 sensor in NodeMCU can be found here:

I provided my slightly adjusted version which makes measuring a non-blocking afair, allowing for callbacks when the measurement completes.

foosel /
Last active Feb 22, 2020
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 May 2, 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 / 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 / psu-holder.scad
Created Sep 16, 2013
Bracket for mounting the stock PSU that comes with the Ultimaker beneath the printer
View psu-holder.scad
foosel / webcamDaemon
Created Jul 28, 2013
Adjusted webcamDaemon for OctoPi that does not hang
View webcamDaemon
vcgencmd version
while true; do
if [ "`vcgencmd get_camera`" = "supported=1 detected=1" ]; then
logger "Starting webcam"
pushd /home/pi/mjpg-streamer-experimental
LD_LIBRARY_PATH=. ./mjpg_streamer -o " -w ./www" -i " -d 100"
foosel /
Last active Dec 18, 2015
Bus Pirate v3.6 case, created in OpenSCAD

Case for Bus Pirate v3.6 (Dangerous Prototypes/Seeedstudio version)

Case for Bus Pirate v3.6

This is a case for the Bus Pirate v3.6 from Dangerous Prototypes as listed on Thingiverse to be printed on a 3D printer.

In order to compile this file to an STL you'll need OpenSCAD and also the file oshw.scad which you can find here on Thingiverse.

View soupio_vi_keys.user.js
// ==UserScript==
// @name vi keys
// @namespace
// @include http://**
// @description Enables jumping from post to post on by using the vi keys (j for next, k for previous; n and p are supported as well).
// ==/UserScript==
window.addEventListener("keydown", KeyCheck, true);
function scrollDown() {
var postOffset = 50;
You can’t perform that action at this time.