Skip to content

smknhd-tech/english-class-notify

Repository files navigation

english-class-notify

notify.py checks tutor's scheduale and notify you via LINE Notify.

VS.

Requirement

Usage

$ poetry run python notify.py [-d day] [-c configurationfile]

Example

$ poetry run python notify.py today ../config.txt

Via Docker

$ make start
$ docker-compose run app today config.txt

Test

Via Docker

$ docker run --env LINE_NOTIFY_TOKEN_TEST=anylinenotifytoken --rm --entrypoint=pytest notifyimage:latest -v

Via Terminal

$ export LINE_NOTIFY_TOKEN_TEST=anylinenotifytoken
$ pytest -v

Config File Example

[SITE INFO]
URL = XXXXX

[LINE NOTIFY]
TOKEN = XXXXX
SUBMIT_MESSAGE = XXXXX

[USER INFO]
NAME=XXXX

[TUTORS]
# name id
tutor1 = 12345
tutor2 = 54321

Tips

  • make start 後に、http://localhost にアクセスで、pgAdmin使用可能。
    • pgAdminの認証情報 root@root / root
    • サーバへの接続情報は次。
      ホスト名/アドレス:db
      ポート番号:5432
      データベースの管理:postgres
      ユーザ名:root
      パスワード:root
      
  • DBの永続化データを初期化したい場合は、./db_data以下を削除すること

About

オンライン英会話レッスンを賢く素早く予約したい人のためのツール

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors