#!/usr/bin/env python # -*- coding: UTF-8 -*- import logging import os __BASEPATH__ = os.path.abspath(os.path.dirname(__file__)) MQTT_SERVER = "{{ smart_sat_ambientinfo_hostname }}" MQTT_USER = "{{ smart_sat_ambientinfo_username }}" MQTT_PASS = "{{ smart_sat_ambientinfo_password }}" MQTT_TOPIC = "{{ smart_sat_ambientinfo_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" DEBUG = False LOG_HOSTNAME = "loggy" # When DEBUG is True LOG_LEVEL = logging.INFO # STDOUT logging