Skip to content

miracleexotic/LineBot-Covid19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Line Bot OA

Covid-19 Tracking

A tracking of location and time for your travel in Covid-19 situation.

Features

  • Tracking IN and OUT of place.
  • Show Covid 19 statistics in thailand.
  • History of tracking for 14 days.

"การได้ประวัติของผู้ป่วยและผู้เกี่ยวข้อง ซึ่งนำมาเขียนเป็น “ไทม์ไลน์” จะเริ่มตั้งแต่วันที่ทราบว่ามีผู้ติดเชื้อและย้อนหลังกลับไป โดยทั่วไปจะย้อนไปถึงเวลาประมาณ 2-3 สัปดาห์ก่อนหน้าที่จะเริ่มป่วยหรือเริ่มตรวจพบ เพราะเป็นระยะเวลาที่มีความเสี่ยงสูงที่จะเป็นจุดที่ได้รับเชื้อ"(“ไทม์ไลน์” หนึ่งสิ่งสำคัญล็อคเป้าควบคุมโควิด-19, 2564)

Tech

  • Python - Backend requires python v3.9.5+
  • Google Sheet - Create and collaborate on online spreadsheets in real-time and from any device.
  • Line - Frontend line OA
  • TableauScraper - Scrap covid-19 data in thailand

Installation

requires Python v3.9.5+ to run.

Git clone

git clone https://github.com/miracleexotic/LineBot-Covid19.git
cd LineBot-Covid19

Pre-Deploy and Pre-Run

First, Need to create authentication folder in LineBot-Covid19 folder.

mkdir -p authentication
touch config.json

Write this below code in config.json and replace your key in <KEY> and your PATH in <PATH-JSON-FILE>

{
    "line": {
        "CHANNEL_ACCESS_TOKEN": "<KEY>",
        "CHANNEL_SECRET": "<KEY>"
    },
    "gspread": {
        "path": "<PATH-JSON-FILE>",
        "key": "<KEY>"
    }
}

PIP

Install the dependencies and devDependencies.

pip install -r src/requirements.txt

run

python wsgi.py

Deployment

Deploy with Heroku

This tutorial will have you deploying a Python app (a simple Django app) in minutes. but in this code implement with Flask. You could adjust on your own.

License

MIT

Free Software, Hell Yeah!

About

🦠 Covid-19 tracking Location and Datetime in LineOA

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors