Giter Club home page Giter Club logo

covid-19-bitbar-script's Introduction

COVID-19 BitBar Script

This tiny little script pulls the latest data of known novel corona virus cases (see note at the end) from the Johns Hopkins Universities GitHub repository and outputs the number of confirmed infections and deaths

  • known globally
  • separately for a list of countries provided

Requirements

The script requires just standard tools that should be installed by default on any UNIX-like OS: curl, sed and awk.

List of countries to print

In the script you will find a regexp /Germany|Czech|Latvia|Austria|US/ defining the list of countries to list separately. Take a look at this file to see the complete available list.

Use with BitBar

The script's output is designed to work with BitBar (macOS only). In Bitbar it will show the total cases in the title bar and cases for each country separately when clicking on the title bar as shown in the following screenshot.

screenshot

You would install this script as a so called BitBar plugin by either renaming it to the required file name format, setting the desired refresh time or creating a (sym)link with a name folling that convention. NB: Data in the Johns Hopkins University repository is only refreshed approx. on an hourly basis so excessive refreshes are useless.

Lastly

Admittedly, even with the original Lancet Article it is not entirely clear to me whether Johns Hopkins shows as "confirmed" the known cases of SARS-CoV-2 infections or known COVID-19 cases. If anyone can shed someo light, please raise an issue in this GitHub repo.

Stay safe!

Have fun and feel free to send PRs or and/or raise issues with suggestions.

covid-19-bitbar-script's People

Contributors

tkothe avatar

Watchers

 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.