All Projects → PARKINHYO → corona-kakao-bot

PARKINHYO / corona-kakao-bot

Licence: MIT license
🤖 카카오톡 코로나 알리미

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to corona-kakao-bot

11 Python Matplotlib Module
Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. It was introduced by John Hunter in the year 2002. One of the greatest benefits of visualization is that it allows us visual access to …
Stars: ✭ 206 (+1111.76%)
Mutual labels:  matplotlib, matplotlib-pyplot, matplotlib-python
Engezny
Engezny is a python package that quickly generates all possible charts from your dataframe and saves them for you, and engezny is only supporting now uni-parameter visualization using the pie, bar and barh visualizations.
Stars: ✭ 25 (+47.06%)
Mutual labels:  matplotlib, matplotlib-pyplot
upload-rust-binary-action
GitHub Action for building and uploading Rust binary to GitHub Releases.
Stars: ✭ 47 (+176.47%)
Mutual labels:  github-actions
setup-just
🤖 GitHub Action to install the just command runner
Stars: ✭ 21 (+23.53%)
Mutual labels:  github-actions
node-js-action-template
Template for new GitHub Actions running NodeJS
Stars: ✭ 33 (+94.12%)
Mutual labels:  github-actions
generate-og-image
Generate open graph images with Github Action from Markdown files
Stars: ✭ 32 (+88.24%)
Mutual labels:  github-actions
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (+405.88%)
Mutual labels:  github-actions
awscredswrap
awscredswrap uses temporary credentials for the specified iam role to set a shell environment variable or execute a command.
Stars: ✭ 15 (-11.76%)
Mutual labels:  github-actions
VWapi
⛈ ☀️ Visual Weather api. Returns beautiful pictures with the current weather.
Stars: ✭ 33 (+94.12%)
Mutual labels:  matplotlib
riak-haskell-client
A fast Haskell client library for the Riak decentralized data store
Stars: ✭ 48 (+182.35%)
Mutual labels:  github-actions
action-eslint-fix
GitHub Action to run `eslint` with `--fix` option and commit fixes
Stars: ✭ 20 (+17.65%)
Mutual labels:  github-actions
mplcolors
A command-line information tool written in Python 3.x to display matplotlib colors.
Stars: ✭ 34 (+100%)
Mutual labels:  matplotlib
rails7-on-docker
Working Rails 7 demo application without JavaScript bundling, running in Docker. No node.js or webpack.
Stars: ✭ 111 (+552.94%)
Mutual labels:  github-actions
windmap
Streamlines animation (matplotlib)
Stars: ✭ 40 (+135.29%)
Mutual labels:  matplotlib
creatly-backend
🚀 Creatly backend app
Stars: ✭ 71 (+317.65%)
Mutual labels:  github-actions
flatpak-github-actions
Build your Flatpak application using Github Actions
Stars: ✭ 73 (+329.41%)
Mutual labels:  github-actions
webring
“วงแหวนเว็บ” แห่งนี้สร้างขึ้นเพื่อส่งเสริมให้ศิลปิน นักออกแบบ และนักพัฒนาชาวไทย สร้างเว็บไซต์ของตัวเองและแบ่งปันการเข้าชมซึ่งกันและกัน
Stars: ✭ 125 (+635.29%)
Mutual labels:  github-actions
react-native-kakao-login
React Native module for kakao login sdk: rn-kakao-login
Stars: ✭ 76 (+347.06%)
Mutual labels:  kakao
github-action-scp
⬆️ Copy a folder to a remote server using SSH
Stars: ✭ 123 (+623.53%)
Mutual labels:  github-actions
ssh-action
🖥 github ssh action
Stars: ✭ 122 (+617.65%)
Mutual labels:  github-actions

Welcome to Corona Kakao Bot 👋

Version License: MIT crawler docker compose crawler docker compose crawler docker compose

character

카카오톡을 통해 코로나 정보를 알려주는 채널 봇입니다.


🔑 채널 아이디 : coronavirus19

📷 Qr 코드

Qr코드



📜 봇 & 서버 테스트

개발 환경 : Ubuntu Server 20.04 LTS x86

사전 설치 프로그램

  1. git 설치

    $ sudo apt install git -y
  2. 도커 설치

  3. 도커 컴포즈 설치(root권한에서 설치)

    레포에서 릴리즈 최신 버전 확인

    $ curl -L https://github.com/docker/compose/releases/download/(최신버전)/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
    $ chmod +x /usr/local/bin/docker-compose
    $ docker-compose -v

서버 시간 KST로 변경

서버와 컨테이너가 시간대를 공유하기 때문에 서버의 시간대를 한국 시간대로 변경합니다.

$ sudo dpkg-reconfigure tzdata
Asia
Seoul

컨테이너 설치

$ git clone https://github.com/PARKINHYO/corona-kakao-bot.git
$ cd corona-kakao-bot/crawler
$ docker-compose up -d
$ cd corona-kakao-bot
$ docker-compose up -d

컨테이너 로그 관리

크롤링 로그가 많이 쌓여 일정 간격으로 삭제합니다.

$ cd corona-kakao-bot
$ sh container-logs.sh

코로나 관련 정보 확인

코로나 관련 정보들은 /crawler/assets 폴더에 저장됩니다.

  • /assets/texts/daily : 날짜, 총 확진자, 0시 기준 신규 확진자, 격리 해체, 치료 중, 사망
  • /assets/images/dailyimage.png : 주간 확진자 그래프
  • /assets/texts/realtime : 시간, 동 시간대 어제 확진자, 실시간 확진자
  • /assets/texts/cities/ : 지역별 재난 문자

참고

  • 실제 서비스에 활용할 때는 이 부분에 자신의 서버 ip를 적어주어야 합니다.
  • 처음에는 /crawler/assets 폴더에 샘플 데이터가 들어있습니다.
  • 재난 문자 크롤링은 최대 4분 정도 됩니다. (나머지는 몇 초)
  • 각 기능마다 크롤링 주기가 있습니다.



📣 서버 API

설치된 서버의 ip주소와 포트 80번으로 웹서버에 접근할 수 있습니다.

  • /corona/daily/text : 0시 기준 총 확진자 정보
  • /corona/daily/image : 주간 확진자 그래프
  • /corona/realtime/text : 실시간 확진자
  • /corona/message/text : 지역별 재난 문자



📌 Service Flow Chart

Service Flow Chart



📌 Architecture

Architecture



🎥 데모

사용방법



📚 출처

🖋 Author

👤 박인효

📝 License

Copyright © 2021 박인효.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].