application.yml 2.39 KB
spring:
  application:
    name: iot-scheduler
  main:
    banner-mode: off
  data:
    redis:
      cluster:
        nodes: # 集群节点列表
          - 10.9.1.252:16380
          - 10.9.1.252:16381
          - 10.9.1.252:16382
        max-redirects: 3  # 最大重定向次数
      password: "Qixiao@redis20240410.com"  # 如果有密码

server:
  port: 8080

logging:
  level:
    root: INFO
    com.iot.scheduler: DEBUG

# Scheduler Configuration (Cron Expressions)
# Format: sec min hour day month day-of-week
scheduler:
  huaining:
    pull: "0 0/5 * * * ?"   # Every 5 minutes
    push: "0 0/10 * * * ?"  # Every 10 minutes
  chizhou:
    pull: "0 0/5 * * * ?"
    push: "0 0/10 * * * ?"
  panji:
    pull: "0 0/5 * * * ?"
    push: "0 0/10 * * * ?"

hn:
  third:
    domain: "http://220.180.204.38:1803/report-property"
    jdbcUrl: "jdbc:postgresql://106.15.73.210:5433/thingskit"
    jdbcUserName: "postgres"
    jdbcPassword: "postgres"
    selectSql: "SELECT
                  de.sn,
                  tkl1.str_v,
                  tkl2.dbl_v
                FROM
                  device de
                  LEFT JOIN ts_kv_latest tkl1 ON de.id = tkl1.entity_id
                  AND tkl1.key = 61
                  LEFT JOIN ts_kv_latest tkl2 ON de.id = tkl2.entity_id
                  AND tkl2.key = 175
                  WHERE
                  de.organization_id = 'f82530a0-93e4-4aeb-9339-f5b6d1127840';"

sh:
  iot:
    organizeId: "f82530a0-93e4-4aeb-9339-f5b6d1127840"
    profileId: "f2292f60-f738-11f0-9cb8-e3376d1e7978"
    deviceProfileId: "f2292f60-f738-11f0-9cb8-e3376d1e7978"
    userName: "shzh"
    password: "123456"
    tokenUrl: "https://iot.hzzlyun.com/api/auth/login"
    infoUrl: "https://iot.hzzlyun.com/api/yt/device"
    detailUrl: "https://iot.hzzlyun.com/api/v1/"

sl:
  iot:
    organizeId: "752a7621-b59b-477c-b15e-e06d412e02d5"
    profileId: "f2292f60-f738-11f0-9cb8-e3376d1e7978"
    deviceProfileId: "f2292f60-f738-11f0-9cb8-e3376d1e7978"
    userName: "slzy"
    password: "123456"
    tokenUrl: "https://iot.hzzlyun.com/api/auth/login"
    infoUrl: "https://iot.hzzlyun.com/api/yt/device"
    detailUrl: "https://iot.hzzlyun.com/api/v1/"

device:
  token:
    url: "https://iotgc.cniot.vip/auth/token"
    userName: "chuzhoult"
    password: "111111"
  info:
    url: "https://iotgc.cniot.vip/triColorLamp/userGroupDtuSns"
  detail:
    url: "https://iotgc.cniot.vip/triColorLamp/dtuSnState"