From fde7af78cd16b95e9de1a6d7acb28f2cae4cb7f9 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Sat, 27 Aug 2022 13:30:30 +0200 Subject: [PATCH] Add power meter pulse gateway for 19i room to Radon setup --- radon.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/radon.yml b/radon.yml index c559993..9c12021 100644 --- a/radon.yml +++ b/radon.yml @@ -16,6 +16,8 @@ rabbitmq_image: "bitnami/rabbitmq:3.10.7" rabbitmq_data: "{{ data_dir }}/rabbitmq" + pwr_meter_pulse_gw_image: "netz39/power-meter-pulse-gateway:0.2.0" + roles: - role: docker_setup vars: @@ -109,6 +111,24 @@ - "{{ rabbitmq_data }}/etc_rabbitmq:/etc/rabbitmq:rw" + - name: Ensure Power Meter Pulse Gateway for 19i room is running + docker_container: + name: pwr-meter-pulse-gw-19i + image: "{{ pwr_meter_pulse_gw_image }}" + ports: +# - 127.0.0.1:9003:8080 + - 9003:8080 + env: + AMQP_HOST: "rabbitmq.n39.eu" + AMQP_USER: "{{ pwr_meter_amqp_user }}" + AMQP_PASS: "{{ pwr_meter_amqp_pass }}" + AMQP_VHOST: "/iot" + PULSE_BINDING: "pwr-meter-pulse-19i" + API_TOKEN: "{{ pwr_meter_api_token }}" + + # TODO HTTPS ingress, when #727 is resolved + + handlers: - name: restart mosquitto docker_container: