23 lines
479 B
Python

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import report
MQTT_USER = "<mqtt_smarthome_username>"
MQTT_PASS = "<mqtt_smarthome_password>"
MQTT_SERVER = "<mqtt_smarthome_hostname>"
MQTT_TOPIC = "<mqtt_powerplug_topic>"
#
# Logging
#
__BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
APP_NAME = "powerplug"
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
LOGLVL = 'INFO'
LOGHOST = 'cutelog'
LOGPORT = 19996
formatter = report.SHORT_FMT