Skip to content

deathook007/CoronaBot-IBM-hacathon-2020

Repository files navigation

Intelligent Post-Lock Down Management System for public transportation 🚌

  • Post-Lockdown, it will be risky to allow the public transportation without proper mechanism to maintain the social distancing, especially the frequency of buses, trains and metros shall be managed properly to utilize the capacity with social distancing criteria. The transport authorities must integrate together to maintain the system properly.

Tools Used

  • IBM Watson Assistant, Python 2 or 3, IBM Watson Studio, IBM Cloud for Deployment, Any Web / Mobile app frameworks

Structure and Implimentation

Image of System-1 Image of System-2

Features

  • This Bot is designed to provide the coronavirus updates and works as a post lockdown management system in whole.
  • Too many updates? Don't worry! Subscribe only to the states that you want only
  • Reliablity- The source of data is official Government site (here)
  • Its ROBUST and QUICK!
    • What if script fails? What if the Govt website changes format? -- You get Slack notifications about the exceptions too. -- You have log files (check bot.log) too, to evaluate what went wrong

screenshot

Get Slack notifications

  • Notify whenever there are new cases in India
  • How many Indian nationals have Corona Virus per State?
  • How many deaths happened per State?
  • The new States entering the corona zone like Chattisgarh (As per recorded data) Image of Slack Image of Slack Image of Slack

screenshot

Install

  • You need Python
  • You need a Slack account + Slack Webhook to send slack notifications to your account
  • Install dependencies by running
pip install tabulate
pip install requests
pip install beautifulsoup4
  • Clone this repo and create auth.py

  • Write your Slack Webhook into auth.py

  • Setup the cron job to receive updates whenever something changes

crontab -e # opens an editor like vim or nano
# now write the following to run the bot every 5 mins
*/5 * * * * cd $PATH_TO_CLONE_DIR; python3 corona_bot.py --states 'haryana,maharashtra'
# to receive updates for all states, ignore the --states flag

screenshot

Reference