rain_monitor/config.yaml
2025-07-12 17:41:49 +08:00

39 lines
878 B
YAML
Raw 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.

# 雨量监测系统配置文件
# 数据库配置
database:
host: 8.134.185.53
port: 3306
user: remote
password: root
dbname: rain_monitor
# Web服务器配置
web:
port: 10003
# TCP服务器配置
tcp:
port: 10004
# 原始ModBus设备定时查询配置
scheduler:
enabled: true
# 气象站查询间隔支持Go时间格式如: 15m, 30m, 1h
weather_station_interval: 15m
# 雨量计查询方式,固定为整点查询
# EM3395TY设备配置
em3395ty:
# 涂鸦开发者账号配置
client_id: nwmdye9c8ejymu9ge5kf
secret: 658733ea78624cd4b63bae6083cd3fae
base_url: https://openapi.tuyacn.com
# EM3395TY设备查询间隔可选值hourly(整点), 30min, 10min, 30sec, 10sec或自定义格式如 5m, 1h30m
query_interval: hourly
# 设备ID列表
devices:
- 6cbbf72843839b6157wfb2
# 可以添加更多设备ID