- Look for "invisible text" (adjust brightness / contrast / colors / levels / threshold / curves)
- Look for groups of businesses
- sometimes gas stations can change names, so use
["amenity"="fuel"]
| #!/usr/bin/env python3 | |
| import serial | |
| import glob | |
| import os | |
| import time | |
| import re | |
| LOGFILE = "/var/log/printer_mapping.log" | |
| PRINTER_DIR = "/dev/printers" |
["amenity"="fuel"]| <xml> | |
| <test></test> | |
| </xml> |
| substitutions: | |
| devicename: clock | |
| upper_devicename: clock | |
| time: | |
| - platform: homeassistant | |
| id: esptime | |
| sensor: | |
| - platform: homeassistant |
| # https://www.instructables.com/H-Bridge-Motor-Driver-for-Arduino-Using-Transistor/ | |
| # https://www.modularcircuits.com/blog/articles/h-bridge-secrets/h-bridges-the-basics/ | |
| substitutions: | |
| devicename: water_dispenser | |
| upper_devicename: water dispenser | |
| globals: |
| Uses actual Power state instead of button press so that it works from remote HomeAssistant commands | |
| as well as local commands | |
| Rule1 | |
| ON Power1#state=1 DO RuleTimer1 3600 ENDON | |
| ON Rules#Timer=1 DO Power1 off ENDON |
| #!/bin/bash | |
| # from https://raspberrypi.stackexchange.com/questions/5407/how-can-i-cut-power-coming-out-of-the-pis-usb-ports | |
| sudo uhubctl -l 2 -a 2 |
| <smil> | |
| </smil> |
| /** | |
| * Renders an idempotent-ly random color hex code based on the input string | |
| * @param str | |
| * @returns | |
| */ | |
| stringToColor(str: string): string { | |
| /** | |
| * will end up as a 3-byte "char" array | |
| */ | |
| var hex: number[] = []; |
| # esphome configuration for the TTGO T-Camera ESP32-WROVER-B | |
| # https://www.aliexpress.com/item/TTGO-T-Camera-ESP32-WROVER-B-PSRAM-Camera-Module-ESP32-WROVER-OV2640-Camera-Module-0-96/32966036489.html | |
| # I use this 3D-printed case for the device: | |
| # https://www.thingiverse.com/thing:3540059 | |
| esphome: | |
| name: woonkamer | |
| platform: ESP32 | |
| board: esp32dev |