add diagram via beautiful-mermaid
This commit is contained in:
parent
c94f8df1cc
commit
603d42ad3f
8 changed files with 289 additions and 0 deletions
13
diagrams/index.ts
Normal file
13
diagrams/index.ts
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue