浏览代码

config template to jinja2

master
Dirk Alders 9 个月前
父节点
当前提交
14a17c9527
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      bt-audioparser/config_example/config.j2

bt-audioparser/config_example/config.py → bt-audioparser/config_example/config.j2 查看文件

@@ -3,10 +3,10 @@
3 3
 import os
4 4
 import report
5 5
 
6
-MQTT_USER = "<mqtt_smarthome_username>"
7
-MQTT_PASS = "<mqtt_smarthome_password>"
8
-MQTT_SERVER = "<mqtt_smarthome_hostname>"
9
-MQTT_TOPIC = "<mqtt_bt_audio_topic>"
6
+MQTT_USER = "{{ audio_bt_username }}"
7
+MQTT_PASS = "{{ audio_bt_password }}"
8
+MQTT_SERVER = "{{ audio_bt_hostname }}"
9
+MQTT_TOPIC = "{{ audio_bt_topic }}"
10 10
 
11 11
 #
12 12
 # Logging

正在加载...
取消
保存