Giter VIP home page Giter VIP logo

nju-clock-in's Introduction

南京大学健康打卡

南京大学健康打卡

rust license stars forks

使用

  1. Star & Fork 本仓库

  2. 在 Fork 出来的个人仓库中点击 Settings -> Secrets -> New repository secret

创建密钥

  1. 分别添加3个secret,如下 Name: Value

    • USERNAME: 统一认证账号
    • PASSWORD: 统一认证密码
    • LOCATION: 打卡位置
  2. 点击 Actions -> I understand

actions

  1. 继续点击 Clock in -> Enable workflow

workflows

  1. 完成,打卡将在每日北京时间18:00开始,视网络情况会有一定延迟

最近一次核酸检测时间说明

本项目共提供如下3种方案:

  1. 总是今天,需要修改.github/workflows/main.ymlALWAYS_TODAY的值为true,默认值为false

  2. 指定时间,需要按格式修改.github/workflows/main.ymlPCR_TIME的值,格式为YYYY-MM-DD,默认值为2022-04-04

  3. 自动推导,根据常态化核酸检测时间的规律按学号尾数进行推理。

可根据需要自行选择,但推荐第3种方案,也是本项目的默认方案。值得说明的是,如若选择第2种方案,项目会从指定日期和第3种方案中的推导时间中选择最近的作为核酸检测时间,因而不用担心忘记更新指定时间。

注意事项

  1. 当打卡失败时请点击统一身份认证进行手动认证(保证模拟登录时不需要验证码),并可按如下步骤再次尝试打卡。

workflow

  1. 项目更新时如若没有学习过 git,建议删除掉原 Fork 出来的仓库,重新按使用中的步骤进行配置,这也被证实是最省事的方法。如若学过 git 或者爱捣鼓,欢迎以各种姿势自行更新。

  2. 想要暂停掉自动打卡有两种方法,一种方法是在.github/workflows/main.yml中将DISABLE_CLOCK_IN的值改为true,默认值为false,另一种方法是在仓库页面点击 Actions -> Clock in -> Disable workflow。

disable

微信打卡通知

  1. 点击Server酱扫码关注,并在网页上点此继续

  2. 点击获取SENDKEY

sendkey

  1. 使用步骤2、3添加secret,如下 Name: Value

    • SENDKEY: 步骤2获取值

打卡时间修改

  1. 修改.github/workflows/main.yml中如下参数

修改打卡时间

  1. 10表示UTC时间10:00,对应北京时间18:00,修改此值即可修改打卡时间

  2. 如若有复杂的定时需求,可自行查阅cron规则进行相应修改

更新日志

2022-04-11 新增最近14天是否离宁以及最近一次核酸检测时间


Related to kottory

nju-clock-in's People

Contributors

millione 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.