Przeglądaj źródła

use flaschentaschen

cc 4 lat temu
rodzic
commit
8e2f8517e6
3 zmienionych plików z 77 dodań i 12 usunięć
  1. 18 0
      flaschentaschen/Dockerfile
  2. 2 2
      hosts.yml
  3. 57 10
      services.yml

+ 18 - 0
flaschentaschen/Dockerfile

@@ -0,0 +1,18 @@
+FROM balenalib/raspberry-pi-alpine
+
+RUN apk add --update g++ make git \
+    && cd /root \
+    && git clone https://github.com/hzeller/flaschen-taschen.git --recursive \
+    && cd /root/flaschen-taschen/server \
+    && make HARDWARE_DESC=regular FT_BACKEND=rgb-matrix all
+
+RUN cd /root \
+    && git clone --recursive https://github.com/cgorringe/ft-demos \
+    && cd ft-demos \
+    && make all
+ENV FT_DISPLAY=localhost
+
+EXPOSE 1337:1337/udp
+RUN ln /root/flaschen-taschen/server/ft-server /server
+
+#~ CMD ["/server", "--led-pixel-mapper=Rotate:180", "--led-rows=64", "--led-cols=192"]

+ 2 - 2
hosts.yml

@@ -22,8 +22,8 @@ all:
       #~ docker_engine_host: localhost
       #~ docker_engine_port: 10243
       ansible_ssh_host: himbeere.fritz.box
-    #blaubeere:
-    #  ansible_ssh_host: blaubeere.fritz.box
+    blaubeere:
+      ansible_ssh_host: 192.168.178.144
     erdbeere:
       ansible_ssh_host: 192.168.178.29
     waldbeere:

+ 57 - 10
services.yml

@@ -178,6 +178,44 @@ alexa: # https://alexa.amazon.de
     env:
       DOMO_ALEXA_PW: ibm92buVQ12nhipkP4fg
 
+matrix-zmq:
+  host: waldbeere
+
+  docker:
+    init: true
+    build: matrix-zmq
+    # matrix driver needs access to /dev/mem
+    privileged: true
+    ports: 1337:1337
+    # --led-slowdown-gpio=2 --led-pwm-lsb-nanoseconds=50
+    command: '--led-pixel-mapper=Rotate:180 --led-pwm-dither-bits=2 --led-pwm-lsb-nanoseconds=100 --led-gpio-mapping=adafruit-hat-pwm --led-show-refresh --led-brightness=80 --led-cols=192 --led-rows=32 --zmq-endpoint=tcp://*:1337'
+
+matrix-ft:
+  host: blaubeere
+  docker:
+    init: true
+    build: flaschentaschen
+    # matrix driver needs access to /dev/mem
+    privileged: true
+    ports: 1337:1337/udp
+    # --led-slowdown-gpio=2 --led-pwm-lsb-nanoseconds=50
+    command: '/server --led-pixel-mapper=Rotate:180 --led-rows=64 --led-cols=192'
+    commands:
+      d_life: /root/ft-demos/life -g 192x64 -d 50
+      d_matrix: /root/ft-demos/matrix -g 192x64
+      d_quilt: /root/ft-demos/quilt -g 192x64
+      d_fractal: /root/ft-demos/fractal -g 192x64
+      d_hack: /root/ft-demos/hack -g 192x64
+      d_midi: /root/ft-demos/midi -g 192x64
+      d_maze: /root/ft-demos/maze -g 192x64
+      d_plasma: /root/ft-demos/plasma -g 192x64
+      d_lines: /root/ft-demos/lines -g 192x64 -a one
+      d_boxes: /root/ft-demos/blur -g 192x64 boxes
+      d_bolt: /root/ft-demos/blur -g 192x64 bolt
+      d_sierpinski: /root/ft-demos/sierpinski -g 192x64
+
+
+
 matrix: # interface with RGB LED-Matrix
   host: waldbeere
   docker:
@@ -235,26 +273,29 @@ matrix2: # zerow: interface with RGB LED-Matrix
     # ports: 10000:10000/udp, 10001:10001/udp
     volumes:
       - /opt/pixel:/pixel
+    env:
+      LED_ROWS: 64
+      LED_COLS: 192
 
   commands:
     # some rotating square
-    demo00: examples-api-use/demo -c 6 --led-rows=64 --led-show-refresh -D0
+    demo00: examples-api-use/demo --led-rows=64 --led-cols=192 --led-pixel-mapper=U-mapper;Rotate:180 --led-show-refresh -D 0
     # forward scrolling an image
-    demo01: examples-api-use/demo -c 6 --led-rows=64 --led-show-refresh -D1 examples-api-use/runtext.ppm
+    demo01: examples-api-use/demo --led-rows=64 --led-cols=192 --led-pixel-mapper=U-mapper;Rotate:180 --led-show-refresh -D 1 examples-api-use/runtext.ppm
     # test image
-    demo03: examples-api-use/demo -c 6 --led-rows=64 -D3
+    demo03: examples-api-use/demo --led-rows=64 --led-cols=192 -D 3
     # Abelian sandpile model (-m <time-step-ms>)
-    demo06: examples-api-use/demo -c 6 --led-rows=64 -D6
+    demo06: examples-api-use/demo -c 6 --led-rows=64 -D 6
     # Conway's game of life (-m <time-step-ms>)
-    demo07: /bin/bash -c "while true; do examples-api-use/demo -c 6 --led-rows=64 --led-show-refresh -b 20 -D7 -t 60; done"
+    demo07: /bin/bash -c "while true; do examples-api-use/demo --led-rows=64 --led-cols=192 --led-show-refresh -D 7 -m 20; done"
     # Langton's ant (-m <time-step-ms>)
-    demo08: examples-api-use/demo -c 6 --led-rows=64 -m 1  --led-show-refresh -D8
+    demo08: examples-api-use/demo -c 6 --led-rows=64 -m 1  --led-show-refresh -D 8
     # Volume bars
-    demo09: examples-api-use/demo -c 6 --led-rows=64 -D9
+    demo09: examples-api-use/demo -c 6 --led-rows=64 -D 9
     # Evolution of color
-    demo10: examples-api-use/demo -c 6 --led-rows=64 -D10
+    demo10: examples-api-use/demo -c 6 --led-rows=64 -D 10
     # Brightness pulse generator
-    demo11: examples-api-use/demo -c 6 --led-rows=64 --led-pwm-bits=11 -D11
+    demo11: examples-api-use/demo --led-rows=64 --led-cols=192 --led-pwm-bits=11 -D 11
     # python sample: rotatatin block
     pydemo1: bindings/python/samples/rotating-block-generator.py -c 6 --led-rows=64 --led-show-refresh
     # python sample: like demo01
@@ -273,4 +314,10 @@ vaping:
     ports: 6080:7021
     log_config: {type: none}
 
-
+streamripper:
+  host: stachelbeere
+  docker:
+    build: streamripper
+    volumes:
+      - /opt/streamripper:/home/streamripper
+    command: 'https://somafm.com/defcon256.pls -s -m 30 --xs2 -o never -T'