Coder Social home page Coder Social logo

mmm-covid19's Introduction

MMM-COVID19

A MagicMirror² helper module to track reported cases of COVID-19.

license

Example

German translation

Example

Installation

In your terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/bibaldo/MMM-COVID19.git

Add the module to the modules array in the config/config.js file:

  {
    module: "MMM-COVID19"
  },

Configuration options

The following properties can be configured:

Option Description
header The header text

Default value: 'COVID-19'
worldStats Worldwide stats

OPTIONAL
Possible values: false or true
Default value: false
countries The countries that we want to get live COVID-19 stats

Possible values: [ "Argentina, "USA" ]
Default value: [ "Argentina", "Italy", "Spain", "Germany" ]
orderCountriesByName Order results by country name (true) or total number of confirmed cases (false)

OPTIONAL
Possible values: false or true
Default value: false
orderAscending Sort order for orderCountriesByName

OPTIONAL
Possible values: false (descending) or true (ascending)
Default value: false
lastUpdateInfo Last update info in UTC Time

OPTIONAL
Possible values: false or true
Default value: false
delta Show 2 more columns (New Cases and New Deaths)

OPTIONAL
Possible values: false or true
Default value: false
showExtraInfo Show Cases per Million and Serious Cases

OPTIONAL
Possible values: false or true
Default value: false
highlightCountry Enhances background for one country to improve visibility

OPTIONAL
Possible values: "country name" (i.e. "France")
Default value: none
rapidapiKey rapidApi.com api key

MANDATORY
Check Notes
headerRowClass The font size of the row headers

Possible values: 'small', 'medium', 'big'
Default value: 'small'
infoRowClass The font size of data

Possible values: 'small', 'medium', 'big'
Default value: 'big'
updateInterval How often does the content needs to be fetched? (Milliseconds)

Possible values: 1000 - 86400000
Default value: 300000 (5 minutes)
timeFormat Formatting date and time for lastUpdateInfo

OPTIONAL
Posible values: check https://momentjs.com/docs/#/displaying/format/
Default value: "MMMM Do YYYY, h:mm:ss a" // April 7th 2020, 03:08:10 pm

Config Example

  {
    module: "MMM-COVID19",
    position: "top_left",
    config: {
      updateInterval: 300000,
      worldStats: true,
      delta: true,
      lastUpdateInfo: true,
      countries: [ "Argentina", "China", "Italy", "Spain" ],
      headerRowClass: "small",
      rapidapiKey : "01d6665ba777fdb4117cdmshc742d5373fae8f1cp148639jsn1" // this is an example, do not try to use it for real
    }
  },

Notes

Updating

To update the module to the latest version, use your terminal to go to your MMM-COVID19 module folder and type the following command:

git pull

Feel free to open any Issue 😃

mmm-covid19's People

Contributors

bibaldo avatar hildwin avatar hweigel avatar nerdmaennchen avatar pawelros avatar radokristof avatar testdruif avatar webac 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.