Giter Club home page Giter Club logo

golang-to-work's Introduction

golang-to-work

screenshot 286

出勤,退勤時間を自動で Slack に通知するツールです。 Hammerspoon を利用し,特定の Wi-Fi に接続 / 切断した際の時刻を SlackBot を利用し投稿する一連の設定を行います。

動作環境

Hammerspoon に依存するため,macOS のみサポートします。

使い方

  1. $ brew cask install hammerspoon より Hammerspoon をインストール
  2. $ git clone https://github.com/YutoMizutani/golang-to-work && cd golang-to-work よりプロジェクトをクローン
  3. $ make deps-init-env 後,./.env に必要な変数を入力
  4. $ make run を実行
  5. /Application/Hammerspoon.app を開き,macOS のイベント監視を実行する (起動中のみ有効)

環境変数

環境変数は ./.env 内に記述してください。 CLOCK_IN_TEXTCLOCK_OUT_TEXT については,DATE TIME によって文章内に代入することが可能です。

キー
HAMMERSPEEN_CONFIG_PATH Hammerspoon の設定ファイルパス
TARGET_SSID 監視する Wi-Fi の SSID
SLACK_BOT_TOKEN Slack Bot の token
SLACK_POST_CHANNEL Slack の投稿先チャンネル
CLOCK_IN_TEXT 出勤時の文章
CLOCK_OUT_TEXT 退勤時の文章
POP_DRAFT_TEXT 履歴を検出した際の文章

Hammerspoon インストール

Homebrew 利用

$ brew cask install hammerspoon

手動インストール

リリースページ より,最新の zip をダウンロードし,/Applications/ 以下に配置してください。

golang-to-work's People

Contributors

yutomizutani avatar

Stargazers

 avatar

Watchers

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