32 řádky
628 B
Python
32 řádky
628 B
Python
#!/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_USER = "mqtt_username"
|
|
MQTT_PASS = "mqtt_password"
|
|
MQTT_SERVER = "mqtt_server"
|
|
MQTT_TOPIC = "mqtt_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 = 'DEBUG'
|
|
|
|
LOGHOST = 'cutelog'
|
|
LOGPORT = 19996
|
|
|
|
formatter = report.SHORT_FMT
|