From 14a17c95276a24fb08fe1da3b70e08a8ae2467d4 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Tue, 19 Mar 2024 16:44:21 +0100 Subject: [PATCH] config template to jinja2 --- bt-audioparser/config_example/{config.py => config.j2} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename bt-audioparser/config_example/{config.py => config.j2} (66%) diff --git a/bt-audioparser/config_example/config.py b/bt-audioparser/config_example/config.j2 similarity index 66% rename from bt-audioparser/config_example/config.py rename to bt-audioparser/config_example/config.j2 index fc71cb6..8c55d25 100644 --- a/bt-audioparser/config_example/config.py +++ b/bt-audioparser/config_example/config.j2 @@ -3,10 +3,10 @@ import os import report -MQTT_USER = "" -MQTT_PASS = "" -MQTT_SERVER = "" -MQTT_TOPIC = "" +MQTT_USER = "{{ audio_bt_username }}" +MQTT_PASS = "{{ audio_bt_password }}" +MQTT_SERVER = "{{ audio_bt_hostname }}" +MQTT_TOPIC = "{{ audio_bt_topic }}" # # Logging