Browse Source

structure changed and example config files renamed to allow update with git pull without overwriting config

FloKra 6 months ago
parent
commit
fc4e79ce7e

+ 0 - 0
src/cul2mqtt.py → cul2mqtt.py


+ 0 - 0
src/cul2mqtt.service → cul2mqtt.service


+ 0 - 0
src/cul2mqtt_devices.yml → cul2mqtt_devices_example.yml


+ 0 - 0
src/cul2mqtt_disable_service.sh → cul2mqtt_disable_service.sh


+ 0 - 0
src/cul2mqtt_enable_service.sh → cul2mqtt_enable_service.sh


+ 40 - 40
src/cul2mqtt.ini → cul2mqtt_example.ini

@@ -1,40 +1,40 @@
-[main]
-devices_config_yml = cul2mqtt_devices.yml
-log_path = /home/pi/logs/cul2mqtt
-log_enable = true
-filterSelfSentIncomingTimeout = 100
-
-# UART or MQTT
-TX_interface_prefer = MQTT
-
-# also used as min repeat time, in ms
-lastReceivedMaxAge = 500
-
-lastSentMinInterval = 1500
-
-[cul]
-serialPort = /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
-serialBaudrate = 38400
-serialTimeout = 1
-serialCulInitTimeout = 3
-forceSerialCULConnected = False
-receive_from_serial_cul = True
-send_on_serial_cul = True
-culInitCmd = X05
-culSendsRSSI = False
-receive_from_mqtt_cul = True
-send_on_mqtt_cul = True
-
-# for "classic" MQTT-CUL
-#mqtt_cul_topic_received = MQTTCUL/received
-#mqtt_cul_topic_send = MQTTCUL/send
-
-# for Tasmota based MQTT-CUL using Tasmota´s serial bridge functions
-mqtt_cul_topic_received = tele/Tasmota-MQTT-CUL/RESULT
-mqtt_cul_topic_send = cmnd/Tasmota-MQTT-CUL/SerialSend
-
-[mqtt]
-server = mqtt.lan
-port = 1883
-user = mqttuser
-password = xxxxxx
+[main]
+devices_config_yml = cul2mqtt_devices.yml
+log_path = /home/pi/logs/cul2mqtt
+log_enable = true
+filterSelfSentIncomingTimeout = 100
+
+# UART or MQTT
+TX_interface_prefer = MQTT
+
+# also used as min repeat time, in ms
+lastReceivedMaxAge = 500
+
+lastSentMinInterval = 1500
+
+[cul]
+serialPort = /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
+serialBaudrate = 38400
+serialTimeout = 1
+serialCulInitTimeout = 3
+forceSerialCULConnected = False
+receive_from_serial_cul = True
+send_on_serial_cul = True
+culInitCmd = X05
+culSendsRSSI = False
+receive_from_mqtt_cul = True
+send_on_mqtt_cul = True
+
+# for "classic" MQTT-CUL
+#mqtt_cul_topic_received = MQTTCUL/received
+#mqtt_cul_topic_send = MQTTCUL/send
+
+# for Tasmota based MQTT-CUL using Tasmota´s serial bridge functions
+mqtt_cul_topic_received = tele/Tasmota-MQTT-CUL/RESULT
+mqtt_cul_topic_send = cmnd/Tasmota-MQTT-CUL/SerialSend
+
+[mqtt]
+server = mqtt.lan
+port = 1883
+user = mqttuser
+password = xxxxxx

+ 0 - 0
src/cul2mqtt_install_service.sh → cul2mqtt_install_service.sh


+ 0 - 0
src/cul2mqtt_start_service.sh → cul2mqtt_start_service.sh


+ 0 - 0
src/cul2mqtt_stop_service.sh → cul2mqtt_stop_service.sh


+ 0 - 0
src/cul_seriallog.py → cul_seriallog.py