This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Shelly Plus 1PM Script - Absaugungssteuerung | |
| * Logik: Relais EIN wenn (Input EIN) ODER (API arbeitet) | |
| * Relais AUS nach Timeout wenn (Input AUS) UND (API Idle) | |
| */ | |
| let xtool_ip = "10.30.0.77"; | |
| let xtool_path = "http://" + xtool_ip + ":8080/status"; | |
| let poll_interval = 1000; // 1 Sekunde |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import base64 | |
| import mimetypes | |
| import math | |
| import subprocess | |
| from PIL import Image | |
| from lxml import etree | |
| # WARNING: This script was vibe coded. It takes a folder of stickers and puts them onto an A4 canvas for easy printing |