Controls HiFi-Devices bia IR by MQTT-Commands
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

config.j2 717B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env python
  2. # -*- coding: UTF-8 -*-
  3. import os
  4. import report
  5. from remotes import yamaha_ras5 as amplifier
  6. from remotes import technics_eur642100 as cd_player
  7. __BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
  8. MQTT_SERVER = "{{ smart_sat_remotectrl_hostname }}"
  9. MQTT_USER = "{{ smart_sat_remotectrl_username }}"
  10. MQTT_PASS = "{{ smart_sat_remotectrl_password }}"
  11. MQTT_TOPIC = "{{ smart_sat_remotectrl_topic }}"
  12. SUPPORTED_REMOTES = {
  13. amplifier.NAME: amplifier.ALL,
  14. cd_player.NAME: cd_player.ALL
  15. }
  16. #
  17. # Logging
  18. #
  19. APP_NAME = "remote_control"
  20. LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
  21. LOGLVL = 'INFO'
  22. LOGHOST = 'cutelog'
  23. LOGPORT = 19996
  24. formatter = report.SHORT_FMT