Print volume:
- width: 210
- depth: 297
- height: 220
# 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" | |
else: | |
return line |
# coding=utf-8 | |
def strip_M110_parameter(comm_instance, phase, cmd, cmd_type, gcode, subcode=None, *args, **kwargs): | |
if gcode != "M110": | |
return | |
return "M110" # make sure we always just send M110, no N parameters or anything else | |
__plugin_name__ = "Strip M110 Parameters" | |
__plugin_description__ = "Strips any parameters from M110 commands to work around firmware quirks" | |
__plugin_author__ = "Gina Häußge" |
// ==UserScript== | |
// @name Liberapay donations per month | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hovering over the "user receives ... per week from ... patrons" will now show the received amount per month. Currently only works for the english version since it matches the header line via the contained text - couldn't find better attributes for that. | |
// @author Gina Häußge <osd@foosel.net> | |
// @match https://liberapay.com/* | |
// @grant none | |
// ==/UserScript== |
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' |
First experiments with NodeMCU to publish the current settings of my adjustable height working desk to MQTT.
NodeMCU can be found here: https://github.com/nodemcu/nodemcu-firmware
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: https://github.com/sza2/node_hcsr04
I provided my slightly adjusted version which makes measuring a non-blocking afair, allowing for callbacks when the measurement completes.
.octoprint/plugins/filetab
, .octoprint/plugins/filetab/templates
and .octoprint/plugins/filetab/static/css
__init__.py
to .octoprint/plugins/filetab
filetab_tab.jinja2
to .octoprint/plugins/filetab/templates
filetab.css
to .octoprint/plugins/filetab/static/css
appearance.components.tab.order
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.: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.
Install fingerprint-gui:
sudo add-apt-repository ppa:fingerprint/fingerprint-gui
# Configuration for /etc/init.d/mjpg-streamer | |
# The init.d script will only run if this variable non-empty. | |
MJPG_STREAMER_USER="pi" | |
# Where mjpg-streamer is installed, this is important! | |
DAEMON_HOME=/home/pi/mjpg-streamer | |
# What arguments to pass to mjpg-streamer, here is few examples; You can change them by commenting one and | |
# uncommenting another: |