2022-09-21 14:38:35 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
import os
|
|
|
|
import report
|
|
|
|
|
|
|
|
__BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
MQTT_USER = "user"
|
|
|
|
MQTT_PASS = "pass"
|
|
|
|
MQTT_SERVER = "host"
|
|
|
|
|
|
|
|
TOPIC = 'topic'
|
2022-09-22 09:32:43 +01:00
|
|
|
PAYLOAD_KEY = 'key' # Give a key or None to compare plain DATA
|
|
|
|
PAYLOAD_DATA = 'data' # Give data to compare or None if no comparison is needed
|
|
|
|
|
2022-09-21 15:57:45 +01:00
|
|
|
COMMAND = "aplay %s/ring.wav -D plughw:UACDemoV10,0" % __BASEPATH__
|
2022-09-21 14:38:35 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Logging
|
|
|
|
#
|
|
|
|
APP_NAME = "exec_command"
|
|
|
|
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
|
|
|
|
LOGLVL = 'DEBUG'
|
|
|
|
|
|
|
|
LOGHOST = 'cutelog'
|
|
|
|
LOGPORT = 19996
|
|
|
|
|
|
|
|
formatter = report.SHORT_FMT
|