根据经纬度,天气等约束,计算天窗最佳角度,每年节能效率。
- 天窗模型由孙文斌和汪博文提供
- 天气模型来自和风天气
在resources
文件夹里面更改design.html
和result.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