Giter VIP home page Giter VIP logo

cowin-updates's Introduction

cowin-updates

BUY ME COFFEE

This project is created for getting COVID Vaccine alerts on my SLACK Channel.

I created and deployed this project on my AWS in an hour so any Code Improvements are welcome.

Email me at [email protected] with your user credentials to get alerts on your channel too!

If you want to setup this on your own server, follow the steps below:

  1. Clone repo.
  2. Create python3 virtualenv. python3 -m venv .venv
  3. Activate virtualenv. source .venv/bin/activate
  4. Install dependencies. pip install -r requirements.txt
  5. Update User Credentials file.
[
  {
    "token": "<your www.cowin.gov.in user token>",
    "state": <your cowin unique state id>,
    "districts": [<your cowin unique district ids>],
    "slack_member_id": "<your slack member id>",
    "SLACK_WEBHOOK": "<your slack webhook>"
  },
  {
    "token": "<your www.cowin.gov.in user token>",
    "state": <your cowin unique state id>,
    "districts": [<your cowin unique district ids>],
    "slack_member_id": "<your slack member id>",
    "SLACK_WEBHOOK": "<your slack webhook>"
  },
]
  1. Run the script. cd /home/ubuntu/saurabh/cowin-updates/ && /home/ubuntu/saurabh/cowin-updates/.venv/bin/python /home/ubuntu/saurabh/cowin-updates/cowin_alerts.py >> /home/ubuntu/saurabh/cowin-updates/cowin_alerts_log.py
  2. Add to crontab.
crontab -e
*/1 * * * * cd /home/ubuntu/saurabh/cowin-updates/ && /home/ubuntu/saurabh/cowin-updates/.venv/bin/python /home/ubuntu/saurabh/cowin-updates/cowin_alerts.py >> /home/ubuntu/saurabh/cowin-updates/cowin_alerts_log.py 2>&1
  1. BMC

Any feedback is welcome :)

cowin-updates's People

Contributors

saurbhc avatar

Stargazers

 avatar Rinki Goyal avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.