Auto daily report for HITSZ Students.

Related tags

auto-report
Overview

auto-report

Auto daily report for HITSZ Students.

Usage

Report Once

Golang

go run main.go -u your-studentID -p your-password -e your-email

Docker

docker run --rm rocketeerli/auto-report -u your-studentID -p your-password -e your-email

Daily Auto Report

Crontab

  1. You need a server.
  2. Adjust your local timezone.
    timedatectl set-timezone "Asia/Shanghai"
  3. Use crontab -e and append the following line:
    15 8 * * * curl -L -o /tmp/auto-report https://github.com/hstable/auto-report/releases/latest/download/auto-report_linux_amd64 && chmod +x /tmp/auto-report && /tmp/auto-report -u your-studentID -p your-password -e your-email
    

By default, this program will run at 8:15 a.m. everyday.

Github Action

  1. Fork this repository from here.

  2. Add the repository secrets STUDENTID, PASSWORD and EMAIL in your own repository's Settings-Secrets, which also can be found by Settings-> Secrets -> New repository secret. (Repository secrets are invisible for others.)

  3. Add report.yml file to .github/workflows, and write the following content to this file:

    name: Auto Report
    on: 
      schedule:
        - cron: "15 0 * * *"
      push:
        branches: [main]
    
    jobs:
    
      report:
        name: auto report
        runs-on: ubuntu-latest
        steps:
    
        - name: Build
          run: |
            curl -L -o auto-report https://github.com/hstable/auto-report/releases/latest/download/auto-report_linux_amd64
            chmod +x auto-report
            
        - name: Run
          env:
            STUDENTID: ${{ secrets.STUDENTID }}
            PASSWORD: ${{ secrets.PASSWORD }}
            EMAIL: ${{ secrets.EMAIL }}
          run: |
            if [[ -z $EMAIL ]]
            then ./auto-report -u $STUDENTID -p $PASSWORD
            else ./auto-report -u $STUDENTID -p $PASSWORD -e $EMAIL
            fi

    The time cron above is an UTC time, which is 8 hours slower than Beijing time zone.

    By default, this program will run at 8:15 a.m. everyday.

License

auto-report is licensed by an MIT license as can be found in the LICENSE file.

Issues
  • GKD

    GKD

    opened by yuanjingsong 1
  • 秀

    opened by kitaharatomoyo 0
Releases(v1.0.2)
⛑ Gatus - Automated service health dashboard

A service health dashboard in Go that is meant to be used as a docker image with a custom configuration file. I personally deploy it in my Kubernetes

Chris C. 1.5k Jun 12, 2021
Antch, a fast, powerful and extensible web crawling & scraping framework for Go

Antch Antch, inspired by Scrapy. If you're familiar with scrapy, you can quickly get started. Antch is a fast, powerful and extensible web crawling &

null 16 May 19, 2021
Auto Judger for BUAA-SE-OOP Course (2021 Spring)

patpat Auto Judger for BUAA-SE-OOP Course (2021 Spring) 1. 评测机使用方法 1.1. 一些准备工作 1.1.1. 下载评测机 见 GitHub 中的 Releases,下载对应版本即可。目前提供 Windows, Linux, MacOS(I

null 30 May 30, 2021
Auto-evaluate your Golang code.

Ginker Ginker is a GUI application for auto-evaluating your Golang code. It allows you to write and run Golang code on the fly and it will help you to

nkoporec 7 May 31, 2021
Improved Go Syntax (transpiler)

Improved Go (igo) Everyone knows that Go is a very verbose language. It takes numerous lines of code to do what a few lines of code can do in other la

null 1.8k Jun 2, 2021
F' - A flight software and embedded systems framework

F´ (F Prime) is a component-driven framework that enables rapid development and deployment of spaceflight and other embedded software applications.

NASA 8.1k Jun 11, 2021
Yet another Go REPL that works nicely. Featured with line editing, code completion, and more.

gore Yet another Go REPL that works nicely. Featured with line editing, code completion, and more. (Screencast taken with cho45/KeyCast) Usage gore Af

Hironao OTSUBO 4.2k Jun 15, 2021
🦉 Docuowl generates a static single-page documentation from Markdown files

?? Docuowl generates a static single-page documentation from Markdown files

Docuowl 1k Jun 10, 2021
Elastic is an Elasticsearch client for the Go programming language.

Elastic is an Elasticsearch client for the Go programming language.

Oliver Eilhard 6k Jun 8, 2021
Record CS knowlegement with XMind, version 2.0. 使用 XMind 记录 Linux 操作系统,网络,C++,Golang 以及数据库的一些设计

Psyduck 另一个用 XMind 记录 CS 基础问题的地方,同样提供了 .xmind 源文件以及导出的 .pdf 文件,XMind 版本为「XMind 2020」。 在 2020 年时,曾花了约 2 个月的时间整理了第一份 XMind 知识库: ZeroMind。 之所以额外创建一个 Repo

SmartKeyerror 43 Jun 9, 2021
Enrich `go test` outputs with text decorations.

richgo Rich-Go will enrich go test outputs with text decorations Installation (go get): go get -u github.com/kyoh86/richgo (homebrew): brew tap kyoh8

Kyoichiro Yamada 569 Jun 8, 2021
Fast conversions across various Go types with a simple API.

Go Package: conv Get: go get -u github.com/cstockton/go-conv Example: // Basic types if got, err := conv.Bool(`TRUE`); err == nil { fmt.Printf("conv.

Chris Stockton 369 Jun 10, 2021
Go library for creating state machines

Stateless Create state machines and lightweight state machine-based workflows directly in Go code: phoneCall := stateless.NewStateMachine(stateOffHook

Quim Muntal 271 Jun 13, 2021
Haskell-flavoured functions for Go :smiley:

Hasgo Coverage status: gocover.io Our report card: Hasgo is a code generator with functions influenced by Haskell. It comes with some types out-of-the

Dylan Meeus 93 Jun 2, 2021