From c9c9fe732995165c89f19438a49c6af718dba397 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Tue, 6 Sep 2022 20:53:54 +0200 Subject: [PATCH] :sparkles: Add Web UI for the BrotherQL label printer --- radon.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/radon.yml b/radon.yml index 9a5ee79..26a17dd 100644 --- a/radon.yml +++ b/radon.yml @@ -18,6 +18,9 @@ pwr_meter_pulse_gw_image: "netz39/power-meter-pulse-gateway:0.3.0" + brotherql_host_port: 9004 + brotherql_web_image: "pklaus/brother_ql_web:alpine_9e20b6d" + roles: - role: docker_setup vars: @@ -31,6 +34,7 @@ - name: nodered.n39.eu - name: rabbitmq.n39.eu - name: pwr-meter-pulse-gw-19i.svc.n39.eu + - name: brotherql-web.n39.eu - role: penguineer.dehydrated_cron @@ -164,6 +168,26 @@ proxy_port: 9003 + - name: Setup docker container for BrotherQL Web UI printer + docker_container: + name: brotherql-web + image: "{{ brotherql_web_image }}" + pull: true + restart_policy: unless-stopped + state: started + ports: + - "127.0.0.1:{{ brotherql_host_port }}:8013" + command: " ./brother_ql_web.py --model QL-720NW tcp://{{ brotherql_printer_ip }}" + detach: yes + + - name: Setup proxy site brotherql-web.n39.eu + include_role: + name: setup-http-site-proxy + vars: + site_name: brotherql-web.n39.eu + proxy_port: "{{ brotherql_host_port }}" + + handlers: - name: restart mosquitto docker_container: