Skip to content

ruiange/weather-signature

Repository files navigation

weather-signature

简介

一个基于express的天气签名图生成服务,可以让你在网站上显示自己的IP,操作系统,浏览器,当地天气。可以让你在网站上远程调用天气签名图,比如在网站侧栏/弹窗提醒等等...

img标签直接调用
<img src="http://localhost:4000" alt="" width="428" height="250" />

演示效果

真是一场酣畅淋漓的查看天气之旅啊!༼·⍨༽༼·∵༽༼· ͒ ͓ ͒༽༼· ͒ ̶ ͒༽༼·⍢༽༼·⍤༽

接口形式返回imgUrl

<img src="http://localhost:4000?type=img" alt="" width="428" height="250" />
接口形式返回imgUrl

也可以通过接口方式返回JSON

//发起请求
axios.get('http://localhost:4000?type=json')

接口返回

{
  "imgUrl": "xxx.xxx.png"
}

技术栈

注意事项

部署

宝塔部署

其他

php版本

Releases

No releases published

Packages

No packages published