From 20f86a21768e249036dc388e703b29a051c3ac64 Mon Sep 17 00:00:00 2001 From: Travis Shears Date: Mon, 23 Feb 2026 22:21:03 +0100 Subject: [PATCH] add node 2 and 3 to arch diagram --- README.md | 6 ++++-- diagrams/arch.svg | 52 +++++++++++++++++++++++++++++++++-------------- diagrams/index.ts | 26 +++++++++++++++++------- 3 files changed, 60 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 00c8ab4..f26e6fb 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,10 @@ I have since switch to using C for better performance and control. ## Hardware +### Arch + +![arch](diagrams/arch.svg) + ### Node1 Sensors: @@ -37,8 +41,6 @@ Weatherproof Enclosure: [weatherproof-cover-for-outdoor-sensors](https://shop.pi _Note: I would not recommend buying from pimoroni from EU as shipping tax is huge!_ -![arch](diagrams/arch.svg) - ## Helpful links - [pico mqtt Example](https://github.com/raspberrypi/pico-examples/blob/master/pico_w/wifi/mqtt/README) diff --git a/diagrams/arch.svg b/diagrams/arch.svg index 927da42..f39c32d 100644 --- a/diagrams/arch.svg +++ b/diagrams/arch.svg @@ -1,4 +1,4 @@ - + diff --git a/diagrams/index.ts b/diagrams/index.ts index eb68de5..48a3b3a 100644 --- a/diagrams/index.ts +++ b/diagrams/index.ts @@ -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);