leyk/config_example/config.py

26 lines
546 B
Python
Raw Normal View History

2022-08-29 19:56:39 +02:00
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
2022-09-13 07:40:55 +02:00
import geo
2022-08-29 19:56:39 +02:00
import os
import report
2023-11-03 14:47:39 +01:00
MQTT_USER = "<mqtt_smarthome_username>"
MQTT_PASS = "<mqtt_smarthome_password>"
MQTT_SERVER = "<mqtt_smarthome_hostname>"
MQTT_TOPIC = "<mqtt_leyk_topic>"
2022-08-29 19:56:39 +02:00
2022-09-13 07:40:55 +02:00
GEO_POSITION = geo.gps.coordinate(lat=49.519167, lon=9.3672222)
2022-08-29 19:56:39 +02:00
#
# 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