Git Product home page Git Product logo

are-u-ok's Introduction

Are u ok

东北大学学生防控信息统计系统自动化打卡脚本 leo 1234567

目录

使用须知

一切风险与后果由使用者自己承担,与作者无关。

功能

  1. 只需要账号和密码
  2. 定时每天的北京时间8点、13点、20点打卡并上报体温
  3. 支持打卡/上报体温后邮件通知(非SSL)

手动打卡步骤

系统要求: 已安装python

第一次使用流程:

  1. 下载本项目 git clone https://github.com/unbyte/are-u-ok
  2. 进入项目目录cd are-u-ok
  3. 安装依赖pip install -r requirements.txt
  4. 执行python ./main.py 学号 密码

之后日常打卡只需要执行python ./main.py 学号 密码

自动打卡步骤

  1. Fork本项目

  2. 前往Fork后的项目的Settings页面

  3. 侧边栏点击Secrets

  4. 通过add a new secret添加自己的如下信息(冒号前面的是需要添加的secret的Name,后面是对应的Value的含义)

    • USER: 学号
    • PASS: 密码
    • IP: ip地址,可以不设置

    如果需要邮件通知,需要再设定以下secret:

    • MAIL_HOST: SMTP服务器地址,带上端口,如smtp.ym.163.com:25 不支持SSL
    • MAIL_USER: SMTP登陆用的用户名
    • MAIL_PASS: SMTP登陆用的密码
    • MAIL_RECEIVER:接收通知邮件的邮箱地址

    全部设置好之后应该是这样的:

  5. 进入Fork后的项目的Actions页面,如果有 I understand my workflows, go ahead and run them按钮,请点击确认

  6. 为了激活自动签到,还需要提交一次commit,流程如下:

    1. 点击README.md的编辑按钮

    2. 对内容随意做修改,只要有改动就行

    3. 点击编辑框下方的绿色按钮提交改动,就可以激活自动签到任务。

  7. 完成,以防万一还是需要关注邮件或导员通知

更新步骤

手动打卡

直接删除已下载脚本并重复手动打卡步骤即可

自动打卡

  • 重新Fork版

    1. 删除Fork后的项目,步骤如下
      1. 进入Fork后的项目仓库,进入Settings页面
      2. 在最底下找到Delete this repository,点击验证后删除
    2. 重新Fork本项目,接下来的步骤同自动打卡步骤
  • Pull Request版(不需要重新设置secret)

    1. 点击

    2. 点击

    3. 根据图片选择

    4. 点击创建pull request

    5. 接着把绿色按钮按到没为止

停止使用

  1. 进入Fork后的项目的Settings页面
  2. 点击左侧侧边栏的 Actions进入设置页面
  3. 选择Disable Actions for this repository 即可禁用掉自动打卡

当然,也可以直接删除Fork后的仓库

开源协议

MIT License.

are-u-ok's People

Contributors

leo220yuyaodog avatar unbyte avatar wanghexie avatar

Stargazers

 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.