MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / calcWindDirection

Function calcWindDirection

weather/weather.ts:100–105  ·  view source on GitHub ↗
(deg: number)

Source from the content-addressed store, hash-verified

98 "南", "南西南", "西南", "西西南", "西", "西西北", "西北", "北西北"];
99 const ix = Math.round(deg / 22.5);
100 return dirs[ix % 16];
101}
102
103// 帮助文档
104const help_text = `🌤️ <b>天气查询插件</b>
105
106<b>📝 功能描述:</b>
107• 🌡️ <b>实时天气</b>:查询全球城市实时天气信息
108• 🌍 <b>自动识别</b>:自动识别中文城市名并转换

Callers 1

buildWeatherReportMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected