add node 2 and 3 to arch diagram

This commit is contained in:
Travis Shears 2026-02-23 22:21:03 +01:00
parent 2525069deb
commit 20f86a2176
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
3 changed files with 60 additions and 24 deletions

View file

@ -1,13 +1,25 @@
import { renderMermaid } from "beautiful-mermaid";
const diagram = await renderMermaid(`
flowchart TD
subgraph Node1
bme280 -->|i2c| rp2040
pms5003 -->|uart| rp2040
end
rp2040 -->|Custom TCP| proxy[Event Proxy]
proxy -->|mqtt| ha[Home Assistant Servier]
flowchart TD
subgraph Node1
bme280 -->|i2c| mc1
pms5003 -->|uart| mc1
end
mc1[pico w] -->|Custom TCP| proxy[Event Proxy]
proxy -->|mqtt| ha[Home Assistant Servier]
mc2[pico w] --> |Custom TCP| proxy
subgraph Node2
wind_speed[Anemometer] --> mc2
wind_dir[Wind Vane] --> mc2
mic[MIPS Microphone] --> mc2
end
mc3[pico w] --> |Custom TCP| proxy
subgraph Node3
ltr-559 --> mc3
end
`);
console.log(diagram);