add diagram via beautiful-mermaid

This commit is contained in:
Travis Shears 2026-02-22 17:29:32 +01:00
parent c94f8df1cc
commit 603d42ad3f
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
8 changed files with 289 additions and 0 deletions

13
diagrams/index.ts Normal file
View file

@ -0,0 +1,13 @@
import { renderMermaidAscii } from "beautiful-mermaid";
const ascii = renderMermaidAscii(`
flowchart TD
subgraph Node1
bme280 -->|i2c| rp2040
pms5003 -->|uart| rp2040
end
rp2040 -->|Custom TCP| proxy[Event Proxy]
proxy -->|mqtt| ha[Home Assistant Servier]
`);
console.log(ascii);