leyk/config_example/config.py

26 lines
546 B
Python

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import geo
import os
import report
MQTT_USER = "<mqtt_smarthome_username>"
MQTT_PASS = "<mqtt_smarthome_password>"
MQTT_SERVER = "<mqtt_smarthome_hostname>"
MQTT_TOPIC = "<mqtt_leyk_topic>"
GEO_POSITION = geo.gps.coordinate(lat=49.519167, lon=9.3672222)
#
# Logging
#
__BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
APP_NAME = "leyk"
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
LOGLVL = 'DEBUG'
LOGHOST = 'cutelog'
LOGPORT = 19996
formatter = report.SHORT_FMT