Skip to content

Instantly share code, notes, and snippets.

View unre4l's full-sized avatar

Jonathan Wischhusen unre4l

View GitHub Profile
/**
* Shelly Plus/Pro 2PM – Taupunkt-Skript
* - Standard: Innen per BLE, Außen per HTTP
* - HTTP wird pro Zyklus in evaluate() abgefragt (kein interval_ms)
* - Age-Failsafe: AUS nur im Intervall (wenn ein Sensor älter als age_ms)
* - evaluate() schaltet nur EIN (diff >= on_c); AUS macht ausschließlich Failsafe
* - /status liefert direkt das state-Objekt
* - Taupunkt (TAUPI 4.0): a=17.62, b=243.12
*/
@unre4l
unre4l / docker-compose.yml
Last active November 11, 2021 01:39
Run repository scripts inside foreign containers.
# This script is usefull if you have a public foreign image with git and a desired development environment set up
# (e.g. jupyter). You can use this to checkout your repo inside the container, run your code (e.g. python scripts)
# and commit the results back to your repo without the need to alter or deploy the original image. Can also be used
# for kubernetes pods.
version: '3.7'
services:
example:
environment:
@unre4l
unre4l / cura_g-code.md
Last active November 29, 2020 12:05
Start/end G-Code for Ender 3

Start G-Code

;; Start heating both the hotend and bed while we home.
M104 S150 ; Set nozzle no-ooze warmup temp
M140 S{material_bed_temperature_layer_0}

G12 ; wipe nozzle
G28 ; Home all axes