Skip to content

Instantly share code, notes, and snippets.

@grischard
grischard / cree-p38-base.yaml
Created February 5, 2026 19:06
Cree P38 esphome
# Cree Lighting Connected Max Smart Led Bulb Par38
packages:
base: !include common_base.yaml
wifi:
min_auth_mode: !remove
bk72xx:
board: generic-bk7231t-qfn32-tuya
uvx --python=3.14 esphome hello
× Failed to build `ruamel-yaml-clib==0.2.12`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 14, in <module>
requires = get_requires_for_build({})
File "/Users/stereo/.cache/uv/builds-v0/.tmpT9x8nF/lib/python3.14/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
substitutions:
name: can-cubesville
friendly_name: Can Cubesville
esphome:
name: can-cubesville
friendly_name: Can Cubesville
bk72xx:
board: generic-bk7231t-qfn32-tuya
wifi:
ap:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@grischard
grischard / logs_esphome-web-aa94f4_run.txt
Created August 1, 2025 13:45
esphome riscv32-esp-elf-g++ linking crash
INFO ESPHome 2025.7.4
INFO Reading configuration /config/esphome/esphome-web-aa94f4.yaml...
INFO Detected timezone 'America/New_York'
INFO Generating C++ source...
INFO Compiling app...
Processing esphome-web-bedroom (board: esp32-c3-devkitm-1; framework: arduino; platform: https://github.com/pioarduino/platform-espressif32/releases/download/53.03.13/platform-espressif32.zip)
--------------------------------------------------------------------------------
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
- framework-arduinoespressif32 @ 3.1.3
- framework-arduinoespressif32-libs @ 5.3.0+sha.489d7a2b3a
@grischard
grischard / lim_admin_distance.py
Created April 11, 2025 06:38
Compare OpenStreetMap admin boundaries to official open data
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "click",
# "requests",
# "geopandas",
# "shapely",
# "pyproj",
# "rich",
@grischard
grischard / swatch_beats.js
Last active October 2, 2024 21:56
Swatch beats Home Assistant
class SwatchBeatBase extends HTMLElement {
interval = null;
connectedCallback() {
if (!this.interval) {
this.interval = setInterval(() => this.updateBeats(), 86);
}
}
disconnectedCallback() {
00:00:00.001 HDW: ESP8266EX
00:00:00.036 CFG: Loaded from flash at FB, Count 293
00:00:00.041 SER: Set to 8E1 4800 bit/s
00:00:00.248 QPC: Reset
00:00:00.251 CFG: CR 347/699, Busy 0
00:00:00.255 TYA: Active=0
00:00:00.259 ROT: Mode 1
00:00:00.260 NRG: Init driver 2
00:00:00.261 SRC: Restart
00:00:00.262 Project tasmota - Neon Version 13.4.0(tasmota)-2_7_6(2024-02-14T16:13:56)
19:21:04.104 MQT: Attempting connection...
19:21:04.123 MQT: Connected
19:21:04.127 MQT: tele/tasmota_28AF0B/LWT = Online (retained)
19:21:04.129 MQT: cmnd/tasmota_28AF0B/POWER =
19:21:05.244 MQT: stat/tasmota_28AF0B/RESULT = {"Time":"2024-06-10T19:21:05","Uptime":"0T00:01:24","UptimeSec":84,"Heap":24,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":5,"POWER":"OFF","Wifi":{"AP":1,"SSId":"NYCR24","BSSId":"28:3B:82:4C:E3:DE","Channel":6,"Mode":"11n","RSSI":100,"Signal":-50,"LinkCount":1,"Downtime":"0T00:00:05"}}
19:21:05.347 MQT: stat/tasmota_28AF0B/STATUS1 = {"StatusPRM":{"Baudrate":4800,"SerialConfig":"8E1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software/System restart","Uptime":"0T00:01:24","StartupUTC":"2024-06-10T18:19:41","Sleep":50,"CfgHolder":4617,"BootCount":7,"BCResetTime":"2022-09-27T00:17:48","SaveCount":282,"SaveAddress":"FB000"}}
19:21:14.235 MQT: Attempting connection...
19:21:14.254 MQT: Connected
19:21:14.258 MQT: tele
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.