diff --git a/3d-print/frame-with-raspi.stl b/3d-print/frame-with-raspi.stl index e9e7468..83e0f67 100644 Binary files a/3d-print/frame-with-raspi.stl and b/3d-print/frame-with-raspi.stl differ diff --git a/3d-print/frame-without-raspi.stl b/3d-print/frame-without-raspi.stl index e9e7468..c740910 100644 Binary files a/3d-print/frame-without-raspi.stl and b/3d-print/frame-without-raspi.stl differ diff --git a/3d-print/led-matrix-mount.FCStd b/3d-print/led-matrix-mount.FCStd deleted file mode 100644 index 46a954c..0000000 Binary files a/3d-print/led-matrix-mount.FCStd and /dev/null differ diff --git a/3d-print/matrix-mount-FCStd b/3d-print/matrix-mount-FCStd new file mode 100644 index 0000000..3ef6c1c Binary files /dev/null and b/3d-print/matrix-mount-FCStd differ diff --git a/README.md b/README.md index 32dfcaf..2c4be01 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,13 @@ # Benutzung - als **root** ausführen -- gunicorn -w 1 -k gthread main:app +- gunicorn -b 0.0.0.0 -w 1 -k gthread main:app + +# Beim Booten starten + +- Kopiere die systemd/matrix.service nach /etc/systemd/service/ +- systemctl daemon-reload +- systemctl enable --now matrix # Dateien @@ -38,13 +44,15 @@ Für deutsche Ausgabe (z.B. den Monatsnamen): # Szenen -curl "http://localhost:8000/start/color?red=255&green=255&blue=255" -curl http://localhost:8000/start/bitcoin -curl http://localhost:8000/start/clock -curl http://localhost:8000/start/colorclock -curl http://localhost:8000/start/helloworld -curl http://localhost:8000/stop -curl http://localhost:8000/reset +- curl "http://localhost:8000/start/color?red=255&green=255&blue=255" +- curl http://localhost:8000/start/bitcoin +- curl http://localhost:8000/start/clock +- curl http://localhost:8000/start/colorclock +- curl http://localhost:8000/start/helloworld +- curl http://localhost:8000/start/scroll +- curl http://localhost:8000/start/piamedia +- curl http://localhost:8000/stop +- curl http://localhost:8000/reset # Entwicklung ohne Matrix-Display diff --git a/matrix.service b/matrix.service new file mode 100644 index 0000000..219774e --- /dev/null +++ b/matrix.service @@ -0,0 +1,15 @@ +[Unit] +Description=Matrix Flask Application +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/matrix +ExecStart=/usr/bin/gunicorn -b 0.0.0.0 -w 1 -k gthread main:app +Restart=always +RestartSec=5s +User=root +Group=root + +[Install] +WantedBy=multi-user.target