32 行
717 B
Django/Jinja

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import report
from remotes import yamaha_ras5 as amplifier
from remotes import technics_eur642100 as cd_player
__BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
MQTT_SERVER = "{{ smart_sat_remotectrl_hostname }}"
MQTT_USER = "{{ smart_sat_remotectrl_username }}"
MQTT_PASS = "{{ smart_sat_remotectrl_password }}"
MQTT_TOPIC = "{{ smart_sat_remotectrl_topic }}"
SUPPORTED_REMOTES = {
amplifier.NAME: amplifier.ALL,
cd_player.NAME: cd_player.ALL
}
#
# Logging
#
APP_NAME = "remote_control"
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
LOGLVL = 'INFO'
LOGHOST = 'cutelog'
LOGPORT = 19996
formatter = report.SHORT_FMT