Skip to content

Instantly share code, notes, and snippets.

@bernhardberger
bernhardberger / README.md
Created October 12, 2026 13:23
TVHeadend Record all regression tests (#2338)

TVHeadend Record all regression tests

Standalone regression suite for tvheadend/tvheadend#2338, fixing #2337.

The script runs 26 tests against real, isolated TVHeadend processes using XMLTV and the JSON API. It uses only the Python standard library. Each test creates a temporary configuration, recordings directory and loopback listeners. It does not use your running server or production configuration.

Run

Download test_autorec_record_all.py alongside this README. Build TVHeadend with external XMLTV support, then run:

@bernhardberger
bernhardberger / K-Factor for Pressure Advance.g
Last active February 8, 2022 14:15
K-Factor for Pressure Advance
; adjust values to your needs
var temp_nozzle = 195
var temp_bed = 55
var nozzle_diameter = 0.6
var layer_height = 0.1618
var line_width = 0.6
var pa_start = 0
@bernhardberger
bernhardberger / teensy31-buttons-basics.ino
Created July 1, 2015 21:12
teensy 3.1 quick sketch 32 buttons no pullup
// the buttons in the gamecontroller will be in that order.
// first button in array.. button#1, second button, button#2 etc.
// if you need to skip a button set the value "-1"
const int buttonPins[] = {
11, // Button 1 | Paddle Shift Down
19, // Button 2 | Paddle Shift Up
-1, // Button 3 | ------------------
5, // Button 4 | Exit