Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import Queue
import collections
import cStringIO
import signal # Important.
import subprocess
import tarfile
import threading
@Rudd-O
Rudd-O / waspmode.json
Created November 8, 2022 13:18
Wasp mode in Node-RED
[
{
"id": "6f299a411f95a45d",
"type": "subflow",
"name": "Wasp lights",
"info": "",
"category": "",
"in": [
{
"x": 40,
@Rudd-O
Rudd-O / zfs.py
Created February 27, 2023 02:59
(very green) ZFS driver for Qubes volume pools.
"""
Driver for storing qube images in ZFS pool volumes.
"""
import dataclasses
import logging
import os
import subprocess
import time
@Rudd-O
Rudd-O / masterslaveclimate.yaml
Created August 2, 2023 07:06
Master / slave air conditioning with PID controlling actual unit
substitutions:
initial_kp: "0.5"
initial_ki: "0.01"
initial_kd: "0.0"
initial_temperature_stiction: "0.1"
initial_fan_stiction: "0.1"
initial_medium_fan_threshold: "0.2"
initial_high_fan_threshold: "1.5"
initial_max_delta_from_setpoint: "5.0"
min_integral: "-0.3"