Skip to content

Instantly share code, notes, and snippets.

@matt-desmarais
matt-desmarais / output.txt
Last active October 29, 2025 20:10
Youtube Transcription by URL
(base) matt@Matts-MacBook-Pro YoutubeWhisper % python ytwhisper.py "https://www.youtube.com/watch?v=EXHZMivG00c"
[✓] Downloaded audio: downloads/YTCracker ft. Hairetsu - I am so fucked up [EXHZMivG00c].wav
/Users/matt/anaconda3/lib/python3.11/site-packages/whisper/transcribe.py:132: UserWarning: FP16 is not supported on CPU; using FP32 instead
warnings.warn("FP16 is not supported on CPU; using FP32 instead")
[✓] Transcript: downloads/YTCracker ft. Hairetsu - I am so fucked up [EXHZMivG00c].txt
[✓] Subtitles: downloads/YTCracker ft. Hairetsu - I am so fucked up [EXHZMivG00c].srt
--- TRANSCRIPT START ---
Watch out now! I am so fucked up I must take a knee I am so fucked up Living dangerously I am so fucked up So fucked up Living dangerously Yo I can pull on a top hat Till my lungs collapse And I can turn it up from earth To the maps I got these eight tracks Like bands in a railroad Nail holes in the bands With the air hole The sunroof retracted Girls I attracted Turn their heads Had that sound on myself I g
@matt-desmarais
matt-desmarais / meshtastictools.yaml
Last active September 30, 2025 00:13
Meshtastic New Node Detected + Auto-Answer DM + Assist Echo
blueprint:
name: Meshtastic Node Monitor + DM Auto-Answer + Assist Echo
description: >
Notify when Meshtastic ONLINE/TOTAL node counts increase and (optionally) send a message
to the mesh when the TOTAL count increases. Also (optionally) auto-answer Meshtastic DMs
with a toggle (skips the Assist source node). Optionally process DMs from a specific node
via the Conversation agent and echo the result back as a DM, controlled by a toggle.
domain: automation
input:
@matt-desmarais
matt-desmarais / meshtasticnodesnotification.yaml
Last active September 19, 2025 20:40
Meshtastic Nodes Notifications
blueprint:
name: Meshtastic New Node Detected
description: >
Notify when Meshtastic ONLINE/TOTAL node counts increase and send a message to the mesh when
the TOTAL count increases.
domain: automation
input:
nodes_total_sensor:
name: Total nodes sensor
selector:
@matt-desmarais
matt-desmarais / config.yaml
Last active September 4, 2025 17:42
Home Assistant Tides and Buoy Data
# --- creates sensor.tides ---
- platform: noaa_tides
name: tides # Useful when more than one sensor is used. Otherwise a name is generated.
station_id: 8447525 # A station ID from https://tidesandcurrents.noaa.gov/
type: tides # This station will be used to measure water level
scan_interval: 360 # Polling interval for the NOAA API
# --- creates sensor.buoy ---
- platform: noaa_tides
name: buoy
@matt-desmarais
matt-desmarais / meshassistblueprint.yaml
Last active September 28, 2025 18:25
Meshtastic Assist Command via DM
combine with this blueprint, have a toggle for assist
blueprint:
name: Meshtastic DM Command Echo
description: >
Respond to direct messages (DMs) from a specific Meshtastic node using
Home Assistant's conversation agent. Triggers only on private messages
(no channel) and replies as a DM to the specified recipient.
domain: automation
input:
{
"type": "micro",
"wake_word": "hey nifty",
"author": "Matt Desmarais",
"website": "https://yourwebsite.com/",
"model": "hey_nifty.tflite",
"version": 2,
"micro": {
"probability_cutoff": 0.97,
"sliding_window_size": 5,
@matt-desmarais
matt-desmarais / MQTTblueprint.yaml
Last active April 27, 2025 14:35
Zigbee - Tour Mode MQTT
blueprint:
name: Zigbee - Tour Mode Picow
description: Control Apple II tour mode using Zigbee buttons and conversation triggers.
domain: automation
input:
zigbee_button:
name: Zigbee Button
description: Select your Zigbee button device.
selector:
device:
@matt-desmarais
matt-desmarais / boot.py
Last active April 23, 2025 23:12
Performa.py
import board
import digitalio
import usb_hid
import storage
import supervisor
import time
# Use GP0 (pin 1) as debug button — pull low to enable CIRCUITPY
debug_button = digitalio.DigitalInOut(board.GP0)
debug_button.switch_to_input(pull=digitalio.Pull.UP)
@matt-desmarais
matt-desmarais / blueprint.yaml
Last active May 29, 2025 16:58
Idle Auto Fans Blueprint
blueprint:
name: Auto Fans when idle
description: Control fans based on idle time
domain: automation
input:
climate_entity:
name: Climate Entity
description: The climate entity to control.
selector:
entity:
@matt-desmarais
matt-desmarais / tourmode.yaml
Last active May 2, 2025 19:59
Zigbee: Tour Mode
blueprint:
name: Zigbee - Tour Mode
description: Control Apple II tour mode using Zigbee buttons and conversation triggers.
domain: automation
input:
zigbee_button:
name: Zigbee Button
description: Select your Zigbee button device.
selector:
device: