Skip to content

๐Ÿฅช ์ ์‹ฌ๋‹น์ง์•Œ๋ฆผ ๋ฌธ์ž๋ฐœ์†ก ์„œ๋น„์Šค

License

Notifications You must be signed in to change notification settings

HaenaraShin/Lunch_Shift_Alert_SMS_Sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Lunch_Shift_Alert_SMS_Sender

๐Ÿฅช ์ ์‹ฌ๋‹น์ง์•Œ๋ฆผ ๋ฌธ์ž๋ฐœ์†ก ์„œ๋น„์Šค

Purpose

์ ์‹ฌ ๋‹น์ง์ž๊ฐ€ ๊นŒ๋จน์ง€ ์•Š๋„๋ก ์ ์‹ฌ์‹œ๊ฐ„ ์ด์ „์— ๋ฏธ๋ฆฌ SMS ๋ฌธ์ž๋ฅผ ๋ฐœ์†กํ•˜์—ฌ ๊นŒ๋จน์ง€ ์•Š๊ฒŒ ํ•œ๋‹ค. ๋˜ํ•œ ๋‹น์ง๋ช…๋‹จ ๊ด€๋ฆฌ์ž๋Š” ๋‹น์ง ๋ช…๋‹จ์„ ๊ตฌ๊ธ€ ์‹œํŠธ๋ฅผ ํ†ตํ•ด ๊ฐ„๋‹จํ•˜๊ฒŒ ๊ด€๋ฆฌํ•œ๋‹ค.

How it works

๋‹น์ง์ž ๋ฏธ๋ฆฌ ์•Œ๋ฆผ

  • ๐Ÿ’ ๋ˆ„๊ตฌ์—๊ฒŒ : ๋‹น์ผ ๋‹น์ง์ž 2๋ช… (12:00 ~ 12:30, 12:30 ~ 13:00)
  • โฐ ์–ธ์ œ : ๋‹น์ผ ๋‹น์ง ์ „ (11:30, 12:25)
  • โœ‰๏ธ ์–ด๋–ป๊ฒŒ : SMS ๋ฐœ์†ก 1ํšŒ (CoolSMS API ์„œ๋น„์Šค)

๋‹น์ง์ž ๋ช…๋‹จ ๊ด€๋ฆฌ

  • ๐Ÿ“… ๋งค์›” ๋‹น์ง์ž ๋ช…๋‹จ์„ ์—…๋กœ๋“œ ๋ฐ ์ˆ˜์ •
  • โ˜Ž๏ธ ๋‹น์ง์ž์˜ ์—ฐ๋ฝ๋ง์„ ์—…๋กœ๋“œ ๋ฐ ์ˆ˜์ •
  • ๐Ÿ“„ Google Docs๋ฅผ ์ด์šฉํ•˜์—ฌ ๋‹น์ง์ž ๋ช…๋‹จ ๋ฌธ์„œ ๊ณต์œ  ๋ฐ ๊ด€๋ฆฌ

Google Sheet Sample Format

Setup

๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜

CoolSMS SDK ์„ค์น˜

$ pip install coolsms
$ pip install coolsmssdk

CoolSMS SDK Github Link

Google Sheet SDK ์„ค์น˜

$ pip install gspread

Config ์„ค์ •

Google Sheet API ๋ฐ CoolSMS API ์—ฐ๋™์„ ์œ„ํ•ด์„œ๋Š” ์•„๋ž˜์™€ ๊ฐ™๋ฆฌ ์„ค์ •ํ•ด์ค˜์•ผ ํ•œ๋‹ค.

config.py

  • api_key : CoolSMS API Key
  • api_secret : CoolSMS API Secret
  • sender : SMS ๋ฐœ์‹  ๋ฒˆํ˜ธ
  • URL : ๋ฌธ์ž์— ํฌํ•จ ํ•  ๋‹น์ง๋ช…๋‹จ Short URL
  • supervisor : ๋‹น์ง๋ช…๋‹จ ๊ด€๋ฆฌ์ž ์ „ํ™”๋ฒˆํ˜ธ
  • sys_admin_phone : ์‹œ์Šคํ…œ ๊ด€๋ฆฌ์ž ์ „ํ™”๋ฒˆํ˜ธ

key.json

  • key.json์€ Google Api ๋ฐœ๊ธ‰ ํ›„ ์‚ฌ์šฉ์ž ์ธ์ฆ์ •๋ณด(Client ID) ๋ฐœ๊ธ‰ ์‹œ ์ œ๊ณต๋˜๋Š” JSON ํŒŒ์ผ์„ key.json์œผ๋กœ ์ €์žฅํ•˜๋ฉด ๋œ๋‹ค.

Basic Usage

$ python main.py

Example Message

Example_sms

  • ๋‹น์ง ์‹œ๊ฐ„์ด ๋˜๋ฉด ์œ„์™€ ๊ฐ™์ด ๋ฌธ์ž๋ฅผ ์ˆ˜์‹ ํ•œ๋‹ค.

License

Copyright (c) 2019 HAREX Infotech.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

๐Ÿฅช ์ ์‹ฌ๋‹น์ง์•Œ๋ฆผ ๋ฌธ์ž๋ฐœ์†ก ์„œ๋น„์Šค

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages