Skip to content

HT0323/kot_auto_input

Repository files navigation

Open in Visual Studio Code Prettier And Test npm version

AUTO KING OF TIME

You don't want to manage double attendance management, do you?
If your company's attendance management tool is "KING OF TIME", you may be able to solve it with this tool.


勤怠管理を二重に管理をしていないでしょうか?
あなたの会社の勤怠管理ツールが「KING OF TIME」なら、このツールで解決できるかもしれません。

Description

Reports that require daily, weekly and monthly input.

common for SES engineers
In many cases, there are separate attendance management methods for the site and the company
In addition, there may even be separate submission methods.

Such trivial problems in the company
I am creating this tool in the hope that it will be of some help.


毎日、毎週、毎月入力が必要な報告書。

SESエンジニアにとってはよくある
現場と自社で別々の勤怠管理方法であることが多く
更には別々の提出方法が存在することさえあります。

そんな社内でのささいな問題を
このツールが少しでも役に立てればと思い作成しています。

Demo

AUTO_KING_OF_TIME.mp4

Requirement

▶︎ Node.js v16.16.0

Setup

The following procedure summarizes the preparations and preparations in advance

  1. Move this repository to your preferred working directory and git clone

  2. Install modules to run the cloned code

npm install
npx playwright install chromium
  1. Create a .env file with the information necessary for your login with 'KING OF TIME' and set environment variables

    3-1. Copy .env.example to create .env file

    3-2. Add your 'KING OF TIME' login account information to KOT_LOGIN_ID and KOT_LOGIN_PASSWORD in the copied .env file

  2. Output the separately managed attendance management file (a file containing attendance hours etc. outside the company) in CSV format
    *If the format of your attendance report and the format do not match, there are examples on the Wiki tab in this GitHub, so please use that.

  3. If you can match the format, change the CSV file name to input.csv

  4. Place the CSV file of 5. directly under the cloned PJ (directly under the kot_auto_input directory)

Now that the preparations have been completed, please proceed with the Usage item.


事前に準備、用意する内容を以下の手順でまとめました

  1. このリポジトリをあなたの好きな作業ディレクトリに移動した後 git clone します

  2. クローンしたコードを動かすためのモジュールをインストールします

npm install
npx playwright install chromium
  1. 'KING OF TIME'でご自身のログインに必要な情報を .env ファイルを作成後、環境変数を設定します

    3-1. .env.example をコピーして .env ファイルを作成します

    3-2. コピーした .env ファイルの KOT_LOGIN_ID , KOT_LOGIN_PASSWORD に自身の 'KING OF TIME' のログインアカウント情報を加えます

  2. 別で管理している勤怠管理のファイル(自社以外で出勤時間などを記入しているファイル)をCSV形式で出力します
    ※もし、お手持ちの勤怠報告書とフォーマットが大きくずれて合わない場合には、このGitHub内のWikiタブに例を載せていますのでそちらをご使用ください

  3. フォーマットを合わせることができましたら、CSVのファイル名を input.csv に変更してください

  4. 5.のCSVファイルをクローンしたPJ直下(kot_auto_inputディレクトリ直下)に配置してください

以上で事前に準備する内容は完了ですので Usage の項目を実施してください。

Usage

npx ts-node main.ts

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published