|
@@ -114,7 +114,8 @@ async function tryCheckWeather() {
|
|
|
text += `${now.text}\n`;
|
|
text += `${now.text}\n`;
|
|
|
text += `过去1小时降水量:${now.precip}毫米\n`;
|
|
text += `过去1小时降水量:${now.precip}毫米\n`;
|
|
|
text += `温度:${now.temp}℃\n`;
|
|
text += `温度:${now.temp}℃\n`;
|
|
|
- text += `风速:${now.windSpeed}(${now.windScale}级),风向:${now.windDir}(${now.wind360})°\n`;
|
|
|
|
|
|
|
+ text += `风速:${now.windSpeed}公里/小时(${now.windScale}级)`;
|
|
|
|
|
+ text += `风向:${now.windDir}(${now.wind360}°)\n`;
|
|
|
text += `相对湿度:${now.humidity}%\n`;
|
|
text += `相对湿度:${now.humidity}%\n`;
|
|
|
text += `能见度:${now.vis}公里\n`;
|
|
text += `能见度:${now.vis}公里\n`;
|
|
|
text += `气压:${now.pressure}百帕\n`;
|
|
text += `气压:${now.pressure}百帕\n`;
|
|
@@ -159,7 +160,7 @@ async function tryCheckWeather() {
|
|
|
if (warningList && warningList.length > 0) {
|
|
if (warningList && warningList.length > 0) {
|
|
|
for (let i = 0; i < warningList.length; i++) {
|
|
for (let i = 0; i < warningList.length; i++) {
|
|
|
let warning = warningList[i];
|
|
let warning = warningList[i];
|
|
|
- text += `${getSeverityText(warning.severity, warning.severityColor)}预警-${warning.typeName}:$\n`;
|
|
|
|
|
|
|
+ text += `${getSeverityText(warning.severity, warning.severityColor)}预警-${warning.typeName}:\n`;
|
|
|
text += `${warning.text}\n`;
|
|
text += `${warning.text}\n`;
|
|
|
}
|
|
}
|
|
|
isWxNotify = true;
|
|
isWxNotify = true;
|