Skip to content
Snippets Groups Projects
Commit 9105c92f authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Initial Version

parents
Branches
Tags
No related merge requests found
/icons/*.png
/*.svg
/*.png
Makefile 0 → 100644
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
IMAGE_DEPS=$(shell cat network.dot | sed 's/src="/\nsrc="/' | grep '^src="' | sed -E 's/src="([^"]*)".*/\1/')
.PHONY: all
all: network.png
.PHONY: clean
clean:
rm network.png
rm network.svg
rm icons/*.png
%.png: %.svg
inkscape "$<" -C --export-type=png --export-dpi=1024 -o "$@"
network.png: network.svg
inkscape "$<" -D --export-type=png --export-dpi=192 -o "$@"
network.svg: network.dot $(IMAGE_DEPS)
dot -Tsvg "$<" "-o$@"
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M4,6H20V16H4M20,18A2,2 0 0,0 22,16V6C22,4.89 21.1,4 20,4H4C2.89,4 2,4.89 2,6V16A2,2 0 0,0 4,18H0V20H24V18H20Z" /></svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z" fill="#000000" /></svg>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M13,19H14A1,1 0 0,1 15,20H22V22H15A1,1 0 0,1 14,23H10A1,1 0 0,1 9,22H2V20H9A1,1 0 0,1 10,19H11V17H4A1,1 0 0,1 3,16V12A1,1 0 0,1 4,11H20A1,1 0 0,1 21,12V16A1,1 0 0,1 20,17H13V19M4,3H20A1,1 0 0,1 21,4V8A1,1 0 0,1 20,9H4A1,1 0 0,1 3,8V4A1,1 0 0,1 4,3M9,7H10V5H9V7M9,15H10V13H9V15M5,5V7H7V5H5M5,13V15H7V13H5Z" /></svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M12,12A3,3 0 0,0 9,15A3,3 0 0,0 12,18A3,3 0 0,0 15,15A3,3 0 0,0 12,12M12,20A5,5 0 0,1 7,15A5,5 0 0,1 12,10A5,5 0 0,1 17,15A5,5 0 0,1 12,20M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8C10.89,8 10,7.1 10,6C10,4.89 10.89,4 12,4M17,2H7C5.89,2 5,2.89 5,4V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V4C19,2.89 18.1,2 17,2Z" /></svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M21,17H3V5H21M21,3H3A2,2 0 0,0 1,5V17A2,2 0 0,0 3,19H8V21H16V19H21A2,2 0 0,0 23,17V5A2,2 0 0,0 21,3Z" /></svg>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M12,21L15.6,16.2C14.6,15.45 13.35,15 12,15C10.65,15 9.4,15.45 8.4,16.2L12,21M12,3C7.95,3 4.21,4.34 1.2,6.6L3,9C5.5,7.12 8.62,6 12,6C15.38,6 18.5,7.12 21,9L22.8,6.6C19.79,4.34 16.05,3 12,3M12,9C9.3,9 6.81,9.89 4.8,11.4L6.6,13.8C8.1,12.67 9.97,12 12,12C14.03,12 15.9,12.67 17.4,13.8L19.2,11.4C17.19,9.89 14.7,9 12,9Z" /></svg>
\ No newline at end of file
digraph network {
dpi=1024
graph [splines=ortho fontname="Noto Sans"]
node [shape=box imagepos="ml" labeljust="r" fontcolor="#333333" fontname="Noto Sans" style="filled" color="#ffffff"]
edge [penwidth="1.5" color="#689F38"]
rankdir=LR
labelloc="t";
label="Network Setup";
router -> {switch_livingroom, switch_bedroom, desktop_janne, printer}
switch_livingroom -> { nas, androidtv, ap_livingroom }
switch_livingroom -> avreceiver [color="#FBC02D"]
switch_bedroom -> { desktop_hannah, ap_bedroom }
subgraph cluster_livingroom {
label="Living Room";
color="#dddddd";
style=filled;
switch_livingroom[label=<<table cellspacing="0" border="0" cellborder="0"><tr>
<td><img src="icons/server.png" /></td>
<td><b>TP-Link</b>&nbsp;TL-SG1008P</td>
</tr></table>>]
ap_livingroom[label=<<table cellspacing="0" border="0" cellborder="0"><tr>
<td><img src="icons/wifi.png" /></td>
<td><b>Unifi</b>&nbsp;UAP-AC-Lite</td>
</tr></table>>]
androidtv[label=<<table cellspacing="0" border="0" cellborder="0"><tr>
<td><img src="icons/television.png" /></td>
<td><b>Nvidia</b>&nbsp;Shield TV</td>
</tr></table>>]
avreceiver[label=<<table cellspacing="0" border="0" cellborder="0"><tr>
<td><img src="icons/speaker.png" /></td>
<td><b>Pioneer</b>&nbsp;VSX-LX303</td>
</tr></table>>]
nas[label="Raspberry Pi 4 8GB"]
}
subgraph cluster_office {
label="Office";
color="#dddddd";
style=filled;
router[label=<<table cellspacing="0" border="0" cellborder="0"><tr>
<td><img src="icons/server.png" /></td>
<td><b>AVM</b>&nbsp;Fritz!Box 7530 AX</td>
</tr></table>>]
desktop_janne[label=<<table cellspacing="0" border="0" cellborder="0"><tr>
<td><img src="icons/laptop.png" /></td>
<td>Computer Janne</td>
</tr></table>>]
printer[label=<<table cellspacing="0" border="0" cellborder="0"><tr>
<td><img src="icons/printer.png" /></td>
<td><b>Brother</b>&nbsp;DCP L3550cdw</td>
</tr></table>>]
}
subgraph cluster_bedroom {
label="Bedroom";
color="#dddddd";
style=filled;
desktop_hannah[label=<<table cellspacing="0" border="0" cellborder="0"><tr>
<td><img src="icons/laptop.png" /></td>
<td>Computer Hannah</td>
</tr></table>>]
ap_bedroom[label=<<table cellspacing="0" border="0" cellborder="0"><tr>
<td><img src="icons/wifi.png" /></td>
<td><b>Unifi</b>&nbsp;UAP-AC-Lite</td>
</tr></table>>]
switch_bedroom[label=<<table cellspacing="0" border="0" cellborder="0"><tr>
<td><img src="icons/server.png" /></td>
<td><b>TP-Link</b>&nbsp;TL-SG1005D</td>
</tr></table>>]
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment