Skip to content

qxdn/sunbest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

节能减排模型

根据经纬度,天气等约束,计算天窗最佳角度,每年节能效率。

模型来源

  • 天窗模型由孙文斌和汪博文提供
  • 天气模型来自和风天气

构建之前

resources文件夹里面更改design.htmlresult.html里面的你的密匙替换成百度key地图申请到的apikey

 <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=你的密钥"></script>

resources文件夹里面更改application.yml替换数据库

spring:
  datasource:
    url: url
    username: username
    password: password
    driver-class-name: com.mysql.cj.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource

resources文件夹里面更改mqtt.properties替换mqtt服务器

#mqtt
mqtt.username=javaserver
mqtt.password=123456

#mqtt client
mqtt.clientId=weatherServer


mqtt.subTopic[0]=getSunMsg
mqtt.pubTopic[0]=sunMsg

#mqtt tcp
mqtt.tcpHost=your host

resources文件夹里面更改weather.properties替换和风天气的apikey

#预设纬度
weather.lat=30.58
#预设经度
weather.lon=114.27
#免费api
weather.freeUrl=https://free-api.heweather.net/s6
#付费api
weather.apiUrl=https://api.heweather.net/s6
#付费key
weather.apiKey=your key
#免费key
weather.freeKey=your key

使用说明

使用说明

About

节能减排天窗设计和天气获取

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •