{"id":21156888,"url":"https://github.com/lkiarest/mqtt-wechat","last_synced_at":"2025-06-22T16:34:09.519Z","repository":{"id":149611369,"uuid":"425174662","full_name":"lkiarest/mqtt-wechat","owner":"lkiarest","description":"监听 mqtt 消息并转发到企业微信","archived":false,"fork":false,"pushed_at":"2021-11-06T06:56:23.000Z","size":47,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T08:45:09.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lkiarest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-06T06:39:15.000Z","updated_at":"2023-04-14T08:55:18.000Z","dependencies_parsed_at":"2023-04-25T11:32:42.874Z","dependency_job_id":null,"html_url":"https://github.com/lkiarest/mqtt-wechat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Fmqtt-wechat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Fmqtt-wechat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Fmqtt-wechat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkiarest%2Fmqtt-wechat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lkiarest","download_url":"https://codeload.github.com/lkiarest/mqtt-wechat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243598483,"owners_count":20316967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T11:54:19.870Z","updated_at":"2025-03-14T15:23:49.543Z","avatar_url":"https://github.com/lkiarest.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mqtt-wechat\n\n监听并转发 mqtt 消息到企业微信，可用于 IoT 设备通知。\n\n### 准备工作\n\n1. 可用的 mqtt server，自建或蹭别人的\n2. 可用的企业微信应用（支持个人申请） [官方文档](https://work.weixin.qq.com/api/doc/90000/90003/90556)\n\n### 配置\n\n创建配置文件：\n\n```\ncp config/index.sample.js config/index.js\n```\n\n在 config/index.js 中配置 mqtt server 和企业微信。\n\n### 运行\n\n需要服务器 nodejs 环境。\n\n```\n// 安装依赖\nyarn\n\n// 运行 debug\nyarn start\n\n// 运行 server\nyarn server\n\n// 访问，端口号可以在 config 文件中配置，也可以在环境变量中增加: PORT=xxx\n// http://localhost:9999\n\n// 查看 mqtt 连接状态是否正常\n// http://localhost:9999/mqtt/status\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkiarest%2Fmqtt-wechat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flkiarest%2Fmqtt-wechat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkiarest%2Fmqtt-wechat/lists"}