Git Product home page Git Product logo

api-watcher's Introduction

API Watcher

安装

git clone [email protected]:RunnerLee/api-watcher.git

composer install

php artisan migrate

php artisan admin:install

php artisan db:seed

配置微信群名及微信机器人 web server

.env

VBOT_NOTICE_USER=大丑逼
VBOT_SERVER_IP=127.0.0.1
VBOT_SERVER_PORT=9001

配置 API 分组

增加 API

为 API 添加请求参数

为 API 分组增加计划任务

计划任务的条件, 通过 json 配置星期与小时.

{
  "week": [],       // 周一到周日
  "hour": {
    "between": {    // 执行的时间范围
      "from": "",
      "to": ""
    },
    "unless_between": {     // 不执行的时间范围
      "from": "",
      "to": ""
    }
  }
}

启动微信机器人

php vbot

以守护进程运行机器人, 需要手动拿到二维码链接然后扫码登录

nohup php vbot > /dev/null 2>&1 &
cat storage/vbot/url.txt

拿到链接 https://login.weixin.qq.com/l/4bNWM4e8Uw==, 替换为 https://login.weixin.qq.com/qrcode/4bNWM4e8Uw==

安装调度器

crontab -e

增加

* * * * * php /path/to/artisan schedule:run > /dev/null 2>&1 &

微信通知

api-watcher's People

Contributors

runnerlee avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.