123456789101112131415161718192021222324252627282930313233343536 |
- #!/usr/bin/env python
- # -*- coding: UTF-8 -*-
- import os
- import report
-
- __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"
- LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
- LOGLVL = 'WARNING'
-
- LOGHOST = 'cutelog'
- LOGPORT = 19996
-
- formatter = report.SHORT_FMT
|