All Projects → cloverzrg → wechat-work-message-push-go

cloverzrg / wechat-work-message-push-go

Licence: other
企业微信消息推送,支持grafana webhook通知

Programming Languages

go
31211 projects - #10 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to wechat-work-message-push-go

nestjs-wechat-work
企业微信 NestJS 工具包,目前主要包括企业微信 API 的 Service 封装、登录校验守卫(JWT实现)、扫码登录支持等功能。
Stars: ✭ 18 (-35.71%)
Mutual labels:  wechat-work

wechat-work-message-push-go

Build Status

使用:

1.创建企业号(200人以下不需要认证),获取 WechatWorkCorpId https://work.weixin.qq.com/

2.创建自建应用,获取 WechatWorkAgentIdWechatWorkCorpSecret

3.到通讯录查看自己的账号,获取 DefaultReceiverUserId

3.复制 docker-compose.yaml 到本地,编辑文件,补充以上环境变量和随机字符串token,然后执行

docker-compose up -d

4.到 企业微信->我的企业->微信插件,扫二维码关注企业微信 https://work.weixin.qq.com/wework_admin/frame#profile/wxPlugin

5.发送以下请求

curl -X POST \
  http://127.0.0.1:60009/push \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'token: your_token' \
  -d 'message=1234'

6.刚才在微信上的关注的微工作台应收到第五步发送的消息

7.grafana 报警通知功能 设置GrafanaWebhookUser和GrafanaWebhookPassword两个环境变量就可以用了

  1. 代替Telegram的通知连接
    比如nezha面板的通知,可以设置为 GET https://xx/push/push?token=xxx&message=#NEZHA#

开发

使用 drone ^1.0 构建镜像

https://drone.io/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].