Quellcode durchsuchen

config template to jinja2

master
Dirk Alders vor 9 Monaten
Ursprung
Commit
7d1f7de1c7
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4
    4
      config_example/config.j2

config_example/config.py → config_example/config.j2 Datei anzeigen

@@ -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_powerplug_topic>"
6
+MQTT_USER = "{{ smart_sat_powerplug_username }}"
7
+MQTT_PASS = "{{ smart_sat_powerplug_password }}"
8
+MQTT_SERVER = "{{ smart_sat_powerplug_hostname }}"
9
+MQTT_TOPIC = "{{ smart_sat_powerplug_topic }}"
10 10
 
11 11
 #
12 12
 # Logging

Laden…
Abbrechen
Speichern