Simple_home_control_system/config.py
2024-09-07 20:46:39 +08:00

36 lines
1017 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class Config:
# 程序信息
VERSION = "1.0.1"
DESCRIPTION = "简易智能家居系统程序"
CHANGELOG = """v1.0.0: 初始版本; v1.0.1: 部署测试版添加mqtt控制灯优化一些参数"""
# mqtt 服务端配置
UNAME = 'admin'
PASSWORD = 'admin'
BROKER = '10.168.1.103'
PORT = 1883
TOPIC = "/python/mqtt"
MQTT_CLIENT_ID = 'python_mqtt_001'
# 串口相关
VOICE_OPEN_SERIAL = '/dev/vice_usb0'
CONTROL_OPEN_SERIAL = '/dev/control_usb1'
# 上传话题
HUMITURE_UP = '/python/mqtt/humiture'
EQUIPMENT_TEMPERATURE_UP = '/python/mqtt/equipment_temperature'
LOCAL_STATUS_UP = '/python/mqtt/local_status'
# 发布/订阅话题
VOICE_CMD_SUB = '/python/mqtt/voice_cmd'
ACTION_socket = 'dc4f224c4ebe'
ACTION_water_heater = '08f9e07db383'
ACTION_wen_xiang = '5ccf7fd6178a'
ACTION_light = '840d8e9989dc'
ACTION_kongtiao = 'kongtiao'
# 程序变量
RUN_FLAG = 1
LIGHT_STATUS = ''
LIGHT_COLOR = 0