Git Product home page Git Product logo

notifycovid19's Introduction

Get informed about updated COVID-19 cases in your country simply from your terminal

Get informed about updated COVID-19 cases in your country simply from your terminal and send Slack messages as a notification along with audio notification whenever a new COVID-19 Case is Detected. The Script refreshes at 5 seconds interval by default. Data Source: https://google.com/covid19-map/?hl=en

Script Output

What does this script do ?

1) Displays live count of COVID-19 cases in your Country.
2) Displays number of New Cases wrt Previous update
3) Plays Sound Notification when new Cases are Detected     ** Disabled By Default  To Enable : Uncomment Line 33 
4) Sends A Slack Message Alert                              ** Disabled By Default  

Procedure

1) Download the script 
2) Run covid_updates.py in terminal
    - python3 covid_updates.py CountryName SoundPath
3) To run script in background with slack and music notifications , run in terminal 
    - nohup python3 covid_updates.py &
4) If Necessory,update refresh intervals by modifying last line of the script, by default it is set 
   to sleep for 5 seconds

Installing Dependencies

-pip install playsound

** To Enable Slack Notification

- Get the Slack Access token url and modify the script with your access token url and uncomment following lines [12,27,28,29]

    ex- https://hooks.slack.com/services/xxxxxxxxx

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.