Skip to content

Instantly share code, notes, and snippets.

View danielrosehill's full-sized avatar

Daniel Rosehill danielrosehill

View GitHub Profile
@danielrosehill
danielrosehill / opnsense-haproxy.md
Created August 29, 2025 12:37
LAN redirect wiith Opnsense and Haproxy

Opnsense Redirect On Gateway Host Logic

Example problem

Danel installs Homebox on his home network.

Daniel installs it on an Ubuntu VM at 10.0.0.1.

Daniel later realises that his home network config is dumb! He moves the gateway to 10.0.0.1.

@danielrosehill
danielrosehill / tapo-and-rtsp.md
Last active August 25, 2025 17:32
Tapo cams and RTSP

TP-Link Tapo Cams & RTSP - Troubleshooting

Enabling

You can enable RTSP in TP Link Tapo in the documented way (advanced -> cam account -> etc)

What happened to my RTSP feed?

If you try to integrate the RTSP streams with platforms like Home Assistant, Frigate, etc. as generic cameras, you may have noticed that the RTSP is extremely unreliable

@danielrosehill
danielrosehill / qwen3-models.md
Created August 25, 2025 16:18
Qwen 3 Open Router Model Names
Model Name Purpose / Specialization Notes
qwen/qwen3-235b-a22b-2507 Base frontier model 235B parameters (22B active via MoE), July 2025 build. General reasoning + generation.
qwen/qwen3-coder Coding-optimized Trained/fine-tuned for code tasks (multi-language programming support).
qwen/qwen3-coder:free Coding (free tier) Same as above, but with usage caps / lower priority queueing.
qwen/qwen3-235b-a22b-thinking-2507 Long-form / reasoning mode “Thinking” variant optimized for chain-of-thought style reasoning.
qwen/qwen3-235b-a22b-2507 (Instruct tuning) Instructio

Human Readable Timestamps in N8N

From $now

{{ new Date($now).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }) }}

@danielrosehill
danielrosehill / yolox-models.py
Created August 19, 2025 22:55
Yolox models download
#!/usr/bin/env python3
"""
Script to download YOLOX ONNX models from GitHub releases.
Downloads all models listed in the Frigate YOLO reference documentation.
"""
import os
import sys
import requests
from pathlib import Path
@danielrosehill
danielrosehill / variables-in-tts.md
Last active August 10, 2025 18:36
Using (dynamic) state variabless in TTS messsages in Home Assistant

Home Assistant Template Syntax for Entity States

Get the current temperature (as text)

The current temperature is {{ states('sensor.jerusalem_yshrl_usalem_temperature') }} °C

Get the current temperature (rounded to 1 decimal)

The current temperature is {{ states('sensor.jerusalem_yshrl_usalem_temperature') | float | round(1) }} °C

Get the on/off state of a light

The current state of the kitchen light is {{ states('light.kitchen') }}

We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 21 columns, instead of 16 in line 3.
name,full_name,description,language,topics,created_at,updated_at,pushed_at,size,stargazers_count,watchers_count,forks_count,open_issues_count,default_branch,html_url,clone_url,homepage,archived,disabled,fork,license
Apps-Index,danielrosehill/Apps-Index,Indexing repo for apps created,,,2025-08-10T12:00:02Z,2025-08-10T12:00:14Z,2025-08-10T12:00:11Z,0,0,0,0,0,main,https://github.com/danielrosehill/Apps-Index,https://github.com/danielrosehill/Apps-Index.git,,False,False,False,
Home-Assistant-Index,danielrosehill/Home-Assistant-Index,Indexing repo for HA projects,,,2025-08-10T11:59:46Z,2025-08-10T11:59:53Z,2025-08-10T11:59:50Z,0,0,0,0,0,main,https://github.com/danielrosehill/Home-Assistant-Index,https://github.com/danielrosehill/Home-Assistant-Index.git,,False,False,False,
Homebox-Projects-Index,danielrosehill/Homebox-Projects-Index,,,,2025-08-10T11:59:31Z,2025-08-10T11:59:38Z,2025-08-10T11:59:35Z,0,0,0,0,0,main,https://github.com/danielrosehill/Homebox-Projects-Index,https://github.com/danielrosehill/Homebox-Proj
@danielrosehill
danielrosehill / nuclino-new-notes-api-note.md
Last active July 30, 2025 06:40
Creating new notes in Nuclino with its API

Creating New Notes In Nuclino Via Its API

To map the vocabulary:

An "item" is a "note". A "collection" is also called a collection in the UI.

It's the top level organisation entity within a workspace.

Depending on your environment and how you organise permissions, you may have just one workspace with multiple collections or multiple of both.

This is how to use the Nuclino API at the time of writing to create new notes programmatically in the right places.

@danielrosehill
danielrosehill / n8n-nuclino-notes-.md
Created July 29, 2025 17:28
Creating Nuclino notes via N8N automations

Creating Notes In Nuclino Via N8N Automations

There is no Nuclino integration so this is done via a custom HTTP request node.

In this example I'll create a note that is a concatenated prompt and output (from AI):

image image
@danielrosehill
danielrosehill / ha-media-folder.md
Created July 28, 2025 20:17
Home Assistant Media Folder Path (HAOS)

Home Assistant Media Source URI — Behavior Observed on Home Assistant OS (as of July 28, 2025)

Working Mapping (No Extra Configuration)

On Home Assistant OS (stock install, no additional configuration):

media-source://media_source/local/test.mp3