Git Product home page Git Product logo

indicator's Introduction

tjjt logo

Version License

Indicator

Indicator是一个由go编写,可以定时推送中签结果到微信的服务。

效果

O4lN3ijeJyUF1hH

功能

  • 支持直接推送中签结果到微信
  • 支持设置多个申请人信息
  • 支持自定义推送时间

使用

1、登录天津市小客车调控管理信息系统:http://xkctk.jtys.tj.gov.cn, 登录成功之后可以看到如下信息,复制图中蓝色框的申请编码以备后用。

QTVUpdFo8rqWMin

2、到Server酱 申请SendKey

eHE8zZylTUIaqwP

3、绑定消息通道(消息通道建议绑定企业微信,当然也可以选择其他的)

EmiuYAeXROj7cDJ

4、从release版本 中选择最新的下载

5、修改配置文件app.yaml

# server酱:https://sct.ftqq.com/
serverChan:
  secret: TTTTTTTCT1566KbEBnK00lM4cMpEdZ   # 密钥

# 指标申请人,可以填写多个
applicant:
  - name: 张三                                 # 申请人真实姓名
    nickname: zhangsan                        # 申请人昵称,推送到微信时会显示改昵称
    code: 1234102865678                       # 申请人申请编码
  - name: 王五
    nickname: wangwu
    code: 3256102247899

cron: '0 0 8 27,28,29 * *'                    # cron表达式,可以自定义时间

cron表达式可以设置一个最近的未来时间,用作调试,举个栗子:

'0 24 18 * * *' # 每天的18:24执行

6、上传indicator、app.yaml到服务器

GBZKUNdzxiQ2Vsn

chmod 773 indicator

nohup ./indicator &  

tail -f nohup.out

鸣谢

Go

GoLand

indicator's People

Contributors

telami avatar

Watchers

 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.