37 regels
705 B
Python

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import report
__BASEPATH__ = os.path.abspath(os.path.dirname(__file__))
MQTT_USER = "mqtt_username"
MQTT_PASS = "mqtt_password"
MQTT_SERVER = "mqtt_server"
MQTT_TOPIC = "mqtt_topic"
DAT_PATH_DHT = None # os.path.join(__BASEPATH__, 'dat', 'dht')
DAT_PATH_BMP = None # os.path.join(__BASEPATH__, 'dat', 'bmp')
try:
import board
except ImportError:
DHT_22_PORT = 4
USE_PULSE_IO = True
else:
# DHT-PORT
DHT_22_PORT = board.D4
#
# Logging
#
APP_NAME = "ambient_info"
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
LOGLVL = 'DEBUG'
LOGHOST = 'cutelog'
LOGPORT = 19996
formatter = report.SHORT_FMT